PPPoE packets

Dear All,

I would like to know if ther are any APIs for capturing PPPoE packets,

I am currently working with jpcap library which enables the packets to be captured.

However i am getting difficulty in casting those packets to PPPoE form

Thank You

[278 byte] By [anamupotaa] at [2007-11-27 11:01:31]
# 1

'cast'?

You don't have to 'cast' them. Either they are PPPoE packets or they're not. Casting is an operation in the Java language. It has nothing to do with IP protocols or packets.

Mind you they're probably not PPPoE packets, as PPPoE will probably only be spoken between your ADSL modem and the phone line.

ejpa at 2007-7-29 12:37:24 > top of Java-index,Core,Core APIs...
# 2

Thank you for the reply,

How to extract information like src_ip,dst_ip for a PPPoE packet captured.

I'm sure the packets i'm capturing are PPPoE packets. I get the packet in bytes.

So i require hoew to covert those bytes of info to info i mentioned above.

Thank you again!

anamupotaa at 2007-7-29 12:37:24 > top of Java-index,Core,Core APIs...
# 3

You need the packet data and the PPPoE specification.

ejpa at 2007-7-29 12:37:24 > top of Java-index,Core,Core APIs...
# 4

Thanks again

I have both, i mean pppoe type and the data in the pppoe

In fact i have used a filter to filter out pppoe session packets only.

Thank you

anamupotaa at 2007-7-29 12:37:24 > top of Java-index,Core,Core APIs...
# 5

I don't understand what the problem is here.

You have the packet data, you have the specification, you parse the packet according to the specification.

ejpa at 2007-7-29 12:37:24 > top of Java-index,Core,Core APIs...