Changeset 77285d9 for lib/protocols.c


Ignore:
Timestamp:
05/10/06 09:57:52 (16 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:
3fcb8b4
Parents:
9b8c7ad
Message:

OpenBSD compatibility fixes - adding in various #defines and #includes that are needed to compile under OpenBSD
Added a replacement pcap_next_ex function for systems that aren't running pcap-0.8 or better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r95747c3 r77285d9  
    1111#ifndef WIN32
    1212#include <net/if_arp.h>
    13 #else
     13#endif
     14
     15#ifndef ARPHRD_ETHER
    1416#define ARPHRD_ETHER    1               /* Ethernet 10/100Mbps.  */
     17#endif
     18
     19#ifndef ARPHRD_PPP
    1520#define ARPHRD_PPP      512
    1621#endif
     22
    1723
    1824/* Returns the payload from 802.3 ethernet.  Type optionally returned in
Note: See TracChangeset for help on using the changeset viewer.