Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:op

495 ospf6_decode_v3(register const struct ospf6hdr *op,
505 switch (op->ospf6_type) {
516 TCHECK(op->ospf6_hello.hello_deadint);
518 EXTRACT_32BITS(&op->ospf6_hello.hello_options));
520 ipaddr_string(&op->ospf6_hello.hello_ifid),
521 op->ospf6_hello.hello_priority,
522 EXTRACT_16BITS(&op->ospf6_hello.hello_helloint),
523 EXTRACT_16BITS(&op->ospf6_hello.hello_deadint));
525 TCHECK(op->ospf6_hello.hello_dr);
526 if (op->ospf6_hello.hello_dr != 0)
528 ipaddr_string(&op->ospf6_hello.hello_dr));
529 TCHECK(op->ospf6_hello.hello_bdr);
530 if (op->ospf6_hello.hello_bdr != 0)
532 ipaddr_string(&op->ospf6_hello.hello_bdr));
535 ap = op->ospf6_hello.hello_neighbor;
545 TCHECK(op->ospf6_db.db_options);
547 EXTRACT_32BITS(&op->ospf6_db.db_options));
549 TCHECK(op->ospf6_db.db_flags);
550 if (op->ospf6_db.db_flags & OSPF6_DB_INIT) {
554 if (op->ospf6_db.db_flags & OSPF6_DB_MORE) {
558 if (op->ospf6_db.db_flags & OSPF6_DB_MASTER) {
562 TCHECK(op->ospf6_db.db_seq);
563 printf(" mtu %u S %X", EXTRACT_16BITS(&op->ospf6_db.db_mtu),
564 EXTRACT_32BITS(&op->ospf6_db.db_seq));
568 lshp = op->ospf6_db.db_lshdr;
580 lsrp = op->ospf6_lsr;
597 lsap = op->ospf6_lsu.lsu_lsa;
598 TCHECK(op->ospf6_lsu.lsu_count);
599 i = EXTRACT_32BITS(&op->ospf6_lsu.lsu_count);
612 lshp = op->ospf6_lsa.lsa_lshdr;
623 printf("v3 type %d", op->ospf6_type);
634 register const struct ospf6hdr *op;
638 op = (struct ospf6hdr *)bp;
642 TCHECK(op->ospf6_type);
643 cp = tok2str(type2str, "type%d", op->ospf6_type);
644 printf("OSPFv%d-%s %d:", op->ospf6_version, cp, length);
648 TCHECK(op->ospf6_len);
649 if (length != EXTRACT_16BITS(&op->ospf6_len)) {
650 printf(" [len %d]", EXTRACT_16BITS(&op->ospf6_len));
656 TCHECK(op->ospf6_routerid);
657 printf(" rtrid %s", ipaddr_string(&op->ospf6_routerid));
659 TCHECK(op->ospf6_areaid);
660 if (op->ospf6_areaid != 0)
661 printf(" area %s", ipaddr_string(&op->ospf6_areaid));
664 TCHECK(op->ospf6_instanceid);
665 if (op->ospf6_instanceid)
666 printf(" instance %u", op->ospf6_instanceid);
669 switch (op->ospf6_version) {
673 if (ospf6_decode_v3(op, dataend))
678 printf(" ospf [version %d]", op->ospf6_version);