Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] IP-Datagramm (Options Feld)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Fri Apr 15, 2005 8:43 pm    Post subject: [OT] IP-Datagramm (Options Feld) Reply with quote

Hi,
hab mal eine komplexe Frage zu IP. Das IP Datagramm besitzt ein "Option" Feld.
Wie kann man rein theoretisch und anhand von den vorhandenen Daten im Datagramm feststellen, ob die Optionen leer bleiben?


Gruß,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Apr 15, 2005 11:06 pm    Post subject: Reply with quote

Indem man nachschaut was im IHL steht, d.h. wie lang der IP-Header ist. Wenn IHL>20 dann sind Options vorhanden ansonsten nicht.

Oder habe ich die Frage nicht verstanden?
Achja: IHL findet sich hier: http://www.jxos.org/Projects/TCP/ipheader.html

HTH
T.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Apr 15, 2005 11:11 pm    Post subject: Reply with quote

IHL ist vier-bittig. Ohne Optionen IHL=5 und die daraus resultierende (minimale) Headerlänge beträgt 20 Byte.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Apr 15, 2005 11:16 pm    Post subject: Reply with quote

sag ich doch bzw. ich meinte es jedenfalls so :roll:

20 (Byte) == 5x32Bit, daher default = 5 -> alles größer 5 heißt 'options included'

is halt schon spät :-)
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Sat Apr 16, 2005 4:38 pm    Post subject: Reply with quote

genau das war meine Frage, welche auch damit beantwortet wurde.
Merci Carlo & Think4UrS11.


Gruß,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum