diff options
author | rrs <rrs@FreeBSD.org> | 2007-06-02 11:05:08 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-06-02 11:05:08 +0000 |
commit | 18555b3d48ec06d96b44fa98539c6db54196054e (patch) | |
tree | c18f72f2ca85c02cfe7e378a329a507d80f9907b /sys/netinet/sctp_usrreq.c | |
parent | c5c0761a84c2231d37094c3bc212e67e381f5fe0 (diff) | |
download | FreeBSD-src-18555b3d48ec06d96b44fa98539c6db54196054e.zip FreeBSD-src-18555b3d48ec06d96b44fa98539c6db54196054e.tar.gz |
- fix initial pcb vrf setting when the initial vrf is not the
default_vrf_id
- Missing lock/unlock of inp added as well in the v6 side.
- IFN hash table moves to sctppcbinfo since indexes are
unique across systems (including different VRFs) this makes it easier
to do ifn lookups.
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 2e6f7e2..cc69ba1 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -383,7 +383,6 @@ sctp_getcred(SYSCTL_HANDLER_ARGS) int error; uint32_t vrf_id; - /* FIX, for non-bsd is this right? */ vrf_id = SCTP_DEFAULT_VRFID; @@ -487,6 +486,7 @@ sctp_attach(struct socket *so, int proto, struct thread *p) struct sctp_inpcb *inp; struct inpcb *ip_inp; int error; + uint32_t vrf_id = SCTP_DEFAULT_VRFID; #ifdef IPSEC uint32_t flags; @@ -500,7 +500,7 @@ sctp_attach(struct socket *so, int proto, struct thread *p) if (error) { return error; } - error = sctp_inpcb_alloc(so); + error = sctp_inpcb_alloc(so, vrf_id); if (error) { return error; } |