Changeset b32e8f4 for libpacketdump
- Timestamp:
- 02/05/19 11:09:47 (2 years ago)
- Branches:
- develop
- Children:
- f354f72
- Parents:
- 0cc91ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/link_21.c
r5299c55 rb32e8f4 5 5 6 6 #include <arpa/inet.h> 7 #include <netinet/ether.h>8 7 9 8 DLLEXPORT void decode(int link_type UNUSED, const char *packet UNUSED, unsigned len UNUSED) { … … 47 46 (char *)meta->items[i].data); 48 47 } else if (meta->items[i].datatype == TRACE_META_MAC) { 49 printf(" Name: %s ID: %u Value: %s\n", 48 unsigned char *mac = meta->items[i].data; 49 printf(" Name: %s ID: %u Value: %02x:%02x:%02x:%02x:%02x:%02x\n", 50 50 meta->items[i].option_name, 51 51 meta->items[i].option, 52 ether_ntoa((struct ether_addr *)(char *)meta->items[i].data));52 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); 53 53 } else { 54 54 printf(" Name: Unknown ID: %u Option Value (RAW): ", meta->items[i].option);
Note: See TracChangeset
for help on using the changeset viewer.