1 | initial version |
If your traffic is always over Ethernet you can use the pinfo->dl_dst
structure and copy it into a local buffer with address_to_bytes(), e.g.
char myBuff[2];
address_to_bytes(pinfo->dl_dst, myBuff, 2);
char myByte = myBuff[1];
2 | No.2 Revision |
If your traffic is always over Ethernet you can use the pinfo->dl_dst
structure and copy it into a local buffer with address_to_bytes(), address_to_bytes()
, e.g.
char myBuff[2];
address_to_bytes(pinfo->dl_dst, myBuff, 2);
char myByte = myBuff[1];