2 * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
31 * Copyright (c) 1982, 1986, 1988, 1993
32 * The Regents of the University of California. All rights reserved.
34 * Redistribution and use in source and binary forms, with or without
35 * modification, are permitted provided that the following conditions
37 * 1. Redistributions of source code must retain the above copyright
38 * notice, this list of conditions and the following disclaimer.
39 * 2. Redistributions in binary form must reproduce the above copyright
40 * notice, this list of conditions and the following disclaimer in the
41 * documentation and/or other materials provided with the distribution.
42 * 3. All advertising materials mentioning features or use of this software
43 * must display the following acknowledgement:
44 * This product includes software developed by the University of
45 * California, Berkeley and its contributors.
46 * 4. Neither the name of the University nor the names of its contributors
47 * may be used to endorse or promote products derived from this software
48 * without specific prior written permission.
50 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
51 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
54 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
62 * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95
65 #include <sys/param.h>
66 #include <sys/systm.h>
67 #include <sys/kernel.h>
68 #include <sys/malloc.h>
71 #include <sys/domain.h>
72 #include <sys/protosw.h>
73 #include <sys/socket.h>
74 #include <sys/socketvar.h>
75 #include <sys/sysctl.h>
78 #include <vm/vm_zone.h>
82 #include <net/route.h>
85 #include <netinet/in.h>
86 #include <netinet/in_systm.h>
87 #include <netinet/ip.h>
88 #include <netinet/in_pcb.h>
89 #include <netinet/in_var.h>
90 #include <netinet/ip_var.h>
91 #include <netinet/ip_mroute.h>
93 #include <netinet/ip_fw.h>
96 #include <netinet6/ipsec.h>
100 #include <netinet/ip_dummynet.h>
104 extern int ipsec_bypass
;
105 extern lck_mtx_t
*sadb_mutex
;
108 extern u_long route_generation
;
109 struct inpcbhead ripcb
;
110 struct inpcbinfo ripcbinfo
;
112 /* control hooks for ipfw and dummynet */
113 ip_fw_ctl_t
*ip_fw_ctl_ptr
;
115 ip_dn_ctl_t
*ip_dn_ctl_ptr
;
116 #endif /* DUMMYNET */
119 * Nominal space allocated to a raw ip socket.
125 * Raw interface to IP protocol.
129 * Initialize raw connection block q.
134 struct inpcbinfo
*pcbinfo
;
137 ripcbinfo
.listhead
= &ripcb
;
139 * XXX We don't use the hash list for raw IP, but it's easier
140 * to allocate a one entry hash list than it is to check all
141 * over the place for hashbase == NULL.
143 ripcbinfo
.hashbase
= hashinit(1, M_PCB
, &ripcbinfo
.hashmask
);
144 ripcbinfo
.porthashbase
= hashinit(1, M_PCB
, &ripcbinfo
.porthashmask
);
146 ripcbinfo
.ipi_zone
= (void *) zinit(sizeof(struct inpcb
),
147 (4096 * sizeof(struct inpcb
)),
150 pcbinfo
= &ripcbinfo
;
152 * allocate lock group attribute and group for udp pcb mutexes
154 pcbinfo
->mtx_grp_attr
= lck_grp_attr_alloc_init();
155 lck_grp_attr_setdefault(pcbinfo
->mtx_grp_attr
);
157 pcbinfo
->mtx_grp
= lck_grp_alloc_init("ripcb", pcbinfo
->mtx_grp_attr
);
160 * allocate the lock attribute for udp pcb mutexes
162 pcbinfo
->mtx_attr
= lck_attr_alloc_init();
163 lck_attr_setdefault(pcbinfo
->mtx_attr
);
165 if ((pcbinfo
->mtx
= lck_rw_alloc_init(pcbinfo
->mtx_grp
, pcbinfo
->mtx_attr
)) == NULL
)
166 return; /* pretty much dead if this fails... */
170 static struct sockaddr_in ripsrc
= { sizeof(ripsrc
), AF_INET
};
172 * Setup generic address and protocol structures
173 * for raw_input routine, then pass them along with
181 register struct ip
*ip
= mtod(m
, struct ip
*);
182 register struct inpcb
*inp
;
183 struct inpcb
*last
= 0;
184 struct mbuf
*opts
= 0;
187 ripsrc
.sin_addr
= ip
->ip_src
;
188 lck_rw_lock_shared(ripcbinfo
.mtx
);
189 LIST_FOREACH(inp
, &ripcb
, inp_list
) {
191 if ((inp
->inp_vflag
& INP_IPV4
) == 0)
194 if (inp
->inp_ip_p
&& (inp
->inp_ip_p
!= ip
->ip_p
))
196 if (inp
->inp_laddr
.s_addr
&&
197 inp
->inp_laddr
.s_addr
!= ip
->ip_dst
.s_addr
)
199 if (inp
->inp_faddr
.s_addr
&&
200 inp
->inp_faddr
.s_addr
!= ip
->ip_src
.s_addr
)
203 struct mbuf
*n
= m_copy(m
, 0, (int)M_COPYALL
);
206 /* check AH/ESP integrity. */
208 if (ipsec_bypass
== 0 && n
) {
209 lck_mtx_lock(sadb_mutex
);
210 if (ipsec4_in_reject_so(n
, last
->inp_socket
)) {
212 ipsecstat
.in_polvio
++;
213 /* do not inject data to pcb */
216 lck_mtx_unlock(sadb_mutex
);
219 if (n
&& skipit
== 0) {
221 if (last
->inp_flags
& INP_CONTROLOPTS
||
222 last
->inp_socket
->so_options
& SO_TIMESTAMP
)
223 ip_savecontrol(last
, &opts
, ip
, n
);
224 if (last
->inp_flags
& INP_STRIPHDR
) {
226 n
->m_pkthdr
.len
-= iphlen
;
229 // ###LOCK need to lock that socket?
230 if (sbappendaddr(&last
->inp_socket
->so_rcv
,
231 (struct sockaddr
*)&ripsrc
, n
,
232 opts
, &error
) != 0) {
233 sorwakeup(last
->inp_socket
);
237 /* should notify about lost packet */
238 kprintf("rip_input can't append to socket\n");
246 lck_rw_done(ripcbinfo
.mtx
);
248 /* check AH/ESP integrity. */
250 if (ipsec_bypass
== 0 && last
) {
251 lck_mtx_lock(sadb_mutex
);
252 if (ipsec4_in_reject_so(m
, last
->inp_socket
)) {
254 ipsecstat
.in_polvio
++;
255 ipstat
.ips_delivered
--;
256 /* do not inject data to pcb */
259 lck_mtx_unlock(sadb_mutex
);
264 if (last
->inp_flags
& INP_CONTROLOPTS
||
265 last
->inp_socket
->so_options
& SO_TIMESTAMP
)
266 ip_savecontrol(last
, &opts
, ip
, m
);
267 if (last
->inp_flags
& INP_STRIPHDR
) {
269 m
->m_pkthdr
.len
-= iphlen
;
272 if (sbappendaddr(&last
->inp_socket
->so_rcv
,
273 (struct sockaddr
*)&ripsrc
, m
, opts
, NULL
) != 0) {
274 sorwakeup(last
->inp_socket
);
276 kprintf("rip_input(2) can't append to socket\n");
280 ipstat
.ips_noproto
++;
281 ipstat
.ips_delivered
--;
287 * Generate IP header and pass packet to ip_output.
288 * Tack on options user may have setup with control call.
291 rip_output(m
, so
, dst
)
292 register struct mbuf
*m
;
296 register struct ip
*ip
;
297 register struct inpcb
*inp
= sotoinpcb(so
);
298 int flags
= (so
->so_options
& SO_DONTROUTE
) | IP_ALLOWBROADCAST
;
301 * If the user handed us a complete IP packet, use it.
302 * Otherwise, allocate an mbuf for a header and fill it in.
304 if ((inp
->inp_flags
& INP_HDRINCL
) == 0) {
305 if (m
->m_pkthdr
.len
+ sizeof(struct ip
) > IP_MAXPACKET
) {
309 M_PREPEND(m
, sizeof(struct ip
), M_WAIT
);
310 ip
= mtod(m
, struct ip
*);
311 ip
->ip_tos
= inp
->inp_ip_tos
;
313 ip
->ip_p
= inp
->inp_ip_p
;
314 ip
->ip_len
= m
->m_pkthdr
.len
;
315 ip
->ip_src
= inp
->inp_laddr
;
316 ip
->ip_dst
.s_addr
= dst
;
317 ip
->ip_ttl
= inp
->inp_ip_ttl
;
319 if (m
->m_pkthdr
.len
> IP_MAXPACKET
) {
323 ip
= mtod(m
, struct ip
*);
324 /* don't allow both user specified and setsockopt options,
325 and don't allow packet length sizes that will crash */
326 if (((IP_VHL_HL(ip
->ip_vhl
) != (sizeof (*ip
) >> 2))
328 || (ip
->ip_len
> m
->m_pkthdr
.len
)
329 || (ip
->ip_len
< (IP_VHL_HL(ip
->ip_vhl
) << 2))) {
335 ip
->ip_id
= ip_randomid();
337 ip
->ip_id
= htons(ip_id
++);
339 /* XXX prevent ip_output from overwriting header fields */
340 flags
|= IP_RAWOUTPUT
;
345 if (ipsec_bypass
== 0 && ipsec_setsocket(m
, so
) != 0) {
351 if (inp
->inp_route
.ro_rt
&& inp
->inp_route
.ro_rt
->generation_id
!= route_generation
) {
352 rtfree(inp
->inp_route
.ro_rt
);
353 inp
->inp_route
.ro_rt
= (struct rtentry
*)0;
356 return (ip_output_list(m
, 0, inp
->inp_options
, &inp
->inp_route
, flags
,
368 if (!DUMMYNET_LOADED
)
370 #endif /* DUMMYNET */
373 return err
== 0 && ip_fw_ctl_ptr
== NULL
? -1 : err
;
377 * Raw IP socket option processing.
380 rip_ctloutput(so
, sopt
)
382 struct sockopt
*sopt
;
384 struct inpcb
*inp
= sotoinpcb(so
);
387 if (sopt
->sopt_level
!= IPPROTO_IP
)
392 switch (sopt
->sopt_dir
) {
394 switch (sopt
->sopt_name
) {
396 optval
= inp
->inp_flags
& INP_HDRINCL
;
397 error
= sooptcopyout(sopt
, &optval
, sizeof optval
);
401 optval
= inp
->inp_flags
& INP_STRIPHDR
;
402 error
= sooptcopyout(sopt
, &optval
, sizeof optval
);
409 if (ip_fw_ctl_ptr
== 0)
411 if (ip_fw_ctl_ptr
&& error
== 0)
412 error
= ip_fw_ctl_ptr(sopt
);
418 case IP_DUMMYNET_GET
:
420 error
= ip_dn_ctl_ptr(sopt
);
424 #endif /* DUMMYNET */
434 error
= ip_mrouter_get(so
, sopt
);
438 error
= ip_ctloutput(so
, sopt
);
444 switch (sopt
->sopt_name
) {
446 error
= sooptcopyin(sopt
, &optval
, sizeof optval
,
451 inp
->inp_flags
|= INP_HDRINCL
;
453 inp
->inp_flags
&= ~INP_HDRINCL
;
457 error
= sooptcopyin(sopt
, &optval
, sizeof optval
,
462 inp
->inp_flags
|= INP_STRIPHDR
;
464 inp
->inp_flags
&= ~INP_STRIPHDR
;
475 case IP_OLD_FW_FLUSH
:
477 case IP_OLD_FW_RESETLOG
:
478 if (ip_fw_ctl_ptr
== 0)
480 if (ip_fw_ctl_ptr
&& error
== 0)
481 error
= ip_fw_ctl_ptr(sopt
);
487 case IP_DUMMYNET_CONFIGURE
:
488 case IP_DUMMYNET_DEL
:
489 case IP_DUMMYNET_FLUSH
:
491 error
= ip_dn_ctl_ptr(sopt
);
493 error
= ENOPROTOOPT
;
498 error
= ip_rsvp_init(so
);
502 error
= ip_rsvp_done();
505 /* XXX - should be combined */
507 error
= ip_rsvp_vif_init(so
, sopt
);
510 case IP_RSVP_VIF_OFF
:
511 error
= ip_rsvp_vif_done(so
, sopt
);
522 error
= ip_mrouter_set(so
, sopt
);
526 error
= ip_ctloutput(so
, sopt
);
536 * This function exists solely to receive the PRC_IFDOWN messages which
537 * are sent by if_down(). It looks for an ifaddr whose ifa_addr is sa,
538 * and calls in_ifadown() to remove all routes corresponding to that address.
539 * It also receives the PRC_IFUP messages from if_up() and reinstalls the
543 rip_ctlinput(cmd
, sa
, vip
)
548 struct in_ifaddr
*ia
;
555 lck_mtx_lock(rt_mtx
);
556 for (ia
= in_ifaddrhead
.tqh_first
; ia
;
557 ia
= ia
->ia_link
.tqe_next
) {
558 if (ia
->ia_ifa
.ifa_addr
== sa
559 && (ia
->ia_flags
& IFA_ROUTE
)) {
561 * in_ifscrub kills the interface route.
563 in_ifscrub(ia
->ia_ifp
, ia
, 1);
565 * in_ifadown gets rid of all the rest of
566 * the routes. This is not quite the right
567 * thing to do, but at least if we are running
568 * a routing process they will come back.
570 in_ifadown(&ia
->ia_ifa
, 1);
574 lck_mtx_unlock(rt_mtx
);
578 lck_mtx_lock(rt_mtx
);
579 for (ia
= in_ifaddrhead
.tqh_first
; ia
;
580 ia
= ia
->ia_link
.tqe_next
) {
581 if (ia
->ia_ifa
.ifa_addr
== sa
)
584 if (ia
== 0 || (ia
->ia_flags
& IFA_ROUTE
)) {
585 lck_mtx_unlock(rt_mtx
);
589 ifp
= ia
->ia_ifa
.ifa_ifp
;
591 if ((ifp
->if_flags
& IFF_LOOPBACK
)
592 || (ifp
->if_flags
& IFF_POINTOPOINT
))
595 err
= rtinit_locked(&ia
->ia_ifa
, RTM_ADD
, flags
);
596 lck_mtx_unlock(rt_mtx
);
598 ia
->ia_flags
|= IFA_ROUTE
;
603 u_long rip_sendspace
= RIPSNDQ
;
604 u_long rip_recvspace
= RIPRCVQ
;
606 SYSCTL_INT(_net_inet_raw
, OID_AUTO
, maxdgram
, CTLFLAG_RW
,
607 &rip_sendspace
, 0, "Maximum outgoing raw IP datagram size");
608 SYSCTL_INT(_net_inet_raw
, OID_AUTO
, recvspace
, CTLFLAG_RW
,
609 &rip_recvspace
, 0, "Maximum incoming raw IP datagram size");
612 rip_attach(struct socket
*so
, int proto
, struct proc
*p
)
621 if ((so
->so_state
& SS_PRIV
) == 0)
624 if (p
&& (error
= suser(p
)) != 0)
628 error
= soreserve(so
, rip_sendspace
, rip_recvspace
);
632 error
= in_pcballoc(so
, &ripcbinfo
, p
);
636 inp
= (struct inpcb
*)so
->so_pcb
;
637 inp
->inp_vflag
|= INP_IPV4
;
638 inp
->inp_ip_p
= proto
;
639 inp
->inp_ip_ttl
= ip_defttl
;
643 __private_extern__
int
644 rip_detach(struct socket
*so
)
651 if (so
== ip_mrouter
)
653 ip_rsvp_force_done(so
);
660 __private_extern__
int
661 rip_abort(struct socket
*so
)
663 soisdisconnected(so
);
664 return rip_detach(so
);
667 __private_extern__
int
668 rip_disconnect(struct socket
*so
)
670 if ((so
->so_state
& SS_ISCONNECTED
) == 0)
672 return rip_abort(so
);
675 __private_extern__
int
676 rip_bind(struct socket
*so
, struct sockaddr
*nam
, struct proc
*p
)
678 struct inpcb
*inp
= sotoinpcb(so
);
679 struct sockaddr_in
*addr
= (struct sockaddr_in
*)nam
;
680 struct ifaddr
*ifa
= NULL
;
682 if (nam
->sa_len
!= sizeof(*addr
))
685 if (TAILQ_EMPTY(&ifnet_head
) || ((addr
->sin_family
!= AF_INET
) &&
686 (addr
->sin_family
!= AF_IMPLINK
)) ||
687 (addr
->sin_addr
.s_addr
&&
688 (ifa
= ifa_ifwithaddr((struct sockaddr
*)addr
)) == 0)) {
689 return EADDRNOTAVAIL
;
695 inp
->inp_laddr
= addr
->sin_addr
;
699 __private_extern__
int
700 rip_connect(struct socket
*so
, struct sockaddr
*nam
, struct proc
*p
)
702 struct inpcb
*inp
= sotoinpcb(so
);
703 struct sockaddr_in
*addr
= (struct sockaddr_in
*)nam
;
705 if (nam
->sa_len
!= sizeof(*addr
))
707 if (TAILQ_EMPTY(&ifnet_head
))
708 return EADDRNOTAVAIL
;
709 if ((addr
->sin_family
!= AF_INET
) &&
710 (addr
->sin_family
!= AF_IMPLINK
))
712 inp
->inp_faddr
= addr
->sin_addr
;
717 __private_extern__
int
718 rip_shutdown(struct socket
*so
)
724 __private_extern__
int
725 rip_send(struct socket
*so
, int flags
, struct mbuf
*m
, struct sockaddr
*nam
,
726 struct mbuf
*control
, struct proc
*p
)
728 struct inpcb
*inp
= sotoinpcb(so
);
731 if (so
->so_state
& SS_ISCONNECTED
) {
736 dst
= inp
->inp_faddr
.s_addr
;
742 dst
= ((struct sockaddr_in
*)nam
)->sin_addr
.s_addr
;
744 return rip_output(m
, so
, dst
);
748 rip_unlock(struct socket
*so
, int refcount
, int debug
)
751 struct inpcb
*inp
= sotoinpcb(so
);
754 __asm__
volatile("mflr %0" : "=r" (lr_saved
));
756 else lr_saved
= debug
;
759 if (so
->so_usecount
<= 0)
760 panic("rip_unlock: bad refoucnt so=%x val=%x\n", so
, so
->so_usecount
);
762 if (so
->so_usecount
== 0 && (inp
->inp_wantcnt
== WNT_STOPUSING
)) {
763 lck_mtx_unlock(so
->so_proto
->pr_domain
->dom_mtx
);
764 lck_rw_lock_exclusive(ripcbinfo
.mtx
);
766 lck_rw_done(ripcbinfo
.mtx
);
770 lck_mtx_unlock(so
->so_proto
->pr_domain
->dom_mtx
);
775 rip_pcblist SYSCTL_HANDLER_ARGS
778 struct inpcb
*inp
, **inp_list
;
783 * The process of preparing the TCB list is too time-consuming and
784 * resource-intensive to repeat twice on every request.
786 lck_rw_lock_exclusive(ripcbinfo
.mtx
);
787 if (req
->oldptr
== USER_ADDR_NULL
) {
788 n
= ripcbinfo
.ipi_count
;
789 req
->oldidx
= 2 * (sizeof xig
)
790 + (n
+ n
/8) * sizeof(struct xinpcb
);
791 lck_rw_done(ripcbinfo
.mtx
);
795 if (req
->newptr
!= USER_ADDR_NULL
) {
796 lck_rw_done(ripcbinfo
.mtx
);
801 * OK, now we're committed to doing something.
803 gencnt
= ripcbinfo
.ipi_gencnt
;
804 n
= ripcbinfo
.ipi_count
;
806 bzero(&xig
, sizeof(xig
));
807 xig
.xig_len
= sizeof xig
;
809 xig
.xig_gen
= gencnt
;
810 xig
.xig_sogen
= so_gencnt
;
811 error
= SYSCTL_OUT(req
, &xig
, sizeof xig
);
813 lck_rw_done(ripcbinfo
.mtx
);
817 * We are done if there is no pcb
820 lck_rw_done(ripcbinfo
.mtx
);
824 inp_list
= _MALLOC(n
* sizeof *inp_list
, M_TEMP
, M_WAITOK
);
826 lck_rw_done(ripcbinfo
.mtx
);
830 for (inp
= ripcbinfo
.listhead
->lh_first
, i
= 0; inp
&& i
< n
;
831 inp
= inp
->inp_list
.le_next
) {
832 if (inp
->inp_gencnt
<= gencnt
&& inp
->inp_state
!= INPCB_STATE_DEAD
)
838 for (i
= 0; i
< n
; i
++) {
840 if (inp
->inp_gencnt
<= gencnt
&& inp
->inp_state
!= INPCB_STATE_DEAD
) {
843 bzero(&xi
, sizeof(xi
));
844 xi
.xi_len
= sizeof xi
;
845 /* XXX should avoid extra copy */
846 inpcb_to_compat(inp
, &xi
.xi_inp
);
848 sotoxsocket(inp
->inp_socket
, &xi
.xi_socket
);
849 error
= SYSCTL_OUT(req
, &xi
, sizeof xi
);
854 * Give the user an updated idea of our state.
855 * If the generation differs from what we told
856 * her before, she knows that something happened
857 * while we were processing this request, and it
858 * might be necessary to retry.
860 bzero(&xig
, sizeof(xig
));
861 xig
.xig_len
= sizeof xig
;
862 xig
.xig_gen
= ripcbinfo
.ipi_gencnt
;
863 xig
.xig_sogen
= so_gencnt
;
864 xig
.xig_count
= ripcbinfo
.ipi_count
;
865 error
= SYSCTL_OUT(req
, &xig
, sizeof xig
);
867 FREE(inp_list
, M_TEMP
);
868 lck_rw_done(ripcbinfo
.mtx
);
872 SYSCTL_PROC(_net_inet_raw
, OID_AUTO
/*XXX*/, pcblist
, CTLFLAG_RD
, 0, 0,
873 rip_pcblist
, "S,xinpcb", "List of active raw IP sockets");
875 struct pr_usrreqs rip_usrreqs
= {
876 rip_abort
, pru_accept_notsupp
, rip_attach
, rip_bind
, rip_connect
,
877 pru_connect2_notsupp
, in_control
, rip_detach
, rip_disconnect
,
878 pru_listen_notsupp
, in_setpeeraddr
, pru_rcvd_notsupp
,
879 pru_rcvoob_notsupp
, rip_send
, pru_sense_null
, rip_shutdown
,
880 in_setsockaddr
, sosend
, soreceive
, pru_sopoll_notsupp