Use case for selecting the address family (as in other places).

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2012-07-14 19:44:39 +00:00
parent 0ff0fc84c2
commit c9afdc3aa9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238454

View File

@ -2874,14 +2874,12 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset,
return (m);
}
}
if ((*inp_p)->sctp_flags & SCTP_PCB_FLAGS_UDPTYPE) {
if (notification) {
sctp_ulp_notify(notification, *stcb, 0, NULL, SCTP_SO_NOT_LOCKED);
}
if (send_int_conf) {
sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_CONFIRMED,
(*stcb), 0, (void *)netl, SCTP_SO_NOT_LOCKED);
}
if (notification) {
sctp_ulp_notify(notification, *stcb, 0, NULL, SCTP_SO_NOT_LOCKED);
}
if (send_int_conf) {
sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_CONFIRMED,
(*stcb), 0, (void *)netl, SCTP_SO_NOT_LOCKED);
}
return (m);
}