diff options
author | jamie <jamie@FreeBSD.org> | 2009-03-15 22:33:18 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2009-03-15 22:33:18 +0000 |
commit | 172e53d32b65f2bac0f0d0d4080969bb14d3f8e8 (patch) | |
tree | fb3561f9c80f3461985c074fe9601a6739c3f462 /sbin/ifconfig/ifclone.c | |
parent | 4fc2f82f67bc08664b8ed7df98cea3f48013160d (diff) | |
download | FreeBSD-src-172e53d32b65f2bac0f0d0d4080969bb14d3f8e8.zip FreeBSD-src-172e53d32b65f2bac0f0d0d4080969bb14d3f8e8.tar.gz |
Default to AF_LOCAL instead of AF_INET sockets for non-family-specific
operations. This allows the query operations to work in non-IPv4 jails,
and will be necessary in a future of possible non-INET networking.
Approved by: bz (mentor)
Diffstat (limited to 'sbin/ifconfig/ifclone.c')
-rw-r--r-- | sbin/ifconfig/ifclone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifclone.c b/sbin/ifconfig/ifclone.c index 8fba9ff..aba974e 100644 --- a/sbin/ifconfig/ifclone.c +++ b/sbin/ifconfig/ifclone.c @@ -54,9 +54,9 @@ list_cloners(void) int idx; int s; - s = socket(AF_INET, SOCK_DGRAM, 0); + s = socket(AF_LOCAL, SOCK_DGRAM, 0); if (s == -1) - err(1, "socket(AF_INET,SOCK_DGRAM)"); + err(1, "socket(AF_LOCAL,SOCK_DGRAM)"); memset(&ifcr, 0, sizeof(ifcr)); |