Lines Matching refs:ospf

540 interpret_ospf(int flags, struct ospfhdr *ospf, int iplen, int fraglen)
549 (fraglen < ntohs(ospf->ospf_len)))
552 if (fraglen > ntohs(ospf->ospf_len))
553 fraglen = ntohs(ospf->ospf_len);
556 if (ospf->ospf_type > OSPF_TYPE_MAX) {
559 ospf->ospf_type);
566 "Unknown OSPF Type = %d", ospf->ospf_type);
574 ospf_types[ospf->ospf_type],
575 inet_ntoa(ospf->ospf_routerid));
578 inet_ntoa(ospf->ospf_areaid),
579 ntohs((ushort_t)ospf->ospf_len));
587 "Version = %d", ospf->ospf_version);
589 "Type = %s", ospf_types[ospf->ospf_type]);
591 "Router ID = %s", inet_ntoa(ospf->ospf_routerid));
593 "Area ID = %s", inet_ntoa(ospf->ospf_areaid));
595 "Checksum = 0x%x", ospf->ospf_chksum);
597 if (ospf->ospf_authtype > OSPF_AUTH_TYPE_MAX) {
600 ospf->ospf_authtype);
603 "Auth = %s", ospf_authtypes[ospf->ospf_authtype]);
607 if (ospf->ospf_version != 2) {
608 if (ospf->ospf_version == 3) {
612 return (interpret_ospf6(flags, ospf, iplen, fraglen));
618 switch (ospf->ospf_type) {
620 if (interpret_ospf_hello(flags, ospf, fraglen) < 0)
631 ospf_option_bits, ospf->ospf_db.db_options),
633 ospf->ospf_db.db_flags),
634 ntohl(ospf->ospf_db.db_seq));
643 ospf_option_bits, ospf->ospf_db.db_options));
646 ospf_db_flags_bits, ospf->ospf_db.db_flags));
648 "Sequence = 0x%X", ntohl(ospf->ospf_db.db_seq));
650 lsah = ospf->ospf_db.db_lshdr;
651 while ((uchar_t *)lsah < ((uchar_t *)ospf + fraglen)) {
653 ((uchar_t *)ospf + fraglen)) {
672 lsr = ospf->ospf_lsr;
673 while ((uchar_t *)lsr < ((uchar_t *)ospf + fraglen)) {
675 ((uchar_t *)ospf + fraglen)) {
704 lsa = ospf->ospf_lsu.lsu_lsa;
705 nlsa = ntohl(ospf->ospf_lsu.lsu_count);
712 uchar_t *fragend = (uchar_t *)ospf + fraglen;
738 lsah = ospf->ospf_lsa.lsa_lshdr;
740 while ((uchar_t *)lsah < ((uchar_t *)ospf + fraglen)) {
742 ((uchar_t *)ospf + fraglen)) {