No Description

ethernet_packet.cpp 614B

12345678910111213141516171819202122232425262728293031323334
  1. #include "ethernet_packet.h"
  2. // These are the function members you will implement in
  3. // Exercise 2. You must implement ALL of the functions
  4. // whose prototypes are in the ethernet_packet class declaration
  5. ethernet_packet::ethernet_packet() {
  6. }
  7. void ethernet_packet::setEtherDHost(u_char dhost[]){
  8. }
  9. void ethernet_packet::setEtherSHost(u_char shost[]){
  10. }
  11. void ethernet_packet::setEtherType(u_short type){
  12. ethernet.ether_type = type ;
  13. }
  14. string ethernet_packet::mac2string(u_char srcmac[]){
  15. }
  16. // We intentionally left out some of the function headers
  17. // so that you deduce them from the .h file.