summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_pcb.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-03-01 03:14:23 +0000
committerrwatson <rwatson@FreeBSD.org>2004-03-01 03:14:23 +0000
commitb0b5f961bd295aee20ca2584b96ebf00e9cb92f3 (patch)
tree6b16845a701c80c2675bb9aed085227f806e915d /sys/netipx/ipx_pcb.c
parent9fe9a307306d35d1219be5eb3a88475032b080d0 (diff)
downloadFreeBSD-src-b0b5f961bd295aee20ca2584b96ebf00e9cb92f3.zip
FreeBSD-src-b0b5f961bd295aee20ca2584b96ebf00e9cb92f3.tar.gz
Rename dup_sockaddr() to sodupsockaddr() for consistency with other
functions in kern_socket.c. Rename the "canwait" field to "mflags" and pass M_WAITOK and M_NOWAIT in from the caller context rather than "1" or "0". Correct mflags pass into mac_init_socket() from previous commit to not include M_ZERO. Submitted by: sam
Diffstat (limited to 'sys/netipx/ipx_pcb.c')
-rw-r--r--sys/netipx/ipx_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c
index 0cd7880..f4f42f6 100644
--- a/sys/netipx/ipx_pcb.c
+++ b/sys/netipx/ipx_pcb.c
@@ -288,7 +288,7 @@ ipx_setsockaddr(ipxp, nam)
sipx->sipx_len = sizeof(*sipx);
sipx->sipx_family = AF_IPX;
sipx->sipx_addr = ipxp->ipxp_laddr;
- *nam = dup_sockaddr((struct sockaddr *)sipx, 0);
+ *nam = sodupsockaddr((struct sockaddr *)sipx, M_NOWAIT);
}
void
@@ -303,7 +303,7 @@ ipx_setpeeraddr(ipxp, nam)
sipx->sipx_len = sizeof(*sipx);
sipx->sipx_family = AF_IPX;
sipx->sipx_addr = ipxp->ipxp_faddr;
- *nam = dup_sockaddr((struct sockaddr *)sipx, 0);
+ *nam = sodupsockaddr((struct sockaddr *)sipx, M_NOWAIT);
}
/*
OpenPOWER on IntegriCloud