Check of datalen meaning

William Stearns William Stearns <wstearns@pobox.com>
Mon, 19 Nov 2001 14:26:32 -0500 (EST)


Good day, all,
	I'm writing (*) a netfilter match module for the _data_ length of 
a packet, i.e., the length of the packet after the ip and protocol headers 
have been stripped.
	In the netfilter match() function, is the passed parameter
"datalen" the length of the user data block, i.e. the length of the packet
- len IP header - len protocol header?  My best read of the code says it 
is, and if so, it would be exactly what I need.
	Thanks in advance.  Cheers,
	- Bill

(Translation: shamelessly absconding with James Morris' ipt_length code, 
with attibution.)

---------------------------------------------------------------------------
	Like the ad says, at 300 dpi you can tell she's wearing a
swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you can tell it's
painted on. I suppose at 2400 dpi you can tell if the paint is giving her
a rash. (So says Joshua R. Poulson) 
(Courtesy of Bob Taylor <brtaylor@qtpi.lakewood.ca.us>)
--------------------------------------------------------------------------
William Stearns (wstearns@pobox.com).  Mason, Buildkernel, named2hosts, 
and ipfwadm2ipchains are at:                http://www.pobox.com/~wstearns
LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com
--------------------------------------------------------------------------