diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-06-01 07:36:14 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-06-01 07:36:14 +0000 |
commit | ef08d193eef90afe1e39cd9cdf6de6ca84a01fed (patch) | |
tree | 8bcbc95ec73498520633df2c7c34a10afc49db67 /usr.sbin/rarpd/rarpd.c | |
parent | b45064eacf8001b55998d3e801fe252760b1e4a6 (diff) |
Just over 15 years and 35 revisions ago, itojun removed the last use of
SIOCGIFNETMASK in #ifdef'ed out code. Adjust two comments accordingly.
Diffstat (limited to 'usr.sbin/rarpd/rarpd.c')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index 451de3ea5f2..c3eeed4bff7 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rarpd.c,v 1.73 2018/04/26 12:42:51 guenther Exp $ */ +/* $OpenBSD: rarpd.c,v 1.74 2018/06/01 07:36:13 tb Exp $ */ /* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */ /* @@ -531,9 +531,7 @@ lookup_addrs(char *ifname, struct if_info *p) ia->ia_netmask = ((struct sockaddr_in *) ifa->ifa_netmask)-> sin_addr.s_addr; - /* If SIOCGIFNETMASK didn't work, - figure out a mask from the IP - address class. */ + /* Figure out a mask from the IP address class. */ if (ia->ia_netmask == 0) ia->ia_netmask = ipaddrtonetmask(ia->ia_ipaddr); @@ -629,8 +627,7 @@ rarp_reply(struct if_info *ii, struct if_addr *ia, struct ether_header *ep, warning("write: only %d of %d bytes written", n, len); } /* - * Get the netmask of an IP address. This routine is used if - * SIOCGIFNETMASK doesn't work. + * Get the netmask of an IP address. */ u_int32_t ipaddrtonetmask(u_int32_t addr) |