diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-11 21:25:38 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-11 21:25:38 +0000 |
commit | 7a460f83f4eea2ac39b9bd813836ca90ddd83292 (patch) | |
tree | 7e7a8b23f1f3a0672abd70fc4e39dfb36912f195 /usr.sbin/ospf6d/interface.c | |
parent | 0fe6f9a2de87ce9cac2261539c5e0262fa4f6a26 (diff) |
No need to store the interface mask. An interface represents a link and is
only addressed via its link local address. All networks on top of it are
handled separately via type 8 Link-LSA.
Diffstat (limited to 'usr.sbin/ospf6d/interface.c')
-rw-r--r-- | usr.sbin/ospf6d/interface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/interface.c b/usr.sbin/ospf6d/interface.c index 6dc8b0d2e3e..62b664e9d17 100644 --- a/usr.sbin/ospf6d/interface.c +++ b/usr.sbin/ospf6d/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.4 2007/10/11 20:20:44 claudio Exp $ */ +/* $OpenBSD: interface.c,v 1.5 2007/10/11 21:25:37 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -200,7 +200,6 @@ if_new(struct kif *kif, struct kif_addr *ka) /* set address, mask and p2p addr */ iface->addr = ka->addr; - iface->mask = ka->mask; if (kif->flags & IFF_POINTOPOINT) { iface->dst = ka->dstbrd; } @@ -593,7 +592,6 @@ if_to_ctl(struct iface *iface) memcpy(ictl.name, iface->name, sizeof(ictl.name)); memcpy(&ictl.addr, &iface->addr, sizeof(ictl.addr)); - memcpy(&ictl.mask, &iface->mask, sizeof(ictl.mask)); ictl.rtr_id.s_addr = ospfe_router_id(); memcpy(&ictl.area, &iface->area->id, sizeof(ictl.area)); if (iface->dr) { |