LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2011, 09:17 AM   #1
MegaMindd
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
modifying stream id of ip options Error options (unknown 136)


Hello Everyone,

Problem Description: Need to use stream id in ip options.

h1-------------h2
at h1 am setting the stream id, but at h2 the packets are getting dropped.

Using iptables am placing all outgoing packets in QUEUE,
then using libipq, mangling the contents of ip header.
Iam able to set the stream id in ip options using libipq, but when the packets reaches at destination, they are getting dropped. tcpdump output at destination(h2) is
IP (tos 0x0, ttl 64, id 44232, offset 0, flags [DF], proto TCP (6), length 60, options (unknown 136,EOL)) 192.168.70.129.0 > 192.168.70.130.0: tcp 32 [bad hdr length 0 - too short, < 20]
0x0000: 4700 003c acc8 4000 4006 d59a c0a8 4681
0x0010: c0a8 4682 8804 2000 0000 0000 0000 0000
0x0020: a002 16d0 d70c 0000 0204 05b4 0402 080a
0x0030: 0050 e285 0000 0000 0103 0307

Any relevant answer is appreciated.
Thanks.
 
  


Reply



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
Modifying mount options (ro/rw etc.) during automount via udev kamal.n2 Linux - Laptop and Netbook 8 12-14-2006 02:19 PM
Modifying the Boot Options sfzab SUSE / openSUSE 3 12-26-2005 08:05 PM
Modifying the Boot Options and the mbr file sfzab SUSE / openSUSE 5 12-23-2005 03:46 AM
rpmbuild --with : mysql - unknown option. How to pass extra options to build? fireman949 Red Hat 0 07-06-2005 06:53 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:21 PM.

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