All of lore.kernel.org
 help / color / mirror / Atom feed
* changing packet length?
@ 2005-05-03 21:34 BJ Premore
  2005-05-06 11:14 ` Harald Welte
  0 siblings, 1 reply; 8+ messages in thread
From: BJ Premore @ 2005-05-03 21:34 UTC (permalink / raw)
  To: netfilter-devel

Hi everyone.  I've been pulling my hair out lately, using
netfilter/ipq to try to add options to the TCP header of an
outgoing packet.  However, even just adding 4 bytes of no-op
options results in subsequent incoming packets (via
ipq_get_packet) looking mangled.  (After adding the options,
all appropriate fields were updated--checksums, length
fields, etc.  Also, I was extremely carefully to follow the
specifications for adding the TCP options, proper padding,
etc., etc.  I'm pretty sure my problems do not have to do
with the formatting of the packet.)

So my hopefully simple question is, can packet sizes be
changed and then reinjected using ipq_set_verdict?  I found
one reference that seemed to suggest that modified packets
had to stay the same size.  I've tested modifying packets
without changing their overall byte sizes, and that does in
fact seem to work (Eg, I changed the TTL field.).

If the answer to the above question is 'yes', then I'll
provide more details in the follow-up, in hopes of getting
to the bottom of my troubles.

Thanks in advance,

-bj

BJ Premore

^ permalink raw reply	[flat|nested] 8+ messages in thread
* changing packet length?
@ 2005-05-04 13:34 BJ Premore
  0 siblings, 0 replies; 8+ messages in thread
From: BJ Premore @ 2005-05-04 13:34 UTC (permalink / raw)
  To: netfilter

Hi everyone.  I've been pulling my hair out lately, using
netfilter/ipq to try to add options to the TCP headers of
outgoing packets.  However, even just adding 4 bytes of
no-op options results in subsequent incoming packets (via
ipq_get_packet) looking mangled.  (After adding the options,
all appropriate fields were updated--checksums, length
fields, etc.  Also, I was extremely carefully to follow the
specifications for adding the TCP options, proper padding,
etc., etc.  I'm pretty sure my problems do not have to do
with the formatting of the packet.)

So my hopefully simple question is, can packet sizes be
changed and then reinjected using ipq_set_verdict?  I found
one reference that seemed to suggest that modified packets
had to stay the same size.  I've tested modifying packets
without changing their overall byte sizes, and that does in
fact seem to work (Eg, I changed the TTL field.).

If the answer to the above question is 'yes', then I'll
provide more details in the follow-up, in hopes of getting
to the bottom of my troubles.

Thanks in advance,

-bj

BJ Premore


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-06-07  7:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 21:34 changing packet length? BJ Premore
2005-05-06 11:14 ` Harald Welte
2005-05-06 14:11   ` BJ Premore
2005-05-29 19:00     ` Harald Welte
2005-05-29 19:01     ` Harald Welte
2005-06-07  7:21       ` Quinton Hoole
2005-05-12 15:25   ` Todd Underwood
  -- strict thread matches above, loose matches on Subject: below --
2005-05-04 13:34 BJ Premore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.