aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>1999-01-17 21:20:25 +0000
committerPhil Blundell <philb@gnu.org>1999-01-17 21:20:25 +0000
commit51594803127085376cfa62197e14032cdbf22fb0 (patch)
treef04291bff0b05b0baf7344e5f61d8d92b908cf5f /ifconfig.c
parentProvide local definition of IPPROTO_GRE to allow iptunnel (diff)
downloadnet-tools-51594803127085376cfa62197e14032cdbf22fb0.tar.gz
net-tools-51594803127085376cfa62197e14032cdbf22fb0.tar.bz2
net-tools-51594803127085376cfa62197e14032cdbf22fb0.zip
When setting point-to-point address, use the AF-specific
socket not the generic one.
Diffstat (limited to 'ifconfig.c')
-rw-r--r--ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ifconfig.c b/ifconfig.c
index a15dff5..fcb3419 100644
--- a/ifconfig.c
+++ b/ifconfig.c
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
- * Version: $Id: ifconfig.c,v 1.26 1999/01/05 20:52:58 philip Exp $
+ * Version: $Id: ifconfig.c,v 1.27 1999/01/17 21:20:25 philip Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
@@ -860,7 +860,7 @@ int main(int argc, char **argv)
}
memcpy((char *) &ifr.ifr_dstaddr, (char *) &sa,
sizeof(struct sockaddr));
- if (ioctl(skfd, SIOCSIFDSTADDR, &ifr) < 0) {
+ if (ioctl(ap->fd, SIOCSIFDSTADDR, &ifr) < 0) {
fprintf(stderr, "SIOCSIFDSTADDR: %s\n",
strerror(errno));
goterr = 1;