Commits
hasso authored 6861b307d6f
187 187 | the "lsa" is a copied one, and we have to decrement the |
188 188 | retransmission count of the original one (instead of "lsa"'s). |
189 189 | In order to find the original LSA, first we have to find |
190 190 | appropriate LSDB that have the original LSA. */ |
191 191 | lsdb = ospf6_get_scoped_lsdb (lsa); |
192 192 | |
193 193 | /* Find the original LSA of which the retrans_count should be decremented */ |
194 194 | orig = ospf6_lsdb_lookup (lsa->header->type, lsa->header->id, |
195 195 | lsa->header->adv_router, lsdb); |
196 196 | if (orig) |
197 - | orig->retrans_count--; |
198 - | |
199 - | assert (orig->retrans_count >= 0); |
197 + | { |
198 + | orig->retrans_count--; |
199 + | assert (orig->retrans_count >= 0); |
200 + | } |
200 201 | } |
201 202 | |
202 203 | /* RFC2328 section 13.2 Installing LSAs in the database */ |
203 204 | void |
204 205 | ospf6_install_lsa (struct ospf6_lsa *lsa) |
205 206 | { |
206 207 | struct ospf6_lsa *old; |
207 208 | struct timeval now; |
208 209 | |
209 210 | if (IS_OSPF6_DEBUG_LSA (RECV) || IS_OSPF6_DEBUG_LSA (DATABASE)) |