Lines Matching refs:ndo

273 pptp_bearer_cap_print(netdissect_options *ndo,  in pptp_bearer_cap_print()  argument
276 ND_PRINT((ndo, " BEARER_CAP(%s%s)", in pptp_bearer_cap_print()
289 pptp_bearer_type_print(netdissect_options *ndo, in pptp_bearer_type_print() argument
292 ND_PRINT((ndo, " BEARER_TYPE(%s)", in pptp_bearer_type_print()
297 pptp_call_id_print(netdissect_options *ndo, in pptp_call_id_print() argument
300 ND_PRINT((ndo, " CALL_ID(%u)", EXTRACT_16BITS(call_id))); in pptp_call_id_print()
304 pptp_call_ser_print(netdissect_options *ndo, in pptp_call_ser_print() argument
307 ND_PRINT((ndo, " CALL_SER_NUM(%u)", EXTRACT_16BITS(call_ser))); in pptp_call_ser_print()
311 pptp_cause_code_print(netdissect_options *ndo, in pptp_cause_code_print() argument
314 ND_PRINT((ndo, " CAUSE_CODE(%u)", EXTRACT_16BITS(cause_code))); in pptp_cause_code_print()
318 pptp_conn_speed_print(netdissect_options *ndo, in pptp_conn_speed_print() argument
321 ND_PRINT((ndo, " CONN_SPEED(%u)", EXTRACT_32BITS(conn_speed))); in pptp_conn_speed_print()
336 pptp_err_code_print(netdissect_options *ndo, in pptp_err_code_print() argument
339 ND_PRINT((ndo, " ERR_CODE(%u", *err_code)); in pptp_err_code_print()
340 if (ndo->ndo_vflag) { in pptp_err_code_print()
341 ND_PRINT((ndo, ":%s", tok2str(pptp_errcode_str, "?", *err_code))); in pptp_err_code_print()
343 ND_PRINT((ndo, ")")); in pptp_err_code_print()
347 pptp_firm_rev_print(netdissect_options *ndo, in pptp_firm_rev_print() argument
350 ND_PRINT((ndo, " FIRM_REV(%u)", EXTRACT_16BITS(firm_rev))); in pptp_firm_rev_print()
354 pptp_framing_cap_print(netdissect_options *ndo, in pptp_framing_cap_print() argument
357 ND_PRINT((ndo, " FRAME_CAP(")); in pptp_framing_cap_print()
359 ND_PRINT((ndo, "A")); /* Async */ in pptp_framing_cap_print()
362 ND_PRINT((ndo, "S")); /* Sync */ in pptp_framing_cap_print()
364 ND_PRINT((ndo, ")")); in pptp_framing_cap_print()
375 pptp_framing_type_print(netdissect_options *ndo, in pptp_framing_type_print() argument
378 ND_PRINT((ndo, " FRAME_TYPE(%s)", in pptp_framing_type_print()
383 pptp_hostname_print(netdissect_options *ndo, in pptp_hostname_print() argument
386 ND_PRINT((ndo, " HOSTNAME(%.64s)", hostname)); in pptp_hostname_print()
390 pptp_id_print(netdissect_options *ndo, in pptp_id_print() argument
393 ND_PRINT((ndo, " ID(%u)", EXTRACT_32BITS(id))); in pptp_id_print()
397 pptp_max_channel_print(netdissect_options *ndo, in pptp_max_channel_print() argument
400 ND_PRINT((ndo, " MAX_CHAN(%u)", EXTRACT_16BITS(max_channel))); in pptp_max_channel_print()
404 pptp_peer_call_id_print(netdissect_options *ndo, in pptp_peer_call_id_print() argument
407 ND_PRINT((ndo, " PEER_CALL_ID(%u)", EXTRACT_16BITS(peer_call_id))); in pptp_peer_call_id_print()
411 pptp_phy_chan_id_print(netdissect_options *ndo, in pptp_phy_chan_id_print() argument
414 ND_PRINT((ndo, " PHY_CHAN_ID(%u)", EXTRACT_32BITS(phy_chan_id))); in pptp_phy_chan_id_print()
418 pptp_pkt_proc_delay_print(netdissect_options *ndo, in pptp_pkt_proc_delay_print() argument
421 ND_PRINT((ndo, " PROC_DELAY(%u)", EXTRACT_16BITS(pkt_proc_delay))); in pptp_pkt_proc_delay_print()
425 pptp_proto_ver_print(netdissect_options *ndo, in pptp_proto_ver_print() argument
428 ND_PRINT((ndo, " PROTO_VER(%u.%u)", /* Version.Revision */ in pptp_proto_ver_print()
434 pptp_recv_winsiz_print(netdissect_options *ndo, in pptp_recv_winsiz_print() argument
437 ND_PRINT((ndo, " RECV_WIN(%u)", EXTRACT_16BITS(recv_winsiz))); in pptp_recv_winsiz_print()
482 pptp_result_code_print(netdissect_options *ndo, in pptp_result_code_print() argument
485 ND_PRINT((ndo, " RESULT_CODE(%u", *result_code)); in pptp_result_code_print()
486 if (ndo->ndo_vflag) { in pptp_result_code_print()
496 ND_PRINT((ndo, ":%s", tok2str(dict, "?", *result_code))); in pptp_result_code_print()
498 ND_PRINT((ndo, ")")); in pptp_result_code_print()
502 pptp_subaddr_print(netdissect_options *ndo, in pptp_subaddr_print() argument
505 ND_PRINT((ndo, " SUB_ADDR(%.64s)", subaddr)); in pptp_subaddr_print()
509 pptp_vendor_print(netdissect_options *ndo, in pptp_vendor_print() argument
512 ND_PRINT((ndo, " VENDOR(%.64s)", vendor)); in pptp_vendor_print()
519 pptp_sccrq_print(netdissect_options *ndo, in pptp_sccrq_print() argument
525 pptp_proto_ver_print(ndo, &ptr->proto_ver); in pptp_sccrq_print()
528 pptp_framing_cap_print(ndo, &ptr->framing_cap); in pptp_sccrq_print()
530 pptp_bearer_cap_print(ndo, &ptr->bearer_cap); in pptp_sccrq_print()
532 pptp_max_channel_print(ndo, &ptr->max_channel); in pptp_sccrq_print()
534 pptp_firm_rev_print(ndo, &ptr->firm_rev); in pptp_sccrq_print()
536 pptp_hostname_print(ndo, &ptr->hostname[0]); in pptp_sccrq_print()
538 pptp_vendor_print(ndo, &ptr->vendor[0]); in pptp_sccrq_print()
543 ND_PRINT((ndo, "%s", tstr)); in pptp_sccrq_print()
547 pptp_sccrp_print(netdissect_options *ndo, in pptp_sccrp_print() argument
553 pptp_proto_ver_print(ndo, &ptr->proto_ver); in pptp_sccrp_print()
555 pptp_result_code_print(ndo, &ptr->result_code, PPTP_CTRL_MSG_TYPE_SCCRP); in pptp_sccrp_print()
557 pptp_err_code_print(ndo, &ptr->err_code); in pptp_sccrp_print()
559 pptp_framing_cap_print(ndo, &ptr->framing_cap); in pptp_sccrp_print()
561 pptp_bearer_cap_print(ndo, &ptr->bearer_cap); in pptp_sccrp_print()
563 pptp_max_channel_print(ndo, &ptr->max_channel); in pptp_sccrp_print()
565 pptp_firm_rev_print(ndo, &ptr->firm_rev); in pptp_sccrp_print()
567 pptp_hostname_print(ndo, &ptr->hostname[0]); in pptp_sccrp_print()
569 pptp_vendor_print(ndo, &ptr->vendor[0]); in pptp_sccrp_print()
574 ND_PRINT((ndo, "%s", tstr)); in pptp_sccrp_print()
578 pptp_stopccrq_print(netdissect_options *ndo, in pptp_stopccrq_print() argument
584 ND_PRINT((ndo, " REASON(%u", ptr->reason)); in pptp_stopccrq_print()
585 if (ndo->ndo_vflag) { in pptp_stopccrq_print()
588 ND_PRINT((ndo, ":None")); in pptp_stopccrq_print()
591 ND_PRINT((ndo, ":Stop-Protocol")); in pptp_stopccrq_print()
594 ND_PRINT((ndo, ":Stop-Local-Shutdown")); in pptp_stopccrq_print()
597 ND_PRINT((ndo, ":?")); in pptp_stopccrq_print()
601 ND_PRINT((ndo, ")")); in pptp_stopccrq_print()
608 ND_PRINT((ndo, "%s", tstr)); in pptp_stopccrq_print()
612 pptp_stopccrp_print(netdissect_options *ndo, in pptp_stopccrp_print() argument
618 pptp_result_code_print(ndo, &ptr->result_code, PPTP_CTRL_MSG_TYPE_StopCCRP); in pptp_stopccrp_print()
620 pptp_err_code_print(ndo, &ptr->err_code); in pptp_stopccrp_print()
626 ND_PRINT((ndo, "%s", tstr)); in pptp_stopccrp_print()
630 pptp_echorq_print(netdissect_options *ndo, in pptp_echorq_print() argument
636 pptp_id_print(ndo, &ptr->id); in pptp_echorq_print()
641 ND_PRINT((ndo, "%s", tstr)); in pptp_echorq_print()
645 pptp_echorp_print(netdissect_options *ndo, in pptp_echorp_print() argument
651 pptp_id_print(ndo, &ptr->id); in pptp_echorp_print()
653 pptp_result_code_print(ndo, &ptr->result_code, PPTP_CTRL_MSG_TYPE_ECHORP); in pptp_echorp_print()
655 pptp_err_code_print(ndo, &ptr->err_code); in pptp_echorp_print()
661 ND_PRINT((ndo, "%s", tstr)); in pptp_echorp_print()
665 pptp_ocrq_print(netdissect_options *ndo, in pptp_ocrq_print() argument
671 pptp_call_id_print(ndo, &ptr->call_id); in pptp_ocrq_print()
673 pptp_call_ser_print(ndo, &ptr->call_ser); in pptp_ocrq_print()
675 ND_PRINT((ndo, " MIN_BPS(%u)", EXTRACT_32BITS(&ptr->min_bps))); in pptp_ocrq_print()
677 ND_PRINT((ndo, " MAX_BPS(%u)", EXTRACT_32BITS(&ptr->max_bps))); in pptp_ocrq_print()
679 pptp_bearer_type_print(ndo, &ptr->bearer_type); in pptp_ocrq_print()
681 pptp_framing_type_print(ndo, &ptr->framing_type); in pptp_ocrq_print()
683 pptp_recv_winsiz_print(ndo, &ptr->recv_winsiz); in pptp_ocrq_print()
685 pptp_pkt_proc_delay_print(ndo, &ptr->pkt_proc_delay); in pptp_ocrq_print()
687 ND_PRINT((ndo, " PHONE_NO_LEN(%u)", EXTRACT_16BITS(&ptr->phone_no_len))); in pptp_ocrq_print()
690 ND_PRINT((ndo, " PHONE_NO(%.64s)", ptr->phone_no)); in pptp_ocrq_print()
692 pptp_subaddr_print(ndo, &ptr->subaddr[0]); in pptp_ocrq_print()
697 ND_PRINT((ndo, "%s", tstr)); in pptp_ocrq_print()
701 pptp_ocrp_print(netdissect_options *ndo, in pptp_ocrp_print() argument
707 pptp_call_id_print(ndo, &ptr->call_id); in pptp_ocrp_print()
709 pptp_peer_call_id_print(ndo, &ptr->peer_call_id); in pptp_ocrp_print()
711 pptp_result_code_print(ndo, &ptr->result_code, PPTP_CTRL_MSG_TYPE_OCRP); in pptp_ocrp_print()
713 pptp_err_code_print(ndo, &ptr->err_code); in pptp_ocrp_print()
715 pptp_cause_code_print(ndo, &ptr->cause_code); in pptp_ocrp_print()
717 pptp_conn_speed_print(ndo, &ptr->conn_speed); in pptp_ocrp_print()
719 pptp_recv_winsiz_print(ndo, &ptr->recv_winsiz); in pptp_ocrp_print()
721 pptp_pkt_proc_delay_print(ndo, &ptr->pkt_proc_delay); in pptp_ocrp_print()
723 pptp_phy_chan_id_print(ndo, &ptr->phy_chan_id); in pptp_ocrp_print()
728 ND_PRINT((ndo, "%s", tstr)); in pptp_ocrp_print()
732 pptp_icrq_print(netdissect_options *ndo, in pptp_icrq_print() argument
738 pptp_call_id_print(ndo, &ptr->call_id); in pptp_icrq_print()
740 pptp_call_ser_print(ndo, &ptr->call_ser); in pptp_icrq_print()
742 pptp_bearer_type_print(ndo, &ptr->bearer_type); in pptp_icrq_print()
744 pptp_phy_chan_id_print(ndo, &ptr->phy_chan_id); in pptp_icrq_print()
746 ND_PRINT((ndo, " DIALED_NO_LEN(%u)", EXTRACT_16BITS(&ptr->dialed_no_len))); in pptp_icrq_print()
748 ND_PRINT((ndo, " DIALING_NO_LEN(%u)", EXTRACT_16BITS(&ptr->dialing_no_len))); in pptp_icrq_print()
750 ND_PRINT((ndo, " DIALED_NO(%.64s)", ptr->dialed_no)); in pptp_icrq_print()
752 ND_PRINT((ndo, " DIALING_NO(%.64s)", ptr->dialing_no)); in pptp_icrq_print()
754 pptp_subaddr_print(ndo, &ptr->subaddr[0]); in pptp_icrq_print()
759 ND_PRINT((ndo, "%s", tstr)); in pptp_icrq_print()
763 pptp_icrp_print(netdissect_options *ndo, in pptp_icrp_print() argument
769 pptp_call_id_print(ndo, &ptr->call_id); in pptp_icrp_print()
771 pptp_peer_call_id_print(ndo, &ptr->peer_call_id); in pptp_icrp_print()
773 pptp_result_code_print(ndo, &ptr->result_code, PPTP_CTRL_MSG_TYPE_ICRP); in pptp_icrp_print()
775 pptp_err_code_print(ndo, &ptr->err_code); in pptp_icrp_print()
777 pptp_recv_winsiz_print(ndo, &ptr->recv_winsiz); in pptp_icrp_print()
779 pptp_pkt_proc_delay_print(ndo, &ptr->pkt_proc_delay); in pptp_icrp_print()
785 ND_PRINT((ndo, "%s", tstr)); in pptp_icrp_print()
789 pptp_iccn_print(netdissect_options *ndo, in pptp_iccn_print() argument
795 pptp_peer_call_id_print(ndo, &ptr->peer_call_id); in pptp_iccn_print()
798 pptp_conn_speed_print(ndo, &ptr->conn_speed); in pptp_iccn_print()
800 pptp_recv_winsiz_print(ndo, &ptr->recv_winsiz); in pptp_iccn_print()
802 pptp_pkt_proc_delay_print(ndo, &ptr->pkt_proc_delay); in pptp_iccn_print()
804 pptp_framing_type_print(ndo, &ptr->framing_type); in pptp_iccn_print()
809 ND_PRINT((ndo, "%s", tstr)); in pptp_iccn_print()
813 pptp_ccrq_print(netdissect_options *ndo, in pptp_ccrq_print() argument
819 pptp_call_id_print(ndo, &ptr->call_id); in pptp_ccrq_print()
825 ND_PRINT((ndo, "%s", tstr)); in pptp_ccrq_print()
829 pptp_cdn_print(netdissect_options *ndo, in pptp_cdn_print() argument
835 pptp_call_id_print(ndo, &ptr->call_id); in pptp_cdn_print()
837 pptp_result_code_print(ndo, &ptr->result_code, PPTP_CTRL_MSG_TYPE_CDN); in pptp_cdn_print()
839 pptp_err_code_print(ndo, &ptr->err_code); in pptp_cdn_print()
841 pptp_cause_code_print(ndo, &ptr->cause_code); in pptp_cdn_print()
844 ND_PRINT((ndo, " CALL_STATS(%.128s)", ptr->call_stats)); in pptp_cdn_print()
849 ND_PRINT((ndo, "%s", tstr)); in pptp_cdn_print()
853 pptp_wen_print(netdissect_options *ndo, in pptp_wen_print() argument
859 pptp_peer_call_id_print(ndo, &ptr->peer_call_id); in pptp_wen_print()
862 ND_PRINT((ndo, " CRC_ERR(%u)", EXTRACT_32BITS(&ptr->crc_err))); in pptp_wen_print()
864 ND_PRINT((ndo, " FRAMING_ERR(%u)", EXTRACT_32BITS(&ptr->framing_err))); in pptp_wen_print()
866 ND_PRINT((ndo, " HARDWARE_OVERRUN(%u)", EXTRACT_32BITS(&ptr->hardware_overrun))); in pptp_wen_print()
868 ND_PRINT((ndo, " BUFFER_OVERRUN(%u)", EXTRACT_32BITS(&ptr->buffer_overrun))); in pptp_wen_print()
870 ND_PRINT((ndo, " TIMEOUT_ERR(%u)", EXTRACT_32BITS(&ptr->timeout_err))); in pptp_wen_print()
872 ND_PRINT((ndo, " ALIGN_ERR(%u)", EXTRACT_32BITS(&ptr->align_err))); in pptp_wen_print()
877 ND_PRINT((ndo, "%s", tstr)); in pptp_wen_print()
881 pptp_sli_print(netdissect_options *ndo, in pptp_sli_print() argument
887 pptp_peer_call_id_print(ndo, &ptr->peer_call_id); in pptp_sli_print()
890 ND_PRINT((ndo, " SEND_ACCM(0x%08x)", EXTRACT_32BITS(&ptr->send_accm))); in pptp_sli_print()
892 ND_PRINT((ndo, " RECV_ACCM(0x%08x)", EXTRACT_32BITS(&ptr->recv_accm))); in pptp_sli_print()
897 ND_PRINT((ndo, "%s", tstr)); in pptp_sli_print()
901 pptp_print(netdissect_options *ndo, in pptp_print() argument
908 ND_PRINT((ndo, ": pptp")); in pptp_print()
913 if (ndo->ndo_vflag) { in pptp_print()
914 ND_PRINT((ndo, " Length=%u", EXTRACT_16BITS(&hdr->length))); in pptp_print()
917 if (ndo->ndo_vflag) { in pptp_print()
920 ND_PRINT((ndo, " CTRL-MSG")); in pptp_print()
923 ND_PRINT((ndo, " MGMT-MSG")); in pptp_print()
926 ND_PRINT((ndo, " UNKNOWN-MSG-TYPE")); in pptp_print()
934 ND_PRINT((ndo, " UNEXPECTED Magic-Cookie!!(%08x)", mc)); in pptp_print()
936 if (ndo->ndo_vflag || mc != PPTP_MAGIC_COOKIE) { in pptp_print()
937 ND_PRINT((ndo, " Magic-Cookie=%08x", mc)); in pptp_print()
942 ND_PRINT((ndo, " CTRL_MSGTYPE=%s", in pptp_print()
945 ND_PRINT((ndo, " UNKNOWN_CTRL_MSGTYPE(%u)", ctrl_msg_type)); in pptp_print()
953 pptp_sccrq_print(ndo, dat); in pptp_print()
956 pptp_sccrp_print(ndo, dat); in pptp_print()
959 pptp_stopccrq_print(ndo, dat); in pptp_print()
962 pptp_stopccrp_print(ndo, dat); in pptp_print()
965 pptp_echorq_print(ndo, dat); in pptp_print()
968 pptp_echorp_print(ndo, dat); in pptp_print()
971 pptp_ocrq_print(ndo, dat); in pptp_print()
974 pptp_ocrp_print(ndo, dat); in pptp_print()
977 pptp_icrq_print(ndo, dat); in pptp_print()
980 pptp_icrp_print(ndo, dat); in pptp_print()
983 pptp_iccn_print(ndo, dat); in pptp_print()
986 pptp_ccrq_print(ndo, dat); in pptp_print()
989 pptp_cdn_print(ndo, dat); in pptp_print()
992 pptp_wen_print(ndo, dat); in pptp_print()
995 pptp_sli_print(ndo, dat); in pptp_print()
1005 ND_PRINT((ndo, "%s", tstr)); in pptp_print()