diff options
| author | Patrick McHardy <kaber@trash.net> | 2012-08-26 13:14:25 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-29 21:00:22 -0400 |
| commit | 9a664821068739dbc8eac13770e28167b46a0c0f (patch) | |
| tree | df7921b2a21c92442fb9021688006f09e5e3bebd /include/linux | |
| parent | ee6eb96673704225164f0ba7462e1973ce10885c (diff) | |
netfilter: nf_nat: support IPv6 in SIP NAT helper
Add IPv6 support to the SIP NAT helper. There are no functional differences
to IPv4 NAT, just different formats for addresses.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter/nf_conntrack_sip.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/netfilter/nf_conntrack_sip.h b/include/linux/netfilter/nf_conntrack_sip.h index 1afc669a393e..387bdd02945d 100644 --- a/include/linux/netfilter/nf_conntrack_sip.h +++ b/include/linux/netfilter/nf_conntrack_sip.h | |||
| @@ -99,10 +99,8 @@ enum sip_header_types { | |||
| 99 | enum sdp_header_types { | 99 | enum sdp_header_types { |
| 100 | SDP_HDR_UNSPEC, | 100 | SDP_HDR_UNSPEC, |
| 101 | SDP_HDR_VERSION, | 101 | SDP_HDR_VERSION, |
| 102 | SDP_HDR_OWNER_IP4, | 102 | SDP_HDR_OWNER, |
| 103 | SDP_HDR_CONNECTION_IP4, | 103 | SDP_HDR_CONNECTION, |
| 104 | SDP_HDR_OWNER_IP6, | ||
| 105 | SDP_HDR_CONNECTION_IP6, | ||
| 106 | SDP_HDR_MEDIA, | 104 | SDP_HDR_MEDIA, |
| 107 | }; | 105 | }; |
| 108 | 106 | ||
| @@ -111,7 +109,8 @@ extern unsigned int (*nf_nat_sip_hook)(struct sk_buff *skb, | |||
| 111 | unsigned int dataoff, | 109 | unsigned int dataoff, |
| 112 | const char **dptr, | 110 | const char **dptr, |
| 113 | unsigned int *datalen); | 111 | unsigned int *datalen); |
| 114 | extern void (*nf_nat_sip_seq_adjust_hook)(struct sk_buff *skb, s16 off); | 112 | extern void (*nf_nat_sip_seq_adjust_hook)(struct sk_buff *skb, |
| 113 | unsigned int protoff, s16 off); | ||
| 115 | extern unsigned int (*nf_nat_sip_expect_hook)(struct sk_buff *skb, | 114 | extern unsigned int (*nf_nat_sip_expect_hook)(struct sk_buff *skb, |
| 116 | unsigned int protoff, | 115 | unsigned int protoff, |
| 117 | unsigned int dataoff, | 116 | unsigned int dataoff, |
