Revision 8e433d6a proto/ospf/lsalib.c

View differences:

proto/ospf/lsalib.c
554 554
/**
555 555
 * lsa_validate - check whether given LSA is valid
556 556
 * @lsa: LSA header
557
 * @lsa_type: one of %LSA_T_xxx
558
 * @ospf2: %true means OSPF version 2, %false means OSPF version 3
557 559
 * @body: pointer to LSA body
558 560
 *
559 561
 * Checks internal structure of given LSA body (minimal length,
560 562
 * consistency). Returns true if valid.
561 563
 */
562

  
563 564
int
564 565
lsa_validate(struct ospf_lsa_header *lsa, u32 lsa_type, int ospf2, void *body)
565 566
{

Also available in: Unified diff