Don't check for SOCK_DGRAM anymore. Also remove multicast
related code which is not necessary anymore.
This commit is contained in:
parent
abc803dba2
commit
751d3abdea
@ -2523,8 +2523,7 @@ sctp_inpcb_alloc(struct socket *so, uint32_t vrf_id)
|
||||
|
||||
so->so_pcb = (caddr_t)inp;
|
||||
|
||||
if ((SCTP_SO_TYPE(so) == SOCK_DGRAM) ||
|
||||
(SCTP_SO_TYPE(so) == SOCK_SEQPACKET)) {
|
||||
if (SCTP_SO_TYPE(so) == SOCK_SEQPACKET) {
|
||||
/* UDP style socket */
|
||||
inp->sctp_flags = (SCTP_PCB_FLAGS_UDPTYPE |
|
||||
SCTP_PCB_FLAGS_UNBOUND);
|
||||
@ -3721,13 +3720,6 @@ sctp_inpcb_free(struct sctp_inpcb *inp, int immediate, int from)
|
||||
(void)sctp_m_free(ip_pcb->inp_options);
|
||||
ip_pcb->inp_options = 0;
|
||||
}
|
||||
#ifdef INET
|
||||
if (ip_pcb->inp_moptions) {
|
||||
inp_freemoptions(ip_pcb->inp_moptions);
|
||||
ip_pcb->inp_moptions = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef INET6
|
||||
if (ip_pcb->inp_vflag & INP_IPV6) {
|
||||
struct in6pcb *in6p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user