Changeset 524ebb5 for tools


Ignore:
Timestamp:
03/11/13 11:33:45 (8 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
9ca1fce
Parents:
2216d25
Message:
  • Fixed the "cannot compare family 18" bug in tracetop on FreeBSD et al.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracetop/tracetop.cc

    r2216d25 r524ebb5  
    6262        return memcmp(a->sll_addr, b->sll_addr, b->sll_halen);
    6363}
     64#else
     65int cmp_sockaddr_dl(const struct sockaddr_dl *a, const struct sockaddr_dl *b)
     66{
     67        return memcmp(a->sdl_data, b->sdl_data, b->sdl_alen);
     68}
     69
    6470#endif
    6571
     
    7783                case AF_PACKET:
    7884                        return cmp_sockaddr_ll((struct sockaddr_ll *)a,(struct sockaddr_ll*)b);
     85#else
     86                case AF_LINK:
     87                        return cmp_sockaddr_dl((struct sockaddr_dl *)a, (struct sockaddr_dl *)b);
    7988#endif
    8089                case AF_UNSPEC:
Note: See TracChangeset for help on using the changeset viewer.