Lines Matching defs:lsalen
945 ospf6_lsa_examin (struct ospf6_lsa_header *lsah, const u_int16_t lsalen, const u_char headeronly)
962 lsalen < ospf6_lsa_minlen[ltindex] + OSPF6_LSA_HEADER_SIZE
966 zlog_debug ("%s: undersized (%u B) LSA", __func__, lsalen);
974 if ((lsalen - OSPF6_LSA_HEADER_SIZE - OSPF6_ROUTER_LSA_MIN_SIZE) % OSPF6_ROUTER_LSDESC_FIX_SIZE)
984 if ((lsalen - OSPF6_LSA_HEADER_SIZE - OSPF6_NETWORK_LSA_MIN_SIZE) % OSPF6_NETWORK_LSDESC_FIX_SIZE)
999 lsalen - OSPF6_LSA_HEADER_SIZE - OSPF6_INTER_PREFIX_LSA_MIN_SIZE,
1004 if (lsalen > OSPF6_LSA_HEADER_SIZE + OSPF6_INTER_ROUTER_LSA_FIX_SIZE)
1007 zlog_debug ("%s: oversized (%u B) LSA", __func__, lsalen);
1024 if (exp_length + OSPF6_PREFIX_MIN_SIZE > lsalen)
1027 zlog_debug ("%s: undersized (%u B) LSA header", __func__, lsalen);
1041 if (exp_length > lsalen)
1044 zlog_debug ("%s: undersized (%u B) LSA header", __func__, lsalen);
1051 lsalen - exp_length,
1063 lsalen - OSPF6_LSA_HEADER_SIZE - OSPF6_LINK_LSA_MIN_SIZE,
1075 lsalen - OSPF6_LSA_HEADER_SIZE - OSPF6_INTRA_PREFIX_LSA_MIN_SIZE,
1102 u_int16_t lsalen;
1111 lsalen = OSPF6_LSA_SIZE (lsah);
1112 if (lsalen < OSPF6_LSA_HEADER_SIZE)
1116 __func__, counted_lsas, lsalen);
1122 if (MSG_OK != ospf6_lsa_examin (lsah, lsalen, 1))
1135 if (lsalen > length)
1139 __func__, ospf6_lstype_name (lsah->type), counted_lsas, lsalen, length);
1142 if (MSG_OK != ospf6_lsa_examin (lsah, lsalen, 0))
1149 lsah = (struct ospf6_lsa_header *) ((caddr_t) lsah + lsalen);
1150 length -= lsalen;