[Click] ToDevice sets unknown protocol on MAC layer
Martin Dam - NDS
ms08 at student.aau.dk
Thu Feb 28 05:24:56 EST 2013
I am trying to create a router in Click which routes LAN packets through
a PPP connection in linuxkernel. My question is how a cloned interface
interprets the received packets.
When a small IP packet captured from FromDevice is sent to
ToDevice(ppp0, TYPE IP), a linux cooked capture header is appended (when
observed via wireshark) with IPv4 marked in the "MAC" protocol as it
should. However, when the packet size is bigger than the MTU and
IPFragmenter fragment the packet, only the first packet is marked as
IPv4. The rest is marked as unknown.
So my question is, how does a cloned interface determine the first
protocol in the packet delivered via ToDevice? I tried using
markIPHeader without any luck.
More information about the click
mailing list