Changeset b32e8f4


Ignore:
Timestamp:
02/05/19 11:09:47 (21 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
f354f72
Parents:
0cc91ee
Message:

remove the need for netinet/ether.h library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_21.c

    r5299c55 rb32e8f4  
    55
    66#include <arpa/inet.h>
    7 #include <netinet/ether.h>
    87
    98DLLEXPORT void decode(int link_type UNUSED, const char *packet UNUSED, unsigned len UNUSED) {
     
    4746                                (char *)meta->items[i].data);
    4847                } 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",
    5050                                meta->items[i].option_name,
    5151                                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]);
    5353                } else {
    5454                        printf("   Name: Unknown ID: %u Option Value (RAW): ", meta->items[i].option);
Note: See TracChangeset for help on using the changeset viewer.