Great Circle Associates Firewalls
(March 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: IHL field in IP packet header
From: chris @ sandpiper . com (Chris Newton)
Date: Wed, 20 Mar 96 11:56:38 PST
To: firewalls @ greatcircle . com

Firwalls Gurus,

I'm trying to set up some packet filtering, on a fairly primitive box. I can
use it get the value of a field at a particular offset, but am unable to 
calculate an offset to use - it has to be an explicit constant value.

The IHL field in the IP header indicates the length of that header - so if,
for instance, I need to get to the TCP destination port field within the
packet, I should calculate the offset of it based upon the value of the IHL.

So my question is, is it valid to reject packets which have an IHL value of
something other than 5, since I can't find a way to index into packets with 
a different value

thanx in advance

chris newton
network security
sandpiper software consulting


Follow-Ups:
Indexed By Date Previous: New subscriber questions
From: Kevin <kevin @ akorn . net>
Next: Re: virus scanning for Internet
From: Scott Barman <scott @ di2 . disclosure . com>
Indexed By Thread Previous: Re: New subscriber questions
From: Paul Ferguson <pferguso @ cisco . com>
Next: Re: IHL field in IP packet header
From: Chris Kostick <ckostick @ ashton . csc . com>

Google
 
Search Internet Search www.greatcircle.com