Don't check for SOCK_DGRAM anymore. Also remove multicast
related code which is not necessary anymore.
This commit is contained in:
parent
813f118c6e
commit
1a3b5ce2b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223965
@ -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…
Reference in New Issue
Block a user