Remove unused and incorrectly maintained variable "in_interfaces"

This commit is contained in:
Poul-Henning Kamp 2002-12-17 19:30:04 +00:00
parent 62998d5574
commit 11aee0b4b0

View File

@ -175,8 +175,6 @@ in_len2mask(mask, len)
p[i] = (0xff00 >> (len % 8)) & 0xff; p[i] = (0xff00 >> (len % 8)) & 0xff;
} }
static int in_interfaces; /* number of external internet interfaces */
/* /*
* Generic internet control operations (ioctl's). * Generic internet control operations (ioctl's).
* Ifp is 0 if not an interface-specific ioctl. * Ifp is 0 if not an interface-specific ioctl.
@ -293,8 +291,6 @@ in_control(so, cmd, data, ifp, td)
ia->ia_broadaddr.sin_family = AF_INET; ia->ia_broadaddr.sin_family = AF_INET;
} }
ia->ia_ifp = ifp; ia->ia_ifp = ifp;
if (!(ifp->if_flags & IFF_LOOPBACK))
in_interfaces++;
splx(s); splx(s);
iaIsNew = 1; iaIsNew = 1;
} }