[dsc] pcap.c, const struct udphdr on Debian/kFreeBSD
Marc Haber
mh+dsc at zugschlus.de
Mon Apr 11 08:18:10 UTC 2011
Hi,
dsc seems to fail to build on Debian/kFreeBSD. It complains about
const struct udphdr missing some members:
> pcap.c: In function 'handle_udp':
> pcap.c:139:20: error: 'const struct udphdr' has no member named 'uh_sport'
> pcap.c:139:20: error: 'const struct udphdr' has no member named 'uh_sport'
> pcap.c:140:20: error: 'const struct udphdr' has no member named 'uh_dport'
> pcap.c:140:20: error: 'const struct udphdr' has no member named 'uh_dport'
> pcap.c: In function 'handle_tcp':
> pcap.c:532:21: error: 'const struct tcphdr' has no member named 'th_off'
> pcap.c:538:20: error: 'const struct tcphdr' has no member named 'th_sport'
> pcap.c:538:20: error: 'const struct tcphdr' has no member named 'th_sport'
> pcap.c:539:20: error: 'const struct tcphdr' has no member named 'th_dport'
> pcap.c:539:20: error: 'const struct tcphdr' has no member named 'th_dport'
> pcap.c:569:11: error: 'const struct tcphdr' has no member named 'th_seq'
> pcap.c:569:11: error: 'const struct tcphdr' has no member named 'th_seq'
> pcap.c:569:11: error: 'const struct tcphdr' has no member named 'th_seq'
> pcap.c:569:11: error: 'const struct tcphdr' has no member named 'th_seq'
> pcap.c:582:24: error: 'const struct tcphdr' has no member named 'th_flags'
> pcap.c:582:24: error: 'TH_SYN' undeclared (first use in this function)
> pcap.c:582:24: note: each undeclared identifier is reported only once for each function it appears in
> pcap.c:594:9: error: 'const struct tcphdr' has no member named 'th_flags'
> pcap.c:594:9: error: 'TH_RST' undeclared (first use in this function)
> pcap.c:615:9: error: 'const struct tcphdr' has no member named 'th_flags'
> pcap.c:636:9: error: 'const struct tcphdr' has no member named 'th_flags'
> pcap.c:636:9: error: 'TH_FIN' undeclared (first use in this function)
The bug report in the Debian BTS is #622226
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622226).
Can anybody with more clue about libpcap on non-Linux architecture
comment?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
More information about the dsc
mailing list