> I got the code from
> http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html
[quoted text clipped - 3 lines]
> public void receivePacket(Packet packet) {
> System.out.println(packet);
After skimming the javadocs, I'd say you need to do something like
this:
if (packet instanceOf IPPacket) {
IPPacket ipp = (IPPacket)packet;
InetAddress dest = ipp.dest_ip;
InetAddress src = ipp.src_ip;
}
/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
yikaikai - 21 Mar 2007 09:33 GMT
Thank you, I got it.
"Gordon Beaton" <n.o.t@for.email> дÈëÏûÏ¢ÐÂÎÅ:4600e366$0$24617$8404b019@news.wineasy.se...
>> I got the code from
>> http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html
[quoted text clipped - 14 lines]
>
> /gordon