• Patrick McHardy's avatar
    netfilter: nf_ct_sip: fix IPv6 address parsing · 02b69cbd
    Patrick McHardy authored
    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)).
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    02b69cbd
Name
Last commit
Last update
..
ipset Loading commit data...
Kbuild Loading commit data...
nf_conntrack_amanda.h Loading commit data...
nf_conntrack_common.h Loading commit data...
nf_conntrack_dccp.h Loading commit data...
nf_conntrack_ftp.h Loading commit data...
nf_conntrack_h323.h Loading commit data...
nf_conntrack_h323_asn1.h Loading commit data...
nf_conntrack_h323_types.h Loading commit data...
nf_conntrack_irc.h Loading commit data...
nf_conntrack_pptp.h Loading commit data...
nf_conntrack_proto_gre.h Loading commit data...
nf_conntrack_sane.h Loading commit data...
nf_conntrack_sctp.h Loading commit data...
nf_conntrack_sip.h Loading commit data...
nf_conntrack_snmp.h Loading commit data...
nf_conntrack_tcp.h Loading commit data...
nf_conntrack_tftp.h Loading commit data...
nf_conntrack_tuple_common.h Loading commit data...
nf_nat.h Loading commit data...
nfnetlink.h Loading commit data...
nfnetlink_acct.h Loading commit data...
nfnetlink_compat.h Loading commit data...
nfnetlink_conntrack.h Loading commit data...
nfnetlink_cthelper.h Loading commit data...
nfnetlink_cttimeout.h Loading commit data...
nfnetlink_log.h Loading commit data...
nfnetlink_queue.h Loading commit data...
x_tables.h Loading commit data...
xt_AUDIT.h Loading commit data...
xt_CHECKSUM.h Loading commit data...
xt_CLASSIFY.h Loading commit data...
xt_CONNMARK.h Loading commit data...
xt_CONNSECMARK.h Loading commit data...
xt_CT.h Loading commit data...
xt_DSCP.h Loading commit data...
xt_HMARK.h Loading commit data...
xt_IDLETIMER.h Loading commit data...
xt_LED.h Loading commit data...
xt_LOG.h Loading commit data...
xt_MARK.h Loading commit data...
xt_NFLOG.h Loading commit data...
xt_NFQUEUE.h Loading commit data...
xt_RATEEST.h Loading commit data...
xt_SECMARK.h Loading commit data...
xt_TCPMSS.h Loading commit data...
xt_TCPOPTSTRIP.h Loading commit data...
xt_TEE.h Loading commit data...
xt_TPROXY.h Loading commit data...
xt_addrtype.h Loading commit data...
xt_cluster.h Loading commit data...
xt_comment.h Loading commit data...
xt_connbytes.h Loading commit data...
xt_connlimit.h Loading commit data...
xt_connmark.h Loading commit data...
xt_conntrack.h Loading commit data...
xt_cpu.h Loading commit data...
xt_dccp.h Loading commit data...
xt_devgroup.h Loading commit data...
xt_dscp.h Loading commit data...
xt_ecn.h Loading commit data...
xt_esp.h Loading commit data...
xt_hashlimit.h Loading commit data...
xt_helper.h Loading commit data...
xt_iprange.h Loading commit data...
xt_ipvs.h Loading commit data...
xt_length.h Loading commit data...
xt_limit.h Loading commit data...
xt_mac.h Loading commit data...
xt_mark.h Loading commit data...
xt_multiport.h Loading commit data...
xt_nfacct.h Loading commit data...
xt_osf.h Loading commit data...
xt_owner.h Loading commit data...
xt_physdev.h Loading commit data...
xt_pkttype.h Loading commit data...
xt_policy.h Loading commit data...
xt_quota.h Loading commit data...
xt_rateest.h Loading commit data...
xt_realm.h Loading commit data...
xt_recent.h Loading commit data...
xt_rpfilter.h Loading commit data...
xt_sctp.h Loading commit data...
xt_set.h Loading commit data...
xt_socket.h Loading commit data...
xt_state.h Loading commit data...
xt_statistic.h Loading commit data...
xt_string.h Loading commit data...
xt_tcpmss.h Loading commit data...
xt_tcpudp.h Loading commit data...
xt_time.h Loading commit data...
xt_u32.h Loading commit data...