Also "pcap_sendpacket" is defined in pcap.h...
> Hi,
>
[quoted text clipped - 45 lines]
> libpcap.so.0.7 (libc6) => /usr/lib/libpcap.so.0.7
> ---8< eo ldconfig output >8---
> Also if anyone knows of an alternative way of capturing ethernet
> packages in Java, please feel free to do suggestions.
I know of no other way. But you rejected the working jpcap because it
wouldn't let you *send* packets. Which is it?
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /usr/lib/j2sdk1.4-sun/jre/lib/i386/libjpcap.so:
> /usr/lib/j2sdk1.4-sun/jre/lib/i386/libjpcap.so: undefined symbol: pcap_sendpacket
[...]
> libpcap.so.0.8 (libc6) => /usr/lib/libpcap.so.0.8
> libpcap.so.0.7 (libc6) => /usr/lib/libpcap.so.0.7
According to the libpcap changelog, support for sending packets was
not introduced until version 0.9.3.
> Also "pcap_sendpacket" is defined in pcap.h...
But not in the library, apparently.
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Gordon Beaton - 13 Nov 2006 12:28 GMT
>> libpcap.so.0.8 (libc6) => /usr/lib/libpcap.so.0.8
>> libpcap.so.0.7 (libc6) => /usr/lib/libpcap.so.0.7
>
> According to the libpcap changelog, support for sending packets was
> not introduced until version 0.9.3.
In fact, according "Requirements" in the jpcap-0.5.1 README, you need
libpcap 0.9.4 or later.
(I was not aware until just now that the jpcap you're using is not
related to the one on sourceforge).
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Eelco - 14 Nov 2006 19:18 GMT
Thanks a lot for your reply.
The reason for this problem was exactly what you described. I was under
the assumption that version 0.8.3 of libpcap had the needed
functionality available but apparently I checked wrong :-)
Thanks again.
Gordon Beaton schreef:
> >> libpcap.so.0.8 (libc6) => /usr/lib/libpcap.so.0.8
> >> libpcap.so.0.7 (libc6) => /usr/lib/libpcap.so.0.7
[quoted text clipped - 13 lines]
> [ don't email me support questions or followups ]
> g o r d o n + n e w s @ b a l d e r 1 3 . s e