Lines 30-55
Link Here
|
30 |
#include <sys/time.h> |
30 |
#include <sys/time.h> |
31 |
|
31 |
|
32 |
#include <net/if.h> |
32 |
#include <net/if.h> |
33 |
#if (__GLIBC__) |
|
|
34 |
#include <netinet/if_ether.h> |
33 |
#include <netinet/if_ether.h> |
35 |
#include <net/if_arp.h> |
34 |
#include <net/if_arp.h> |
36 |
#else |
|
|
37 |
#include <linux/if_arp.h> |
38 |
#include <linux/if_ether.h> |
39 |
#endif |
40 |
|
35 |
|
41 |
#if (HAVE_PACKET_SOCKET) |
36 |
#if (HAVE_PACKET_SOCKET) |
42 |
#ifndef SOL_PACKET |
37 |
#ifndef SOL_PACKET |
43 |
#define SOL_PACKET 263 |
38 |
#define SOL_PACKET 263 |
44 |
#endif /* SOL_PACKET */ |
39 |
#endif /* SOL_PACKET */ |
45 |
#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1 |
|
|
46 |
#include <netpacket/packet.h> |
40 |
#include <netpacket/packet.h> |
47 |
#include <net/ethernet.h> /* the L2 protocols */ |
41 |
#include <net/ethernet.h> /* the L2 protocols */ |
48 |
#else |
|
|
49 |
#include <asm/types.h> |
50 |
#include <linux/if_packet.h> |
51 |
#include <linux/if_ether.h> /* The L2 protocols */ |
52 |
#endif |
53 |
#endif /* HAVE_PACKET_SOCKET */ |
42 |
#endif /* HAVE_PACKET_SOCKET */ |
54 |
|
43 |
|
55 |
#include "../include/libnet.h" |
44 |
#include "../include/libnet.h" |