diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-04 15:46:11 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-04 15:46:11 +0100 |
commit | c0cd9aa085768ef046d5fbb96edce071a2463054 (patch) | |
tree | 2a703fbc820217806d291492ef38e368b5e29409 /gg_sniff/pcap.c | |
parent | handle listening on any interface, by passing to interface option to gg_sniff. (diff) | |
download | glouglou-c0cd9aa085768ef046d5fbb96edce071a2463054.tar.xz glouglou-c0cd9aa085768ef046d5fbb96edce071a2463054.zip |
remove useless ifdef OpenBSD, as we are already in an OpenBSD ifdef
Diffstat (limited to 'gg_sniff/pcap.c')
-rw-r--r-- | gg_sniff/pcap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gg_sniff/pcap.c b/gg_sniff/pcap.c index 89f9f2a..c735f59 100644 --- a/gg_sniff/pcap.c +++ b/gg_sniff/pcap.c @@ -633,11 +633,7 @@ phandler_loop(u_char *user, const struct pcap_pkthdr *h, const u_char *p) len -= NULL_HDRLEN; ip_handle(ip, pend, len); break; -#if defined(__OpenBSD__) case AF_LINK: -#else - case AF_LOCAL: -#endif ep = (struct ether_header *)(p + NULL_HDRLEN); // XXX call phandler_ether instead ether_type = ntohs(ep->ether_type); |