|
From: Jiang Q. <qj...@un...> - 2001-06-15 23:18:58
|
Hi, I have a user program which wants to do something like this: divert packet from the input chain, add some contents to the packet, then send it out to the output chain. The packet is coming from other computer and is sent to another computer. But I've got problem here, I could divert it from input chain, but I can never send it out to the output chain. I got an EINVAL error. But when I modify the source address of the packet to the local address, then the packet could be correctly sent out to the output chain. But this is not what I want. So could anyone help figure out this. I really need to send it out to the output chain without modifying the source address. The only thing that I do is adding some contents to the packet. And I had zero out checksum and recalculate the checksum, also I have zero out the sin structure. Thanks. Jiang Qinglin ------------------------------------------------------------------------- Divert Sockets for Linux List mailto:di...@li... ------------------------------------------------------------------------- |