Bug 49377 - libpcap - broken include file nesting
Summary: libpcap - broken include file nesting
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tcpdump
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-18 19:58 UTC by Daniel Roesen
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-19 11:16:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Daniel Roesen 2001-07-18 19:58:32 UTC
There are two problems with libpcap headers:

1) why did you move them to /usr/include/pcap? Many sources I compile must
   be manually patched because they expect them to be under /usr/include.

2) pcap/pcap.h includes net/bpf.h, which is actually now pcap/net/bpf.h,
   so including pcap.h

This problem is _very_ old. :-)

Comment 1 Pekka Savola 2001-07-19 11:16:43 UTC
because libpcap contains by default:

pcap.h
pcap-namedb.h
net/bpf.h

and net contains basically system-level stuff, I think the intent was to clearly
separate 
libpcap stuff from the rest.

It's IMO ok solution for this.

Patching can be minimized if 
 1) apps use autoconf :-), or
 2) just add -I/usr/include/pcap in CFLAGS ;-)

patching .h or .c files would be a real mess.. I tried that before starting to
use -I/usr/include/pcap.




Note You need to log in before you can comment on or make changes to this bug.