Bluehost.com Web Hosting $6.95

Setting DF bit in IP header.

This is a discussion on Setting DF bit in IP header. within the Linux Networking forums, part of the Linux Forums category; Hello All, Can any body tell me, How to set the DF bit for IP header over Linux OS. As ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-29-2004
Rajat
 
Posts: n/a
Default Setting DF bit in IP header.

Hello All,

Can any body tell me, How to set the DF bit for IP header over Linux
OS. As right now I am using setsockopt(), with option IP_MTU_DISCOVER
and optval as IP_PMTUDISC_DO. Like,

int optval = IP_PMTUDISC_DO;
err_code = setsockopt(socket,
SOL_IP,
IP_MTU_DISCOVER,
&optval,
sizeof(int));

But this option also forces the PMTUD for the given socket, that I
don't want. This PMTUD I am implementing by my own.

So can you tell me any other way to set it ON.

I am also not intrested in setting IP_HDRINCL option, to provide my
own IP header while sending, for just setting the DF bit value.

Thanks in advance.

Rajat.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0