Skip to contentSkip to conversation

libipq does not shorten package

DISCUSSION David Vogt 2 participants 3 messages Mar 9, 2006 – Mar 10, 2006 netfilter

lore
Share & tools
lore

David Vogt

author
#0 lore raw

Dear all,

I already posted this question on netfilter mailing list, however, I got no response, so maybe someone around here can help me.

I am using iptables and queue packets to user space. Packets are either augmented (with a signature) or shortened (removal of signature). The augmentation works.
However, when removing the signature, the resulting packet contains
the correct data, but its overall size is equal to the original (signed) packet. (i.e. original packet size: 83, signed packet size:
163)

I checked this using ethereal on the receiving machine, which lists
packets with the additional bytes (163-83=79) as trailer for the ethernet frame. (So, actually, the packet is processed correclty on the other side, however, the additional bytes seem odd to me)

I am using iptables 1.2.9 which is - admittedly - not the newset available, maybe there already has been a fix concerning this? I haven't updated iptables yet, since the target platform is somewhat limited and not fully under my control.

Any help would be great.

#1 lore raw
Quoted 5 lines · David Vogt

Dear all,

I already posted this question on netfilter mailing list, however, I got no response, so maybe someone around here can help me.

Quoted 7 lines

I am using iptables and queue packets to user space. Packets are either augmented (with a signature) or shortened (removal of signature). The augmentation works.
However, when removing the signature, the resulting packet contains
the correct data, but its overall size is equal to the original (signed) packet. (i.e. original packet size: 83, signed packet size:
163)

Thomas Graf posted a patch that should fix this a couple of days ago, check the list archives.

author
#2 lore raw

2006/3/9, Patrick McHardy <[email protected]>:

Quoted 9 lines
Quoted 7 lines · David Vogt

I am using iptables and queue packets to user space. Packets are either augmented (with a signature) or shortened (removal of signature). The augmentation works.
However, when removing the signature, the resulting packet contains
the correct data, but its overall size is equal to the original (signed) packet. (i.e. original packet size: 83, signed packet size:
163)

Quoted 3 lines

Thomas Graf posted a patch that should fix this a couple of days ago, check the list archives.

I haven't seen that patch, altough I have been reading netfilter-devel for quiete some time now. Sorry for the inconvenience.

D.