diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-12-30 17:21:07 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-12-30 17:21:07 +0000 |
commit | 547414a25a19e2404c14c52038ec7fe4fa7b4b05 (patch) | |
tree | 992627e23aca1883e93838e90872190b90435810 /sys/netipx/ipx_pcb.c | |
parent | a0561a7c8f5afef4fe44d26d56b9e826555ece3a (diff) | |
download | FreeBSD-src-547414a25a19e2404c14c52038ec7fe4fa7b4b05.zip FreeBSD-src-547414a25a19e2404c14c52038ec7fe4fa7b4b05.tar.gz |
Garbage collect unused (and incompletely implemented) functions:
- ipx_pcbnotify(), which is never called.
- ipx_rtchange(), which is never called, is incomplete inplemented, and
also #ifdef notdef.
- spx_fixmtu(), which is never called, is incompletely implemented, and
also #ifdef notdef.
Diffstat (limited to 'sys/netipx/ipx_pcb.c')
-rw-r--r-- | sys/netipx/ipx_pcb.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c index b1e2cab..ebd4df1 100644 --- a/sys/netipx/ipx_pcb.c +++ b/sys/netipx/ipx_pcb.c @@ -308,61 +308,6 @@ ipx_setpeeraddr(ipxp, nam) *nam = sodupsockaddr((struct sockaddr *)sipx, M_NOWAIT); } -/* - * Pass some notification to all connections of a protocol - * associated with address dst. Call the - * protocol specific routine to handle each connection. - * Also pass an extra paramter via the ipxpcb. (which may in fact - * be a parameter list!) - */ -void -ipx_pcbnotify(dst, errno, notify, param) - register struct ipx_addr *dst; - int errno; - void (*notify)(struct ipxpcb *); - long param; -{ - register struct ipxpcb *ipxp, *oinp; - int s = splimp(); - - for (ipxp = (&ipxpcb)->ipxp_next; ipxp != (&ipxpcb);) { - if (!ipx_hosteq(*dst,ipxp->ipxp_faddr)) { - next: - ipxp = ipxp->ipxp_next; - continue; - } - if (ipxp->ipxp_socket == 0) - goto next; - if (errno) - ipxp->ipxp_socket->so_error = errno; - oinp = ipxp; - ipxp = ipxp->ipxp_next; - oinp->ipxp_notify_param = param; - (*notify)(oinp); - } - splx(s); -} - -#ifdef notdef -/* - * After a routing change, flush old routing - * and allocate a (hopefully) better one. - */ -ipx_rtchange(ipxp) - struct ipxpcb *ipxp; -{ - if (ipxp->ipxp_route.ro_rt != NULL) { - rtfree(ipxp->ipxp_route.ro_rt); - ipxp->ipxp_route.ro_rt = NULL; - /* - * A new route can be allocated the next time - * output is attempted. - */ - } - /* SHOULD NOTIFY HIGHER-LEVEL PROTOCOLS */ -} -#endif - struct ipxpcb * ipx_pcblookup(faddr, lport, wildp) struct ipx_addr *faddr; |