The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Clouds (Partially Order Sets) - Streams (Linearly Ordered Sets) - Part 2 iBot Complex Event Processing RSS News 0 07-28-2007 03:40 AM
Clouds (Partially Order Sets) – Streams (Linearly Ordered Sets) - Part 1 iBot Complex Event Processing RSS News 0 07-28-2007 03:40 AM
IP Security file sets zuessh AIX 3 04-26-2007 12:52 AM
Character Sets PradeepRed Shell Programming and Scripting 3 10-10-2006 03:39 AM
FILE SETS in unix Aparna_A UNIX for Advanced & Expert Users 2 08-14-2006 12:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-20-2008
Registered User
 

Join Date: May 2008
Posts: 8
How An Application Sets The Ip Options???

Hello Friends,
I'm involved in test the UDP/IP source code.
As you might be knowing, IPv4 provides several options: like Loose Source and Record Route (LSRR), Strict Source and Record Route (SSRR) etc.
I wanted to test the above mentioned IP options.
My strategy is to write a test application on top of the UDP/IP stack and enable the LSRR and send the datagrams. By monitoring the network traffic (using a tool such as ethereal) we can find out whether those options are working correctly or not.
But my problem is: HOW AN APPLICATION SETS THE IP OPTIONS???
BSD provides functions such as getsockopt and setsockopt to change the default behaviour of sockets. But If I see the man page of setsockopt, there are no options to set the above two IP options!!

Can any one please let me know how an application enable LSRR & SSRR IPv4 options.

Thanks in Advance.

Regards,
Md. Aamir Ali
Bangalore
Reply With Quote
Forum Sponsor
  #2  
Old 05-21-2008
Registered User
 

Join Date: Feb 2008
Posts: 18
You may go through chapter 27 of UNIX Network programming. There author explains get/set of ip options with example.

You use following URL for softcopy.
Unix Network Programming, Vol. 1: The Sockets Networking API | Free eBooks Download!

- Dheeraj
Reply With Quote
  #3  
Old 05-21-2008
Registered User
 

Join Date: May 2008
Posts: 8
Thanks Dheeraj,
That book is very useful.
Another thing, any idea about how to set Don't Fragment flag in IP Packet??

Thanks in Advance.

Regards,
Aamir
Reply With Quote
  #4  
Old 05-21-2008
Registered User
 

Join Date: Feb 2008
Posts: 18
I guess there is no way to do this using socket options. I think you would have use raw sockets for that case.

- Dheeraj
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0