LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   modifying stream id of ip options Error options (unknown 136) (https://www.linuxquestions.org/questions/programming-9/modifying-stream-id-of-ip-options-error-options-unknown-136-a-884989/)

MegaMindd 06-07-2011 09:17 AM

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.


All times are GMT -5. The time now is 08:53 AM.