From 47d37a80be0931ad72e67db6ba915221afdfeb4f Mon Sep 17 00:00:00 2001 From: rwatson Date: Fri, 11 May 2007 10:20:51 +0000 Subject: Reduce network stack oddness: implement .pru_sockaddr and .pru_peeraddr protocol entry points using functions named proto_getsockaddr and proto_getpeeraddr rather than proto_setsockaddr and proto_setpeeraddr. While it's true that sockaddrs are allocated and set, the net effect is to retrieve (get) the socket address or peer address from a socket, not set it, so align names to that intent. --- sys/netipx/ipx_pcb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netipx/ipx_pcb.h') diff --git a/sys/netipx/ipx_pcb.h b/sys/netipx/ipx_pcb.h index 755eb5a..5b5921e 100644 --- a/sys/netipx/ipx_pcb.h +++ b/sys/netipx/ipx_pcb.h @@ -131,8 +131,8 @@ void ipx_pcbdisconnect(struct ipxpcb *ipxp); void ipx_pcbfree(struct ipxpcb *ipxp); struct ipxpcb * ipx_pcblookup(struct ipx_addr *faddr, int lport, int wildp); -void ipx_setpeeraddr(struct ipxpcb *ipxp, struct sockaddr **nam); -void ipx_setsockaddr(struct ipxpcb *ipxp, struct sockaddr **nam); +void ipx_getpeeraddr(struct ipxpcb *ipxp, struct sockaddr **nam); +void ipx_getsockaddr(struct ipxpcb *ipxp, struct sockaddr **nam); #define IPX_LIST_LOCK_INIT() mtx_init(&ipxpcb_list_mtx, "ipx_list_mtx", \ NULL, MTX_DEF | MTX_RECURSE) -- cgit v1.1