android_kernel_samsung_msm8976/include/net/sctp
Bhaskar Dutta 723884339f sctp: Sysctl configuration for IPv4 Address Scoping
This patch introduces a new sysctl option to make IPv4 Address Scoping
configurable <draft-stewart-tsvwg-sctp-ipv4-00.txt>.

In networking environments where DNAT rules in iptables prerouting
chains convert destination IP's to link-local/private IP addresses,
SCTP connections fail to establish as the INIT chunk is dropped by the
kernel due to address scope match failure.
For example to support overlapping IP addresses (same IP address with
different vlan id) a Layer-5 application listens on link local IP's,
and there is a DNAT rule that maps the destination IP to a link local
IP. Such applications never get the SCTP INIT if the address-scoping
draft is strictly followed.

This sysctl configuration allows SCTP to function in such
unconventional networking environments.

Sysctl options:
0 - Disable IPv4 address scoping draft altogether
1 - Enable IPv4 address scoping (default, current behavior)
2 - Enable address scoping but allow IPv4 private addresses in init/init-ack
3 - Enable address scoping but allow IPv4 link local address in init/init-ack

Signed-off-by: Bhaskar Dutta <bhaskar.dutta@globallogic.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
2009-09-04 18:21:01 -04:00
..
auth.h
checksum.h
command.h sctp: Send user messages to the lower layer as one 2009-09-04 18:20:57 -04:00
constants.h sctp: Sysctl configuration for IPv4 Address Scoping 2009-09-04 18:21:01 -04:00
sctp.h sctp: Fix SCTP_MAXSEG socket option to comply to spec. 2009-09-04 18:21:00 -04:00
sm.h
structs.h sctp: Sysctl configuration for IPv4 Address Scoping 2009-09-04 18:21:01 -04:00
tsnmap.h
ulpevent.h
ulpqueue.h
user.h sctp: remove unused union (sctp_cmsg_data_t) definition 2009-09-04 18:20:55 -04:00