diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-01-29 12:16:10 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-01-29 12:16:10 +0000 |
commit | 5cc704838f6832d4e48171adad26de273807dbd2 (patch) | |
tree | 5710b4e1b9d3fc5b135406849e5a61b9b389ffc7 | |
parent | fdbf4ed750ef77d43af4809793472e5a529be6fc (diff) |
Hard-code the Link State ID of Intra-Area-Prefix LSAs referencing Network
LSAs to zero. We were using the interface index, which is not quite right
for this type of LSA.
This is part of a greater scheme:
Intra-Area-Prefix LSAs referencing Router LSAs (not yet implemented)
will initially have their Link State ID hard-coded to one.
Then, as soon as we implement fragmentation of Intra-Area-Prefix LSAs,
Link State IDs for both types of Intra-Area-Prefix LSA will have to be
generated dynamically in a non-overlapping fashion.
discussed with claudio@
-rw-r--r-- | usr.sbin/ospf6d/rde.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c index aaa937625c0..4189bcebfca 100644 --- a/usr.sbin/ospf6d/rde.c +++ b/usr.sbin/ospf6d/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.17 2009/01/29 11:57:42 stsp Exp $ */ +/* $OpenBSD: rde.c,v 1.18 2009/01/29 12:16:09 stsp Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -1224,7 +1224,7 @@ orig_intra_lsa_net(struct area *area, struct iface *iface) /* LSA header */ lsa->hdr.age = htons(DEFAULT_AGE); lsa->hdr.type = htons(LSA_TYPE_INTRA_A_PREFIX); - lsa->hdr.ls_id = htonl(iface->ifindex); + lsa->hdr.ls_id = 0; /* TODO: fragmentation */ lsa->hdr.adv_rtr = rdeconf->rtr_id.s_addr; lsa->hdr.seq_num = htonl(INIT_SEQ_NUM); lsa->hdr.len = htons(len); |