netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Eric Leblond <eric@inl.fr>
Cc: netfilter-devel@lists.netfilter.org, Luis Campo Giralte <lcg223@tid.es>
Subject: Re: Change Packet Payload
Date: Tue, 13 Feb 2007 23:10:16 +0100	[thread overview]
Message-ID: <45D23748.2090609@netfilter.org> (raw)
In-Reply-To: <1171013512.18531.5.camel@localhost>

Hi Eric,

Eric Leblond wrote:
> Le vendredi 09 février 2007 à 10:10 +0100, Luis Campo Giralte a écrit :
>> Hi every one!
>> im using libnetfilter_queue lib, its posible to change any value of the
>> packet, source address, icmp types, payload chars, or any data of the
>> packet received on the Handler (nfq_create_queue(h,0,&MyHandler,NULL))
>> and send it again with the correct checksum?
> 
> Yes, but you have to compute the checksum yourself.

I would accept a patch to introduce a function that computes the
checksum. I think that the library should provide as much helper
functions as possible. We can group such helper functions by protocols
in different files inside the libnetfilter_queue tree. I have already
seen several post in the mailing list on how to retrieve data from the
header and such.

-- 
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris

  parent reply	other threads:[~2007-02-13 22:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09  9:10 Change Packet Payload Luis Campo Giralte
2007-02-09  9:31 ` Eric Leblond
2007-02-09  9:48   ` Henrik Nordstrom
2007-02-13 22:10   ` Pablo Neira Ayuso [this message]
2007-02-14  9:39     ` Sebastien Tricaud
2007-02-14  9:47     ` Sebastien Tricaud
2007-02-14  9:52       ` Patrick McHardy
2007-02-14  9:55         ` Sebastien Tricaud
2007-02-14 10:05           ` Sebastien Tricaud
2007-02-14 10:09             ` Patrick McHardy
2007-02-15  0:36               ` Pablo Neira Ayuso
2007-02-15 14:45                 ` Sebastien Tricaud
2007-02-16 13:11                   ` Sebastien Tricaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D23748.2090609@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=eric@inl.fr \
    --cc=lcg223@tid.es \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).