Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!brl-adm!brl-smoke!smoke!ron@BRL.ARPA From: ron@BRL.ARPA Newsgroups: net.unix-wizards Subject: brl-vgr Bug Report Message-ID: <4577@brl-smoke.ARPA> Date: Mon, 13-Oct-86 19:15:30 EDT Article-I.D.: brl-smok.4577 Posted: Mon Oct 13 19:15:30 1986 Date-Received: Tue, 14-Oct-86 06:55:58 EDT Sender: news@brl-smoke.ARPA Lines: 32 Subject: Unable to set vv address on subnet Index: sys/vaxif/if_vv.c 4.3BSD Description: Ifconfig returns an error when you try to set the address on the proteon when using subneting. Repeat-By: ifconfig vv0 128.63.4.3 netmask 255.255.255.0 Fix: The vv driver checks to see if the local net part of address corresponds to the hardware address of the interface installed in your system. The subnet mask can not be set before the address because the mask has to be tied to a particular internet address. The fix is to make the vv driver mask off all but the lowest eight bits of the address before making the validity check. This is OK since the device can only deal with eight local address bits. In vvioctl: /* * Attempt to check agreement of protocol address * and board address. */ switch (ifa->ifa_addr.sa_family) { case AF_INET: if ((in_lnaof(IA_SIN(ifa)->sin_addr) & 0xFF) != vv_softc[ifp->if_unit].vs_host) error = EADDRNOTAVAIL; break; } break;