ip layer version field, set in kernel at ?

Submitted by x86processor
on January 21, 2004 - 6:37pm

Hi!

I would like to know in which source file is the IP layer Version field set (like 0x4) in case of IPv4.

I have been browsing thro' the /net folder in http://lxr.linux.no/source/ for kernel 2.4.2 but, unable to find it.

Can anyone tell me where it is used in the source code?

x86

net/core/pktgen.c check this file

on
October 5, 2004 - 3:06am

fillpacket() function in pktgen.c is setting this version field.
check this link:
http://lxr.linux.no/source/net/core/pktgen.c#L495 (of 2.4.20).
:kmanoj

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.