Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-29-2007, 07:55 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
unsetting router alert(RA) option, when sending through rawsocket

Hi all,
I am sending some data over GRE tunnel for which I am setting IP_HDRINCL and populating inner ip header(final destination), so that socket will only build outer IP header(GRE tunnel destination).
After this I am unsetting the the router alert option. and sending the packet using send to function. It is failing to send data. can some one please look into it.

setsockopt(_ip_socket, IPPROTO_IP, IP_OPTIONS,
rsvp_alert, sizeof(rsvp_alert))

sendto(_ip_socket, final_data, iph->ip_len, MSG_DONTROUTE,
(struct sockaddr *)&saddr, sizeof(saddr))



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending logs by email from D Link router taylorkh Linux - Hardware 1 08-27-2007 07:03 PM
fopen (stage.c:383) .failed .automatic unsetting Hawk124 Linux - General 0 12-25-2004 10:45 PM
unsetting a part of ENV variable praveenv Linux - Newbie 3 08-28-2004 09:36 AM
Problem sending mail with KMail / ADSL router KEJP Linux - Software 6 10-18-2003 10:02 AM
Earthlink Home network Option using router ldare Linux - Networking 2 04-21-2003 08:56 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration