diff options
author | Phil Blundell <philb@gnu.org> | 1999-01-17 21:20:25 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 1999-01-17 21:20:25 +0000 |
commit | 51594803127085376cfa62197e14032cdbf22fb0 (patch) | |
tree | f04291bff0b05b0baf7344e5f61d8d92b908cf5f /ifconfig.c | |
parent | Provide local definition of IPPROTO_GRE to allow iptunnel (diff) | |
download | net-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |