Lines Matching defs:lsalen
2458 ospf_lsa_examin (struct lsa_header * lsah, const u_int16_t lsalen, const u_char headeronly)
2466 lsalen < OSPF_LSA_HEADER_SIZE + ospf_lsa_minlen[lsah->type]
2471 __func__, lsalen, LOOKUP (ospf_lsa_type_msg, lsah->type));
2480 ret = (lsalen - OSPF_LSA_HEADER_SIZE - OSPF_ROUTER_LSA_MIN_SIZE) % 4 ? MSG_NG : MSG_OK;
2487 lsalen - OSPF_LSA_HEADER_SIZE - 4, /* skip: basic header, "flags", 0, "# links" */
2495 ret = (lsalen - OSPF_LSA_HEADER_SIZE - OSPF_AS_EXTERNAL_LSA_MIN_SIZE) % 12 ? MSG_NG : MSG_OK;
2514 ret = lsalen % 4 ? MSG_NG : MSG_OK;
2545 u_int16_t lsalen;
2554 lsalen = ntohs (lsah->length);
2555 if (lsalen < OSPF_LSA_HEADER_SIZE)
2559 __func__, counted_lsas, lsalen);
2565 if (MSG_OK != ospf_lsa_examin (lsah, lsalen, 1))
2577 if (lsalen > length)
2581 __func__, counted_lsas, lsalen, length);
2584 if (MSG_OK != ospf_lsa_examin (lsah, lsalen, 0))
2590 lsah = (struct lsa_header *) ((caddr_t) lsah + lsalen);
2591 length -= lsalen;