diff options
author | norby <norby@openbsd.org> | 2007-10-16 12:05:52 +0000 |
---|---|---|
committer | norby <norby@openbsd.org> | 2007-10-16 12:05:52 +0000 |
commit | 19f3adae5acddcb68eb1d4c38305c217c5cc0dcb (patch) | |
tree | 9ab83beb954ddaa41ed659ed83a8623c657e3297 /usr.sbin/ospf6d/lsack.c | |
parent | Fix the neighbor election process. (diff) | |
download | wireguard-openbsd-19f3adae5acddcb68eb1d4c38305c217c5cc0dcb.tar.xz wireguard-openbsd-19f3adae5acddcb68eb1d4c38305c217c5cc0dcb.zip |
In OSPFv3 the LSA type is a 16 bit value, furthermore it uses different
values than the v2 counterpart.
Change to u_int16_t and define new LSA types.
ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/lsack.c')
-rw-r--r-- | usr.sbin/ospf6d/lsack.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ospf6d/lsack.c b/usr.sbin/ospf6d/lsack.c index 781dfcfeac6..d6f1dfafe92 100644 --- a/usr.sbin/ospf6d/lsack.c +++ b/usr.sbin/ospf6d/lsack.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsack.c,v 1.2 2007/10/10 14:09:25 claudio Exp $ */ +/* $OpenBSD: lsack.c,v 1.3 2007/10/16 12:05:52 norby Exp $ */ /* * Copyright (c) 2004, 2005, 2007 Esben Norby <norby@openbsd.org> @@ -122,10 +122,12 @@ lsa_hdr_check(struct nbr *nbr, struct lsa_hdr *lsa_hdr) /* invalid type */ switch (lsa_hdr->type) { + case LSA_TYPE_LINK: case LSA_TYPE_ROUTER: case LSA_TYPE_NETWORK: - case LSA_TYPE_SUM_NETWORK: - case LSA_TYPE_SUM_ROUTER: + case LSA_TYPE_INTER_A_PREFIX: + case LSA_TYPE_INTER_A_ROUTER: + case LSA_TYPE_INTRA_A_PREFIX: case LSA_TYPE_EXTERNAL: break; default: @@ -168,7 +170,6 @@ ls_ack_list_add(struct iface *iface, struct lsa_hdr *lsa) ((iface->mtu - PACKET_HDR) / sizeof(struct lsa_hdr))) { start_ls_ack_tx_timer_now(iface); } - } void |