From: Patrick McHardy <kaber@trash.net>
To: Christian Hentschel <chentschel@arnet.com.ar>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: ip_nat_mangle_udp_packet problems
Date: Fri, 06 May 2005 18:24:24 +0200 [thread overview]
Message-ID: <427B9A38.2040602@trash.net> (raw)
In-Reply-To: <1115310771.1852.11.camel@www.l-chr.com.ar>
Christian Hentschel wrote:
> Hi,
> i hope someone could answer this problem i'm experimenting. I'm writing
> a SIP/RTP conntrack/NAT helper, and i need to mangle packets multiple
> times, since there are lots of fields to be mangled.
> I'm using new conntrack/nat framework (>2.6.11) and the way i took to
> do it is causing me some problems.
> Basically, i just look for string into the packet, mangle it and call
> ip_nat_mangle_udp_packet(). The problem is when i try to search the
> nexts strings, i get the wrong offsets.
> I saw ip_nat_mangle_udp_packet() does not do it manipulation
> immediatelly. Please could someone explain this ?.
enlarge_skb() called from ip_nat_mangle_udp_packet() might replace the
packet if it doesn't fit. You need to reload all pointers to the skb
after calling ip_nat_mangle_udp_packet().
Regards
Patrick
next prev parent reply other threads:[~2005-05-06 16:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-05 16:32 ip_nat_mangle_udp_packet problems Christian Hentschel
2005-05-06 16:24 ` Patrick McHardy [this message]
2005-05-06 18:27 ` Christian Hentschel
2005-05-06 18:36 ` Patrick McHardy
2005-05-06 18:50 ` Christian Hentschel
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=427B9A38.2040602@trash.net \
--to=kaber@trash.net \
--cc=chentschel@arnet.com.ar \
--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 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.