Networking Forums

Networking Forums > Computer Networking > Linux Networking > Setting DF bit in IP header.

Reply
Thread Tools Display Modes

Setting DF bit in IP header.

 
 
Rajat
Guest
Posts: n/a

 
      06-29-2004, 02:04 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting custom TCP header options grant_holler@yahoo.com Linux Networking 5 09-20-2006 08:04 PM
Key in GRE header Dubert Linux Networking 0 08-31-2005 08:22 AM
linux cooked header to ethernet header conversion makwak Linux Networking 0 05-10-2005 12:36 PM
IP header Compression Dave Windows Networking 1 10-11-2003 01:44 PM
add field to skb header Daniel Linux Networking 2 08-25-2003 05:18 PM



1 2 3 4 5 6 7 8 9 10 11