Re: Extract the payload of the packet from SKB buffer at Layer-2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 29 May 2014 13:06:58 +0530, Ramana Reddy said:
> Is there any mechanism to get the payload area after extracting the transport
> header from skb at layer-2.

Step 0: Figure out why you're committing a layering violation and poking
around in the data down at layer 2.  Ask yourself if a fragmented packet
has been dealt with at that point.  Or if you even *know* down at layer 2
of the OSI 7-layer burrito if there *is* a payload (Hint - which types of
ICMP packets do and don't have a payload?  How about a TCP window probe?).
How does IPv4 versus IPv6 versus Decnet fit in here?

So what are you trying to do here?  It's usually very hard to recommend a
good API to use without a hint or two of what the actual goal is...

Attachment: pgpOaGEOLNaut.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux