diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-11-17 20:04:04 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-11-17 20:04:04 +0000 |
commit | 9a8531105a4561079ee099a51460bb789ef9cfd1 (patch) | |
tree | cb12971e11e4ffedd293c41c360db0d49a962bb4 /sys/netinet6 | |
parent | beace53e29166cd087c9e1f48d43899f7c742d2b (diff) | |
download | FreeBSD-src-9a8531105a4561079ee099a51460bb789ef9cfd1.zip FreeBSD-src-9a8531105a4561079ee099a51460bb789ef9cfd1.tar.gz |
Add support for SCTP/UDP/IPV6.
This completes the support of
http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps
MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 9 | ||||
-rw-r--r-- | sys/netinet6/sctp6_var.h | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index 58fe3a3..29f3ae6 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -66,7 +66,7 @@ __FBSDID("$FreeBSD$"); extern struct protosw inetsw[]; int -sctp6_input(struct mbuf **i_pak, int *offp, int proto) +sctp6_input_with_port(struct mbuf **i_pak, int *offp, uint16_t port) { struct mbuf *m; int iphlen; @@ -84,7 +84,6 @@ sctp6_input(struct mbuf **i_pak, int *offp, int proto) #endif uint32_t mflowid; uint8_t use_mflowid; - uint16_t port = 0; iphlen = *offp; if (SCTP_GET_PKT_VRFID(*i_pak, vrf_id)) { @@ -195,6 +194,12 @@ out: } +int +sctp6_input(struct mbuf **i_pak, int *offp, int proto SCTP_UNUSED) +{ + return (sctp6_input_with_port(i_pak, offp, 0)); +} + static void sctp6_notify_mbuf(struct sctp_inpcb *inp, struct icmp6_hdr *icmp6, struct sctphdr *sh, struct sctp_tcb *stcb, struct sctp_nets *net) diff --git a/sys/netinet6/sctp6_var.h b/sys/netinet6/sctp6_var.h index 74d7ebc..79d4c52 100644 --- a/sys/netinet6/sctp6_var.h +++ b/sys/netinet6/sctp6_var.h @@ -42,6 +42,7 @@ SYSCTL_DECL(_net_inet6_sctp6); extern struct pr_usrreqs sctp6_usrreqs; int sctp6_input(struct mbuf **, int *, int); +int sctp6_input_with_port(struct mbuf **, int *, uint16_t); int sctp6_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *, struct mbuf *, struct proc *); |