summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2011-07-12 20:14:03 +0000
committertuexen <tuexen@FreeBSD.org>2011-07-12 20:14:03 +0000
commit751d3abdea3b16734bff1812e7e8e18b69c9fdd9 (patch)
tree00d3aa090c4b26907958d337e1dbfd70cf280f2e /sys/netinet
parentabc803dba23145a9e5f167332dad9e3b3c0d2d5f (diff)
downloadFreeBSD-src-751d3abdea3b16734bff1812e7e8e18b69c9fdd9.zip
FreeBSD-src-751d3abdea3b16734bff1812e7e8e18b69c9fdd9.tar.gz
Don't check for SOCK_DGRAM anymore. Also remove multicast
related code which is not necessary anymore.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_pcb.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 8dc01cd..7059365 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -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;
OpenPOWER on IntegriCloud