Thread (67 messages) flat view 67 messages, 11 authors, 2012-08-29

Re: [PATCH 02/19] netfilter: nf_ct_sip: fix IPv6 address parsing

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2012-08-14 00:19:38
Also in: netfilter-devel

On Thu, Aug 09, 2012 at 10:08:46PM +0200, kaber@trash.net wrote:
From: Patrick McHardy <redacted>

Within SIP messages IPv6 addresses are enclosed in square brackets in most
cases, with the exception of the "received=" header parameter. Currently
the helper fails to parse enclosed addresses.

This patch:

- changes the SIP address parsing function to enforce square brackets
  when required, and accept them when not required but present, as
  recommended by RFC 5118.

- adds a new SDP address parsing function that never accepts square
  brackets since SDP doesn't use them.

With these changes, the SIP helper correctly parses all test messages
from RFC 5118 (Session Initiation Protocol (SIP) Torture Test Messages
for Internet Protocol Version 6 (IPv6)).
Applied, thanks Patrick.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help