tcpdump  4.99.1
About: tcpdump is a tool for network monitoring and data acquisition.
  Fossies Dox: tcpdump-4.99.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

netdissect.h File Reference
#include <sys/types.h>
#include <setjmp.h>
#include "status-exit-codes.h"
#include <stdarg.h>
#include <pcap.h>
#include "ip.h"
#include "ip6.h"
Include dependency graph for netdissect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tok
 
struct  netdissect_saved_packet_info
 
struct  netdissect_options
 
struct  uint_tokary
 
struct  lladdr_info
 
struct  cksum_vec
 

Macros

#define FMAXINT   (4294967296.0) /* floating point rep. of MAXINT */
 
#define MAC_ADDR_LEN   6U /* length of MAC addresses */
 
#define roundup2(x, y)   (((x)+((u_int)((y)-1)))&(~((u_int)((y)-1))))
 
#define IF_PRINTER_ARGS   (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
#define ND_TRUNCATED   1
 
#define PT_VAT   1 /* Visual Audio Tool */
 
#define PT_WB   2 /* distributed White Board */
 
#define PT_RPC   3 /* Remote Procedure Call */
 
#define PT_RTP   4 /* Real-Time Applications protocol */
 
#define PT_RTCP   5 /* Real-Time Applications control protocol */
 
#define PT_SNMP   6 /* Simple Network Management Protocol */
 
#define PT_CNFP   7 /* Cisco NetFlow protocol */
 
#define PT_TFTP   8 /* trivial file transfer protocol */
 
#define PT_AODV   9 /* Ad-hoc On-demand Distance Vector Protocol */
 
#define PT_CARP   10 /* Common Address Redundancy Protocol */
 
#define PT_RADIUS   11 /* RADIUS authentication Protocol */
 
#define PT_ZMTP1   12 /* ZeroMQ Message Transport Protocol 1.0 */
 
#define PT_VXLAN   13 /* Virtual eXtensible Local Area Network */
 
#define PT_PGM   14 /* [UDP-encapsulated] Pragmatic General Multicast */
 
#define PT_PGM_ZMTP1   15 /* ZMTP/1.0 inside PGM (native or UDP-encapsulated) */
 
#define PT_LMP   16 /* Link Management Protocol */
 
#define PT_RESP   17 /* RESP */
 
#define PT_PTP   18 /* PTP */
 
#define PT_SOMEIP   19 /* Autosar SOME/IP Protocol */
 
#define PT_DOMAIN   20 /* Domain Name System (DNS) */
 
#define ND_MIN(a, b)   ((a)>(b)?(b):(a))
 
#define ND_MAX(a, b)   ((b)>(a)?(b):(a))
 
#define IS_SRC_OR_DST_PORT(p)   (sport == (p) || dport == (p))
 
#define MAXIMUM_SNAPLEN   262144
 
#define IS_NOT_NEGATIVE(x)   (((x) > 0) || ((x) == 0))
 
#define ND_TTEST_LEN(p, l)
 
#define ND_TTEST_SIZE(p)   ND_TTEST_LEN(p, sizeof(*(p)))
 
#define ND_TCHECK_LEN(p, l)   if (!ND_TTEST_LEN(p, l)) goto trunc
 
#define ND_TCHECK_SIZE(p)   ND_TCHECK_LEN(p, sizeof(*(p)))
 
#define ND_BYTES_BETWEEN(p1, p2)   ((u_int)(((const uint8_t *)(p1)) - (const uint8_t *)(p2)))
 
#define ND_BYTES_AVAILABLE_AFTER(p)   ND_BYTES_BETWEEN(ndo->ndo_snapend, (p))
 
#define ND_PRINT(...)   (ndo->ndo_printf)(ndo, __VA_ARGS__)
 
#define ND_DEFAULTPRINT(ap, length)   (*ndo->ndo_default_print)(ndo, ap, length)
 
#define RESP_CODE_SECOND_TOKEN   0x00000001 /* response code is second token in response line */
 
#define UNALIGNED_MEMCPY(p, q, l)   unaligned_memcpy((p), (q), (l))
 
#define UNALIGNED_MEMCMP(p, q, l)   unaligned_memcmp((p), (q), (l))
 
#define PLURAL_SUFFIX(n)    (((n) != 1) ? "s" : "")
 
#define tok2strary(a, f, i)   tok2strary_internal(a, sizeof(a)/sizeof(a[0]),f,i)
 
#define uint2tokary(a, i)   uint2tokary_internal(a, sizeof(a)/sizeof(a[0]), i)
 
#define ND_DEBUG   {printf(" [%s:%d %s] ", __FILE__, __LINE__, __func__); fflush(stdout);}
 

Typedefs

typedef unsigned char nd_uint8_t[1]
 
typedef unsigned char nd_uint16_t[2]
 
typedef unsigned char nd_uint24_t[3]
 
typedef unsigned char nd_uint32_t[4]
 
typedef unsigned char nd_uint40_t[5]
 
typedef unsigned char nd_uint48_t[6]
 
typedef unsigned char nd_uint56_t[7]
 
typedef unsigned char nd_uint64_t[8]
 
typedef signed char nd_int8_t[1]
 
typedef unsigned char nd_int32_t[4]
 
typedef unsigned char nd_int64_t[8]
 
typedef unsigned char nd_ipv4[4]
 
typedef unsigned char nd_ipv6[16]
 
typedef unsigned char nd_mac_addr[6U]
 
typedef unsigned char nd_byte
 
typedef struct netdissect_options netdissect_options
 
typedef void(* if_printer) (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 

Functions

size_t strlcat (char *, const char *, size_t)
 
size_t strlcpy (char *, const char *, size_t)
 
char * strdup (const char *str)
 
char * strsep (char **, const char *)
 
const char * tok2strbuf (const struct tok *, const char *, u_int, char *buf, size_t bufsize)
 
const char * tok2str (const struct tok *, const char *, u_int)
 
char * bittok2str (const struct tok *, const char *, u_int)
 
char * bittok2str_nosep (const struct tok *, const char *, u_int)
 
int nd_init (char *, size_t)
 
void nd_cleanup (void)
 
int nd_have_smi_support (void)
 
int nd_load_smi_module (const char *, char *, size_t)
 
const char * nd_smi_version_string (void)
 
int nd_push_buffer (netdissect_options *, u_char *, const u_char *, const u_char *)
 
int nd_push_snapend (netdissect_options *, const u_char *)
 
void nd_change_snapend (netdissect_options *, const u_char *)
 
void nd_pop_packet_info (netdissect_options *)
 
void nd_pop_all_packet_info (netdissect_options *)
 
void ts_print (netdissect_options *, const struct timeval *)
 
void signed_relts_print (netdissect_options *, int32_t)
 
void unsigned_relts_print (netdissect_options *, uint32_t)
 
void fn_print_char (netdissect_options *, u_char)
 
void fn_print_str (netdissect_options *, const u_char *)
 
u_int nd_printztn (netdissect_options *, const u_char *, u_int, const u_char *)
 
int nd_printn (netdissect_options *, const u_char *, u_int, const u_char *)
 
void nd_printjnp (netdissect_options *, const u_char *, u_int)
 
void txtproto_print (netdissect_options *, const u_char *, u_int, const char **, u_int)
 
void unaligned_memcpy (void *, const void *, size_t)
 
int unaligned_memcmp (const void *, const void *, size_t)
 
const char * tok2strary_internal (const char **, int, const char *, int)
 
const struct tokuint2tokary_internal (const struct uint_tokary[], const size_t, const u_int)
 
if_printer lookup_printer (int)
 
void ap1394_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void arcnet_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void arcnet_linux_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void atm_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void bt_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void brcm_tag_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void brcm_tag_prepend_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void chdlc_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void cip_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void dsa_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void edsa_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void enc_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ether_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void fddi_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void fr_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ieee802_11_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ieee802_11_radio_avs_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ieee802_11_radio_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ieee802_15_4_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ieee802_15_4_tap_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ipfc_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ipoib_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ipnet_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_atm1_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_atm2_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_chdlc_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_es_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_ether_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_frelay_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_ggsn_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_mfr_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_mlfr_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_mlppp_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_monitor_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_ppp_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_pppoe_atm_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_pppoe_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void juniper_services_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ltalk_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void mfr_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void netanalyzer_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void netanalyzer_transparent_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void nflog_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void null_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void pflog_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void pktap_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ppi_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ppp_bsdos_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ppp_hdlc_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void ppp_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void pppoe_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void prism_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void raw_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void sl_bsdos_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void sl_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void sll_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void sll2_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void sunatm_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void symantec_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void token_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void unsupported_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void usb_linux_48_byte_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void usb_linux_64_byte_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void vsock_if_print (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
 
void aarp_print (netdissect_options *, const u_char *, u_int)
 
int ah_print (netdissect_options *, const u_char *)
 
void ahcp_print (netdissect_options *, const u_char *, u_int)
 
void aodv_print (netdissect_options *, const u_char *, u_int, int)
 
void aoe_print (netdissect_options *, const u_char *, const u_int)
 
int arista_ethertype_print (netdissect_options *, const u_char *, u_int)
 
void arp_print (netdissect_options *, const u_char *, u_int, u_int)
 
void ascii_print (netdissect_options *, const u_char *, u_int)
 
void atalk_print (netdissect_options *, const u_char *, u_int)
 
void atm_print (netdissect_options *, u_int, u_int, u_int, const u_char *, u_int, u_int)
 
void babel_print (netdissect_options *, const u_char *, u_int)
 
void bcm_li_print (netdissect_options *, const u_char *, u_int)
 
void beep_print (netdissect_options *, const u_char *, u_int)
 
void bfd_print (netdissect_options *, const u_char *, u_int, u_int)
 
void bgp_print (netdissect_options *, const u_char *, u_int)
 
const char * bgp_vpn_rd_print (netdissect_options *, const u_char *)
 
void bootp_print (netdissect_options *, const u_char *, u_int)
 
void calm_fast_print (netdissect_options *, const u_char *, u_int, const struct lladdr_info *)
 
void carp_print (netdissect_options *, const u_char *, u_int, u_int)
 
void cdp_print (netdissect_options *, const u_char *, u_int)
 
void cfm_print (netdissect_options *, const u_char *, u_int)
 
u_int chdlc_print (netdissect_options *, const u_char *, u_int)
 
void cisco_autorp_print (netdissect_options *, const u_char *, u_int)
 
void cnfp_print (netdissect_options *, const u_char *)
 
void dccp_print (netdissect_options *, const u_char *, const u_char *, u_int)
 
void decnet_print (netdissect_options *, const u_char *, u_int, u_int)
 
void dhcp6_print (netdissect_options *, const u_char *, u_int)
 
int dstopt_process (netdissect_options *, const u_char *)
 
void dtp_print (netdissect_options *, const u_char *, u_int)
 
void dvmrp_print (netdissect_options *, const u_char *, u_int)
 
void eap_print (netdissect_options *, const u_char *, u_int)
 
void eapol_print (netdissect_options *, const u_char *)
 
void egp_print (netdissect_options *, const u_char *, u_int)
 
void eigrp_print (netdissect_options *, const u_char *, u_int)
 
void esp_print (netdissect_options *, const u_char *, u_int, const u_char *, u_int, int, u_int)
 
u_int ether_print (netdissect_options *, const u_char *, u_int, u_int, void(*)(netdissect_options *, const u_char *), const u_char *)
 
u_int ether_switch_tag_print (netdissect_options *, const u_char *, u_int, u_int, void(*)(netdissect_options *, const u_char *), u_int)
 
int ethertype_print (netdissect_options *, u_short, const u_char *, u_int, u_int, const struct lladdr_info *, const struct lladdr_info *)
 
u_int fddi_print (netdissect_options *, const u_char *, u_int, u_int)
 
void forces_print (netdissect_options *, const u_char *, u_int)
 
u_int fr_print (netdissect_options *, const u_char *, u_int)
 
int frag6_print (netdissect_options *, const u_char *, const u_char *)
 
void ftp_print (netdissect_options *, const u_char *, u_int)
 
void geneve_print (netdissect_options *, const u_char *, u_int)
 
void geonet_print (netdissect_options *, const u_char *, u_int, const struct lladdr_info *)
 
void gre_print (netdissect_options *, const u_char *, u_int)
 
int hbhopt_process (netdissect_options *, const u_char *, int *, uint32_t *)
 
void hex_and_ascii_print (netdissect_options *, const char *, const u_char *, u_int)
 
void hex_print (netdissect_options *, const char *ident, const u_char *cp, u_int)
 
void hex_print_with_offset (netdissect_options *, const char *ident, const u_char *cp, u_int, u_int)
 
void hncp_print (netdissect_options *, const u_char *, u_int)
 
void hsrp_print (netdissect_options *, const u_char *, u_int)
 
void http_print (netdissect_options *, const u_char *, u_int)
 
void icmp6_print (netdissect_options *, const u_char *, u_int, const u_char *, int)
 
void icmp_print (netdissect_options *, const u_char *, u_int, const u_char *, int)
 
u_int ieee802_15_4_print (netdissect_options *, const u_char *, u_int)
 
u_int ieee802_11_radio_print (netdissect_options *, const u_char *, u_int, u_int)
 
void igmp_print (netdissect_options *, const u_char *, u_int)
 
void igrp_print (netdissect_options *, const u_char *, u_int)
 
void ip6_print (netdissect_options *, const u_char *, u_int)
 
void ipN_print (netdissect_options *, const u_char *, u_int)
 
void ip_print (netdissect_options *, const u_char *, u_int)
 
void ipcomp_print (netdissect_options *, const u_char *)
 
void ipx_netbios_print (netdissect_options *, const u_char *, u_int)
 
void ipx_print (netdissect_options *, const u_char *, u_int)
 
void isakmp_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
void isakmp_rfc3948_print (netdissect_options *, const u_char *, u_int, const u_char *, int, int, u_int)
 
void isoclns_print (netdissect_options *, const u_char *, u_int)
 
void krb_print (netdissect_options *, const u_char *)
 
void l2tp_print (netdissect_options *, const u_char *, u_int)
 
void lane_print (netdissect_options *, const u_char *, u_int, u_int)
 
void ldp_print (netdissect_options *, const u_char *, u_int)
 
void lisp_print (netdissect_options *, const u_char *, u_int)
 
u_int llap_print (netdissect_options *, const u_char *, u_int)
 
int llc_print (netdissect_options *, const u_char *, u_int, u_int, const struct lladdr_info *, const struct lladdr_info *)
 
void lldp_print (netdissect_options *, const u_char *, u_int)
 
void lmp_print (netdissect_options *, const u_char *, u_int)
 
void loopback_print (netdissect_options *, const u_char *, u_int)
 
void lspping_print (netdissect_options *, const u_char *, u_int)
 
void lwapp_control_print (netdissect_options *, const u_char *, u_int, int)
 
void lwapp_data_print (netdissect_options *, const u_char *, u_int)
 
void lwres_print (netdissect_options *, const u_char *, u_int)
 
void m3ua_print (netdissect_options *, const u_char *, const u_int)
 
int macsec_print (netdissect_options *, const u_char **, u_int *, u_int *, u_int *, const struct lladdr_info *, const struct lladdr_info *)
 
u_int mfr_print (netdissect_options *, const u_char *, u_int)
 
void mobile_print (netdissect_options *, const u_char *, u_int)
 
int mobility_print (netdissect_options *, const u_char *, const u_char *)
 
void mpcp_print (netdissect_options *, const u_char *, u_int)
 
void mpls_print (netdissect_options *, const u_char *, u_int)
 
int mptcp_print (netdissect_options *, const u_char *, u_int, u_char)
 
void msdp_print (netdissect_options *, const u_char *, u_int)
 
void msnlb_print (netdissect_options *, const u_char *)
 
void nbt_tcp_print (netdissect_options *, const u_char *, u_int)
 
void nbt_udp137_print (netdissect_options *, const u_char *, u_int)
 
void nbt_udp138_print (netdissect_options *, const u_char *, u_int)
 
void netbeui_print (netdissect_options *, u_short, const u_char *, u_int)
 
void nfsreply_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
void nfsreply_noaddr_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
void nfsreq_noaddr_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
const u_char * fqdn_print (netdissect_options *, const u_char *, const u_char *)
 
void domain_print (netdissect_options *, const u_char *, u_int, int, int)
 
void nsh_print (netdissect_options *, const u_char *, u_int)
 
void ntp_print (netdissect_options *, const u_char *, u_int)
 
void oam_print (netdissect_options *, const u_char *, u_int, u_int)
 
void olsr_print (netdissect_options *, const u_char *, u_int, int)
 
void openflow_print (netdissect_options *, const u_char *, u_int)
 
void ospf6_print (netdissect_options *, const u_char *, u_int)
 
void ospf_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
int ospf_grace_lsa_print (netdissect_options *, const u_char *, u_int)
 
int ospf_te_lsa_print (netdissect_options *, const u_char *, u_int)
 
void otv_print (netdissect_options *, const u_char *, u_int)
 
void pgm_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
void pim_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
void pimv1_print (netdissect_options *, const u_char *, u_int)
 
u_int ppp_print (netdissect_options *, const u_char *, u_int)
 
u_int pppoe_print (netdissect_options *, const u_char *, u_int)
 
void pptp_print (netdissect_options *, const u_char *)
 
void ptp_print (netdissect_options *, const u_char *, u_int)
 
int print_unknown_data (netdissect_options *, const u_char *, const char *, u_int)
 
const char * q922_string (netdissect_options *, const u_char *, u_int)
 
void q933_print (netdissect_options *, const u_char *, u_int)
 
void radius_print (netdissect_options *, const u_char *, u_int)
 
void resp_print (netdissect_options *, const u_char *, u_int)
 
void rip_print (netdissect_options *, const u_char *, u_int)
 
void ripng_print (netdissect_options *, const u_char *, unsigned int)
 
void rpki_rtr_print (netdissect_options *, const u_char *, u_int)
 
void rrcp_print (netdissect_options *, const u_char *, u_int, const struct lladdr_info *, const struct lladdr_info *)
 
void rsvp_print (netdissect_options *, const u_char *, u_int)
 
int rt6_print (netdissect_options *, const u_char *, const u_char *)
 
void rtsp_print (netdissect_options *, const u_char *, u_int)
 
void rx_print (netdissect_options *, const u_char *, u_int, uint16_t, uint16_t, const u_char *)
 
void sctp_print (netdissect_options *, const u_char *, const u_char *, u_int)
 
void sflow_print (netdissect_options *, const u_char *, u_int)
 
void ssh_print (netdissect_options *, const u_char *, u_int)
 
void sip_print (netdissect_options *, const u_char *, u_int)
 
void slow_print (netdissect_options *, const u_char *, u_int)
 
void smb_tcp_print (netdissect_options *, const u_char *, u_int)
 
void smtp_print (netdissect_options *, const u_char *, u_int)
 
int snap_print (netdissect_options *, const u_char *, u_int, u_int, const struct lladdr_info *, const struct lladdr_info *, u_int)
 
void snmp_print (netdissect_options *, const u_char *, u_int)
 
void stp_print (netdissect_options *, const u_char *, u_int)
 
void sunrpc_print (netdissect_options *, const u_char *, u_int, const u_char *)
 
void syslog_print (netdissect_options *, const u_char *, u_int)
 
void tcp_print (netdissect_options *, const u_char *, u_int, const u_char *, int)
 
void telnet_print (netdissect_options *, const u_char *, u_int)
 
void tftp_print (netdissect_options *, const u_char *, u_int)
 
void timed_print (netdissect_options *, const u_char *)
 
void tipc_print (netdissect_options *, const u_char *, u_int, u_int)
 
u_int token_print (netdissect_options *, const u_char *, u_int, u_int)
 
void udld_print (netdissect_options *, const u_char *, u_int)
 
void udp_print (netdissect_options *, const u_char *, u_int, const u_char *, int, u_int)
 
int vjc_print (netdissect_options *, const u_char *, u_short)
 
void vqp_print (netdissect_options *, const u_char *, u_int)
 
void vrrp_print (netdissect_options *, const u_char *, u_int, const u_char *, int)
 
void vtp_print (netdissect_options *, const u_char *, const u_int)
 
void vxlan_gpe_print (netdissect_options *, const u_char *, u_int)
 
void vxlan_print (netdissect_options *, const u_char *, u_int)
 
void wb_print (netdissect_options *, const u_char *, u_int)
 
void zep_print (netdissect_options *, const u_char *, u_int)
 
void zephyr_print (netdissect_options *, const u_char *, u_int)
 
void zmtp1_print (netdissect_options *, const u_char *, u_int)
 
void zmtp1_datagram_print (netdissect_options *, const u_char *, const u_int)
 
void someip_print (netdissect_options *, const u_char *, const u_int)
 
void init_checksum (void)
 
uint16_t verify_crc10_cksum (uint16_t, const u_char *, int)
 
uint16_t create_osi_cksum (const uint8_t *, int, int)
 
uint16_t in_cksum (const struct cksum_vec *, int)
 
uint16_t in_cksum_shouldbe (uint16_t, uint16_t)
 
void ip_demux_print (netdissect_options *, const u_char *, u_int, u_int, int, u_int, uint8_t, const u_char *)
 
uint16_t nextproto4_cksum (netdissect_options *, const struct ip *, const uint8_t *, u_int, u_int, uint8_t)
 
uint16_t nextproto6_cksum (netdissect_options *, const struct ip6_hdr *, const uint8_t *, u_int, u_int, uint8_t)
 
void nd_print_trunc (netdissect_options *)
 
void nd_print_protocol (netdissect_options *)
 
void nd_print_protocol_caps (netdissect_options *)
 
void nd_print_invalid (netdissect_options *)
 
int mask2plen (uint32_t)
 
int mask62plen (const u_char *)
 
const char * dnnum_string (netdissect_options *, u_short)
 
int decode_prefix4 (netdissect_options *, const u_char *, u_int, char *, size_t)
 
int decode_prefix6 (netdissect_options *, const u_char *, u_int, char *, size_t)
 
void esp_decodesecret_print (netdissect_options *)
 
int esp_decrypt_buffer_by_ikev2_print (netdissect_options *, int, const u_char spii[8], const u_char spir[8], const u_char *, const u_char *)
 

Variables

int nd_smi_module_loaded
 

Macro Definition Documentation

◆ FMAXINT

#define FMAXINT   (4294967296.0) /* floating point rep. of MAXINT */

Definition at line 64 of file netdissect.h.

◆ IF_PRINTER_ARGS

#define IF_PRINTER_ARGS   (netdissect_options *, const struct pcap_pkthdr *, const u_char *)

Definition at line 167 of file netdissect.h.

◆ IS_NOT_NEGATIVE

#define IS_NOT_NEGATIVE (   x)    (((x) > 0) || ((x) == 0))

Definition at line 354 of file netdissect.h.

◆ IS_SRC_OR_DST_PORT

#define IS_SRC_OR_DST_PORT (   p)    (sport == (p) || dport == (p))

Definition at line 298 of file netdissect.h.

◆ MAC_ADDR_LEN

#define MAC_ADDR_LEN   6U /* length of MAC addresses */

Definition at line 102 of file netdissect.h.

◆ MAXIMUM_SNAPLEN

#define MAXIMUM_SNAPLEN   262144

Definition at line 327 of file netdissect.h.

◆ ND_BYTES_AVAILABLE_AFTER

#define ND_BYTES_AVAILABLE_AFTER (   p)    ND_BYTES_BETWEEN(ndo->ndo_snapend, (p))

Definition at line 383 of file netdissect.h.

◆ ND_BYTES_BETWEEN

#define ND_BYTES_BETWEEN (   p1,
  p2 
)    ((u_int)(((const uint8_t *)(p1)) - (const uint8_t *)(p2)))

Definition at line 377 of file netdissect.h.

◆ ND_DEBUG

#define ND_DEBUG   {printf(" [%s:%d %s] ", __FILE__, __LINE__, __func__); fflush(stdout);}

Definition at line 464 of file netdissect.h.

◆ ND_DEFAULTPRINT

#define ND_DEFAULTPRINT (   ap,
  length 
)    (*ndo->ndo_default_print)(ndo, ap, length)

Definition at line 386 of file netdissect.h.

◆ ND_MAX

#define ND_MAX (   a,
 
)    ((b)>(a)?(b):(a))

Definition at line 295 of file netdissect.h.

◆ ND_MIN

#define ND_MIN (   a,
 
)    ((a)>(b)?(b):(a))

Definition at line 294 of file netdissect.h.

◆ ND_PRINT

#define ND_PRINT (   ...)    (ndo->ndo_printf)(ndo, __VA_ARGS__)

Definition at line 385 of file netdissect.h.

◆ ND_TCHECK_LEN

#define ND_TCHECK_LEN (   p,
 
)    if (!ND_TTEST_LEN(p, l)) goto trunc

Definition at line 368 of file netdissect.h.

◆ ND_TCHECK_SIZE

#define ND_TCHECK_SIZE (   p)    ND_TCHECK_LEN(p, sizeof(*(p)))

Definition at line 372 of file netdissect.h.

◆ ND_TRUNCATED

#define ND_TRUNCATED   1

Definition at line 198 of file netdissect.h.

◆ ND_TTEST_LEN

#define ND_TTEST_LEN (   p,
 
)
Value:
(IS_NOT_NEGATIVE(l) && \
((uintptr_t)ndo->ndo_snapend - (l) <= (uintptr_t)ndo->ndo_snapend && \
(uintptr_t)(p) <= (uintptr_t)ndo->ndo_snapend - (l)))
#define IS_NOT_NEGATIVE(x)
Definition: netdissect.h:354

Definition at line 356 of file netdissect.h.

◆ ND_TTEST_SIZE

#define ND_TTEST_SIZE (   p)    ND_TTEST_LEN(p, sizeof(*(p)))

Definition at line 362 of file netdissect.h.

◆ PLURAL_SUFFIX

#define PLURAL_SUFFIX (   n)     (((n) != 1) ? "s" : "")

Definition at line 447 of file netdissect.h.

◆ PT_AODV

#define PT_AODV   9 /* Ad-hoc On-demand Distance Vector Protocol */

Definition at line 281 of file netdissect.h.

◆ PT_CARP

#define PT_CARP   10 /* Common Address Redundancy Protocol */

Definition at line 282 of file netdissect.h.

◆ PT_CNFP

#define PT_CNFP   7 /* Cisco NetFlow protocol */

Definition at line 279 of file netdissect.h.

◆ PT_DOMAIN

#define PT_DOMAIN   20 /* Domain Name System (DNS) */

Definition at line 292 of file netdissect.h.

◆ PT_LMP

#define PT_LMP   16 /* Link Management Protocol */

Definition at line 288 of file netdissect.h.

◆ PT_PGM

#define PT_PGM   14 /* [UDP-encapsulated] Pragmatic General Multicast */

Definition at line 286 of file netdissect.h.

◆ PT_PGM_ZMTP1

#define PT_PGM_ZMTP1   15 /* ZMTP/1.0 inside PGM (native or UDP-encapsulated) */

Definition at line 287 of file netdissect.h.

◆ PT_PTP

#define PT_PTP   18 /* PTP */

Definition at line 290 of file netdissect.h.

◆ PT_RADIUS

#define PT_RADIUS   11 /* RADIUS authentication Protocol */

Definition at line 283 of file netdissect.h.

◆ PT_RESP

#define PT_RESP   17 /* RESP */

Definition at line 289 of file netdissect.h.

◆ PT_RPC

#define PT_RPC   3 /* Remote Procedure Call */

Definition at line 275 of file netdissect.h.

◆ PT_RTCP

#define PT_RTCP   5 /* Real-Time Applications control protocol */

Definition at line 277 of file netdissect.h.

◆ PT_RTP

#define PT_RTP   4 /* Real-Time Applications protocol */

Definition at line 276 of file netdissect.h.

◆ PT_SNMP

#define PT_SNMP   6 /* Simple Network Management Protocol */

Definition at line 278 of file netdissect.h.

◆ PT_SOMEIP

#define PT_SOMEIP   19 /* Autosar SOME/IP Protocol */

Definition at line 291 of file netdissect.h.

◆ PT_TFTP

#define PT_TFTP   8 /* trivial file transfer protocol */

Definition at line 280 of file netdissect.h.

◆ PT_VAT

#define PT_VAT   1 /* Visual Audio Tool */

Definition at line 273 of file netdissect.h.

◆ PT_VXLAN

#define PT_VXLAN   13 /* Virtual eXtensible Local Area Network */

Definition at line 285 of file netdissect.h.

◆ PT_WB

#define PT_WB   2 /* distributed White Board */

Definition at line 274 of file netdissect.h.

◆ PT_ZMTP1

#define PT_ZMTP1   12 /* ZeroMQ Message Transport Protocol 1.0 */

Definition at line 284 of file netdissect.h.

◆ RESP_CODE_SECOND_TOKEN

#define RESP_CODE_SECOND_TOKEN   0x00000001 /* response code is second token in response line */

Definition at line 401 of file netdissect.h.

◆ roundup2

#define roundup2 (   x,
 
)    (((x)+((u_int)((y)-1)))&(~((u_int)((y)-1))))

Definition at line 114 of file netdissect.h.

◆ tok2strary

#define tok2strary (   a,
  f,
 
)    tok2strary_internal(a, sizeof(a)/sizeof(a[0]),f,i)

Definition at line 451 of file netdissect.h.

◆ uint2tokary

#define uint2tokary (   a,
 
)    uint2tokary_internal(a, sizeof(a)/sizeof(a[0]), i)

Definition at line 460 of file netdissect.h.

◆ UNALIGNED_MEMCMP

#define UNALIGNED_MEMCMP (   p,
  q,
 
)    unaligned_memcmp((p), (q), (l))

Definition at line 444 of file netdissect.h.

◆ UNALIGNED_MEMCPY

#define UNALIGNED_MEMCPY (   p,
  q,
 
)    unaligned_memcpy((p), (q), (l))

Definition at line 443 of file netdissect.h.

Typedef Documentation

◆ if_printer

typedef void(* if_printer) (netdissect_options *, const struct pcap_pkthdr *, const u_char *)

Definition at line 169 of file netdissect.h.

◆ nd_byte

typedef unsigned char nd_byte

Definition at line 108 of file netdissect.h.

◆ nd_int32_t

typedef unsigned char nd_int32_t[4]

Definition at line 61 of file netdissect.h.

◆ nd_int64_t

typedef unsigned char nd_int64_t[8]

Definition at line 62 of file netdissect.h.

◆ nd_int8_t

typedef signed char nd_int8_t[1]

Definition at line 55 of file netdissect.h.

◆ nd_ipv4

typedef unsigned char nd_ipv4[4]

Definition at line 92 of file netdissect.h.

◆ nd_ipv6

typedef unsigned char nd_ipv6[16]

Definition at line 97 of file netdissect.h.

◆ nd_mac_addr

typedef unsigned char nd_mac_addr[6U]

Definition at line 103 of file netdissect.h.

◆ nd_uint16_t

typedef unsigned char nd_uint16_t[2]

Definition at line 47 of file netdissect.h.

◆ nd_uint24_t

typedef unsigned char nd_uint24_t[3]

Definition at line 48 of file netdissect.h.

◆ nd_uint32_t

typedef unsigned char nd_uint32_t[4]

Definition at line 49 of file netdissect.h.

◆ nd_uint40_t

typedef unsigned char nd_uint40_t[5]

Definition at line 50 of file netdissect.h.

◆ nd_uint48_t

typedef unsigned char nd_uint48_t[6]

Definition at line 51 of file netdissect.h.

◆ nd_uint56_t

typedef unsigned char nd_uint56_t[7]

Definition at line 52 of file netdissect.h.

◆ nd_uint64_t

typedef unsigned char nd_uint64_t[8]

Definition at line 53 of file netdissect.h.

◆ nd_uint8_t

typedef unsigned char nd_uint8_t[1]

Definition at line 46 of file netdissect.h.

◆ netdissect_options

Definition at line 163 of file netdissect.h.

Function Documentation

◆ aarp_print()

◆ ah_print()

◆ ahcp_print()

◆ aodv_print()

◆ aoe_print()

void aoe_print ( netdissect_options ndo,
const u_char *  cp,
const  u_int 
)

◆ ap1394_if_print()

◆ arcnet_if_print()

◆ arcnet_linux_if_print()

◆ arista_ethertype_print()

◆ arp_print()

◆ ascii_print()

void ascii_print ( netdissect_options ndo,
const u_char *  cp,
u_int  length 
)

◆ atalk_print()

◆ atm_if_print()

◆ atm_print()

void atm_print ( netdissect_options ndo,
u_int  vpi,
u_int  vci,
u_int  traftype,
const u_char *  p,
u_int  length,
u_int  caplen 
)

◆ babel_print()

void babel_print ( netdissect_options ndo,
const u_char *  cp,
u_int  length 
)

◆ bcm_li_print()

◆ beep_print()

void beep_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length 
)

Definition at line 49 of file print-beep.c.

References l_strnstart(), ND_PRINT, and netdissect_options::ndo_protocol.

Referenced by tcp_print().

◆ bfd_print()

◆ bgp_print()

◆ bgp_vpn_rd_print()

◆ bittok2str()

◆ bittok2str_nosep()

char* bittok2str_nosep ( const struct tok lp,
const char *  fmt,
u_int  v 
)

◆ bootp_print()

void bootp_print ( netdissect_options ndo,
const u_char *  cp,
u_int  length 
)

Definition at line 282 of file print-bootp.c.

Referenced by udp_print().

◆ brcm_tag_if_print()

void brcm_tag_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ brcm_tag_prepend_if_print()

void brcm_tag_prepend_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ bt_if_print()

void bt_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ calm_fast_print()

void calm_fast_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const struct lladdr_info src 
)

◆ carp_print()

void carp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  len,
u_int  ttl 
)

◆ cdp_print()

◆ cfm_print()

void cfm_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  length 
)

Definition at line 269 of file print-cfm.c.

References bittok2str(), ccm_interval_base, CCM_INTERVAL_MAX_MULTIPLIER, CCM_INTERVAL_MIN_MULTIPLIER, CFM_CCM_MA_FORMAT_8021, CFM_CCM_MA_FORMAT_CHAR, CFM_CCM_MA_FORMAT_INT, CFM_CCM_MA_FORMAT_VID, CFM_CCM_MA_FORMAT_VPN, CFM_CCM_MD_FORMAT_CHAR, CFM_CCM_MD_FORMAT_DNS, CFM_CCM_MD_FORMAT_MAC, CFM_CCM_MD_FORMAT_NONE, CFM_CCM_RDI_FLAG, CFM_CHASSIS_ID_CHASSIS_COMPONENT, CFM_CHASSIS_ID_INTERFACE_ALIAS, CFM_CHASSIS_ID_INTERFACE_NAME, CFM_CHASSIS_ID_LOCAL, CFM_CHASSIS_ID_MAC_ADDRESS, CFM_CHASSIS_ID_NETWORK_ADDRESS, CFM_CHASSIS_ID_PORT_COMPONENT, CFM_EXTRACT_CCM_INTERVAL, CFM_EXTRACT_MD_LEVEL, CFM_EXTRACT_VERSION, cfm_ltm_flag_values, cfm_ltr_flag_values, cfm_ltr_replay_action_values, cfm_ma_nameformat_values, cfm_md_nameformat_values, cfm_network_addr_print(), CFM_OPCODE_CCM, CFM_OPCODE_LBM, CFM_OPCODE_LBR, CFM_OPCODE_LTM, CFM_OPCODE_LTR, cfm_opcode_values, CFM_TLV_DATA, CFM_TLV_END, CFM_TLV_INTERFACE_STATUS, cfm_tlv_interface_status_values, CFM_TLV_PORT_STATUS, cfm_tlv_port_status_values, CFM_TLV_PRIVATE, CFM_TLV_REPLY_EGRESS, CFM_TLV_REPLY_INGRESS, CFM_TLV_SENDER_ID, cfm_tlv_senderid_chassisid_values, cfm_tlv_values, CFM_VERSION, FALSE, cfm_common_header_t::first_tlv_offset, cfm_common_header_t::flags, GET_BE_U_2, GET_BE_U_3, GET_BE_U_4, GET_ETHERADDR_STRING, GET_U_1, hex_print(), cfm_tlv_header_t::length, MAC_ADDR_LEN, cfm_common_header_t::mdlevel_version, ND_PRINT, nd_print_trunc(), nd_printjnp(), ND_TCHECK_LEN, ND_TCHECK_SIZE, netdissect_options::ndo_protocol, netdissect_options::ndo_vflag, cfm_common_header_t::opcode, opcode, oui_values, print_unknown_data(), tok2str(), TRUE, and cfm_tlv_header_t::type.

Referenced by ethertype_print().

◆ chdlc_if_print()

void chdlc_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ chdlc_print()

◆ cip_if_print()

◆ cisco_autorp_print()

void cisco_autorp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  len 
)

◆ cnfp_print()

void cnfp_print ( netdissect_options ndo,
const u_char *  cp 
)

◆ create_osi_cksum()

uint16_t create_osi_cksum ( const uint8_t *  pptr,
int  checksum_offset,
int  length 
)

Definition at line 139 of file checksum.c.

Referenced by osi_print_cksum().

◆ dccp_print()

void dccp_print ( netdissect_options ndo,
const u_char *  bp,
const u_char *  data2,
u_int  len 
)

dccp_print - show dccp packet @bp - beginning of dccp packet @data2 - beginning of enclosing @len - length of ip packet

Definition at line 269 of file print-dccp.c.

Referenced by ip_demux_print().

◆ decnet_print()

◆ decode_prefix4()

int decode_prefix4 ( netdissect_options ndo,
const u_char *  pptr,
u_int  itemlen,
char *  buf,
size_t  buflen 
)

Definition at line 586 of file print-bgp.c.

References GET_CPY_BYTES, GET_U_1, ipaddr_string(), ITEMCHECK, and snprintf().

Referenced by bgp_nlri_print(), bgp_update_print(), and ldp_tlv_print().

◆ decode_prefix6()

int decode_prefix6 ( netdissect_options ndo,
const u_char *  pd,
u_int  itemlen,
char *  buf,
size_t  buflen 
)

Definition at line 1366 of file print-bgp.c.

References GET_CPY_BYTES, GET_U_1, ip6addr_string(), ITEMCHECK, pd, and snprintf().

Referenced by bgp_nlri_print(), ldp_tlv_print(), and print_prefix().

◆ dhcp6_print()

◆ dnnum_string()

const char* dnnum_string ( netdissect_options ndo,
u_short  dnaddr 
)

◆ domain_print()

◆ dsa_if_print()

void dsa_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ dstopt_process()

int dstopt_process ( netdissect_options ndo,
const u_char *  bp 
)

◆ dtp_print()

◆ dvmrp_print()

◆ eap_print()

◆ eapol_print()

◆ edsa_if_print()

void edsa_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ egp_print()

void egp_print ( netdissect_options ,
const u_char *  ,
u_int   
)

Referenced by ip_demux_print().

◆ eigrp_print()

◆ enc_if_print()

◆ esp_decodesecret_print()

void esp_decodesecret_print ( netdissect_options )

Referenced by esp_print(), and isakmp_print().

◆ esp_decrypt_buffer_by_ikev2_print()

int esp_decrypt_buffer_by_ikev2_print ( netdissect_options ,
int  ,
const u_char  spii[8],
const u_char  spir[8],
const u_char *  ,
const u_char *   
)

Referenced by ikev2_e_print().

◆ esp_print()

◆ ether_if_print()

void ether_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ether_print()

u_int ether_print ( netdissect_options ,
const u_char *  ,
u_int  ,
u_int  ,
void(*)(netdissect_options *, const u_char *)  ,
const u_char *   
)

◆ ether_switch_tag_print()

u_int ether_switch_tag_print ( netdissect_options ndo,
const u_char *  p,
u_int  length,
u_int  caplen,
void(*)(netdissect_options *, const u_char *)  print_switch_tag,
u_int  switch_tag_len 
)

Definition at line 418 of file print-ether.c.

References ether_common_print().

Referenced by brcm_tag_if_print(), dsa_if_print(), and edsa_if_print().

◆ ethertype_print()

int ethertype_print ( netdissect_options ndo,
u_short  ether_type,
const u_char *  p,
u_int  length,
u_int  caplen,
const struct lladdr_info src,
const struct lladdr_info dst 
)

◆ fddi_if_print()

void fddi_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ fddi_print()

◆ fn_print_char()

◆ fn_print_str()

void fn_print_str ( netdissect_options ndo,
const u_char *  s 
)

Definition at line 89 of file util-print.c.

References fn_print_char().

Referenced by acl_print().

◆ forces_print()

◆ fqdn_print()

◆ fr_if_print()

void fr_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ fr_print()

◆ frag6_print()

int frag6_print ( netdissect_options ndo,
const u_char *  bp,
const u_char *  bp2 
)

◆ ftp_print()

void ftp_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 25 of file print-ftp.c.

References netdissect_options::ndo_protocol, and txtproto_print().

Referenced by tcp_print().

◆ geneve_print()

◆ geonet_print()

◆ gre_print()

void gre_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length 
)

◆ hbhopt_process()

int hbhopt_process ( netdissect_options ndo,
const u_char *  bp,
int *  found_jumbo,
uint32_t *  jumbolen 
)

◆ hex_and_ascii_print()

void hex_and_ascii_print ( netdissect_options ndo,
const char *  ident,
const u_char *  cp,
u_int  length 
)

◆ hex_print()

◆ hex_print_with_offset()

void hex_print_with_offset ( netdissect_options ndo,
const char *  ident,
const u_char *  cp,
u_int  length,
u_int  oset 
)

◆ hncp_print()

void hncp_print ( netdissect_options ndo,
const u_char *  cp,
u_int  length 
)

Definition at line 48 of file print-hncp.c.

Referenced by udp_print().

◆ hsrp_print()

◆ http_print()

void http_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 70 of file print-http.c.

References httpcmds, netdissect_options::ndo_protocol, RESP_CODE_SECOND_TOKEN, and txtproto_print().

Referenced by tcp_print().

◆ icmp6_print()

void icmp6_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2,
int  fragmented 
)

Definition at line 1022 of file print-icmp6.c.

References bittok2str(), GET_BE_U_2, GET_BE_U_4, GET_IP6ADDR_STRING, get_rtpref(), GET_U_1, get_upperlayer(), icmp6_hdr::icmp6_cksum, icmp6_cksum(), icmp6_hdr::icmp6_code, ICMP6_DST_UNREACH, ICMP6_DST_UNREACH_ADDR, ICMP6_DST_UNREACH_ADMIN, ICMP6_DST_UNREACH_BEYONDSCOPE, icmp6_dst_unreach_code_values, ICMP6_DST_UNREACH_NOPORT, ICMP6_DST_UNREACH_NOROUTE, ICMP6_ECHO_REPLY, ICMP6_ECHO_REQUEST, ICMP6_HADISCOV_REPLY, ICMP6_HADISCOV_REQUEST, ICMP6_MEMBERSHIP_QUERY, ICMP6_MEMBERSHIP_REDUCTION, ICMP6_MEMBERSHIP_REPORT, ICMP6_MOBILEPREFIX_ADVERT, ICMP6_MOBILEPREFIX_SOLICIT, icmp6_nd_na_flag_values, ICMP6_NI_QUERY, ICMP6_NI_REPLY, icmp6_nodeinfo_print(), icmp6_opt_print(), icmp6_opt_ra_flag_values, ICMP6_PACKET_TOO_BIG, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_FRAGHDRCHAIN, ICMP6_PARAMPROB_HEADER, ICMP6_PARAMPROB_NEXTHEADER, ICMP6_PARAMPROB_OPTION, ICMP6_ROUTER_RENUMBERING, icmp6_rrenum_print(), ICMP6_TIME_EXCEED_REASSEMBLY, ICMP6_TIME_EXCEED_TRANSIT, ICMP6_TIME_EXCEEDED, icmp6_hdr::icmp6_type, icmp6_type_values, ICMP6_V2_MEMBERSHIP_REPORT, in_cksum_shouldbe(), IND_ADVERT, IND_SOLICIT, ip6_hdr::ip6_dst, ip6_hdr::ip6_src, IPPROTO_TCP, IPPROTO_UDP, mld6_print(), MLD_MINLEN, MLDV2_MINLEN, mldv2_query_print(), mldv2_report_print(), MPADVLEN, nd_neighbor_advert::nd_na_target, ND_NEIGHBOR_ADVERT, ND_NEIGHBOR_SOLICIT, nd_neighbor_solicit::nd_ns_target, ND_PRINT, nd_print_invalid(), nd_print_trunc(), nd_router_advert::nd_ra_reachable, nd_router_advert::nd_ra_retransmit, nd_redirect::nd_rd_dst, nd_redirect::nd_rd_target, ND_REDIRECT, ND_ROUTER_ADVERT, ND_ROUTER_SOLICIT, ND_RPL_MESSAGE, ND_TCHECK_16, ND_TTEST_LEN, NDADVLEN, netdissect_options::ndo_protocol, netdissect_options::ndo_snapend, netdissect_options::ndo_vflag, NDSOLLEN, print_unknown_data(), REDIRECTLEN, rpl_print(), RTADVLEN, RTSOLLEN, tcpport_string(), tok2str(), udpport_string(), and udphdr::uh_dport.

Referenced by ip_demux_print().

◆ icmp_print()

void icmp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  plen,
const u_char *  bp2,
int  fragmented 
)

Definition at line 294 of file print-icmp.c.

References icmp_mpls_ext_object_header_t::class_num, icmp_mpls_ext_object_header_t::ctype, GET_BE_U_2, GET_BE_U_4, GET_IPADDR_STRING, GET_U_1, icmp2str, icmp::icmp_cksum, icmp::icmp_code, ICMP_ECHO, ICMP_ECHOREPLY, ICMP_ERRTYPE, icmp_ext_t::icmp_ext_checksum, icmp_ext_t::icmp_ext_data, icmp_ext_t::icmp_ext_version_res, ICMP_EXTD_MINLEN, icmp_ext_t::icmp_length, ICMP_MASKREPLY, ICMP_MPLS_EXT_EXTRACT_VERSION, icmp_mpls_ext_obj_values, ICMP_MPLS_EXT_TYPE, ICMP_MPLS_EXT_VERSION, ICMP_PARAMPROB, ICMP_REDIRECT, ICMP_REDIRECT_HOST, ICMP_REDIRECT_NET, ICMP_REDIRECT_TOSHOST, ICMP_REDIRECT_TOSNET, ICMP_ROUTERADVERT, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, ICMP_TIMXCEED_REASS, ICMP_TSTAMP, icmp_tstamp_print(), ICMP_TSTAMPREPLY, icmp::icmp_type, ICMP_UNREACH, ICMP_UNREACH_FILTER_PROHIB, ICMP_UNREACH_HOST, ICMP_UNREACH_HOST_PRECEDENCE, ICMP_UNREACH_HOST_PROHIB, ICMP_UNREACH_HOST_UNKNOWN, ICMP_UNREACH_ISOLATED, ICMP_UNREACH_NEEDFRAG, ICMP_UNREACH_NET, ICMP_UNREACH_NET_PROHIB, ICMP_UNREACH_NET_UNKNOWN, ICMP_UNREACH_PORT, ICMP_UNREACH_PRECEDENCE_CUTOFF, ICMP_UNREACH_PROTOCOL, ICMP_UNREACH_SRCFAIL, ICMP_UNREACH_TOSHOST, ICMP_UNREACH_TOSNET, in_cksum(), in_cksum_shouldbe(), IP_HL, ip::ip_len, ip_print(), IPPROTO_TCP, IPPROTO_UDP, id_rdiscovery::ird_addr, ih_rdiscovery::ird_addrnum, ih_rdiscovery::ird_addrsiz, ih_rdiscovery::ird_lifetime, id_rdiscovery::ird_pref, cksum_vec::len, icmp_mpls_ext_object_header_t::length, MPLS_EXP, MPLS_LABEL, MPLS_STACK, MPLS_TTL, ND_MIN, ND_PRINT, nd_print_trunc(), ND_TCHECK_1, ND_TCHECK_4, ND_TCHECK_SIZE, ND_TTEST_LEN, netdissect_options::ndo_protocol, netdissect_options::ndo_snapend, netdissect_options::ndo_vflag, mtu_discovery::nexthopmtu, print_unknown_data(), cksum_vec::ptr, snprintf(), tcpport_string(), tok2str(), udpport_string(), and udphdr::uh_dport.

Referenced by ip_demux_print().

◆ ieee802_11_if_print()

void ieee802_11_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ieee802_11_radio_avs_if_print()

void ieee802_11_radio_avs_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ieee802_11_radio_if_print()

void ieee802_11_radio_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ieee802_11_radio_print()

◆ ieee802_15_4_if_print()

void ieee802_15_4_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ieee802_15_4_print()

◆ ieee802_15_4_tap_if_print()

void ieee802_15_4_tap_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ igmp_print()

◆ igrp_print()

◆ in_cksum()

uint16_t in_cksum ( const struct cksum_vec vec,
int  veclen 
)

◆ in_cksum_shouldbe()

uint16_t in_cksum_shouldbe ( uint16_t  sum,
uint16_t  computed_sum 
)

Definition at line 157 of file in_cksum.c.

Referenced by icmp6_print(), icmp_print(), ip_print(), tcp_print(), and udp_print().

◆ init_checksum()

void init_checksum ( void  )

Definition at line 128 of file checksum.c.

References init_crc10_table().

Referenced by init_print().

◆ ip6_print()

◆ ip_demux_print()

◆ ip_print()

◆ ipcomp_print()

void ipcomp_print ( netdissect_options ndo,
const u_char *  bp 
)

Definition at line 40 of file print-ipcomp.c.

References ipcomp::comp_cpi, GET_BE_U_2, ND_PRINT, and netdissect_options::ndo_protocol.

Referenced by ip_demux_print().

◆ ipfc_if_print()

void ipfc_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ipN_print()

void ipN_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length 
)

Definition at line 516 of file print-ip.c.

References GET_U_1, ip6_print(), ip_print(), ND_PRINT, and netdissect_options::ndo_protocol.

Referenced by raw_if_print().

◆ ipnet_if_print()

void ipnet_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ ipoib_if_print()

void ipoib_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

Definition at line 121 of file print-ipoib.c.

References ipoib_print(), and netdissect_options::ndo_protocol.

◆ ipx_netbios_print()

void ipx_netbios_print ( netdissect_options ndo,
const u_char *  data,
u_int  length 
)

◆ ipx_print()

◆ isakmp_print()

◆ isakmp_rfc3948_print()

void isakmp_rfc3948_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2,
int  ver,
int  fragmented,
u_int  ttl_hl 
)

◆ isoclns_print()

void isoclns_print ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)

◆ juniper_atm1_if_print()

void juniper_atm1_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_atm2_if_print()

void juniper_atm2_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_chdlc_if_print()

void juniper_chdlc_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_es_if_print()

void juniper_es_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_ether_if_print()

void juniper_ether_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_frelay_if_print()

void juniper_frelay_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_ggsn_if_print()

void juniper_ggsn_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_mfr_if_print()

void juniper_mfr_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_mlfr_if_print()

void juniper_mlfr_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_mlppp_if_print()

void juniper_mlppp_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_monitor_if_print()

void juniper_monitor_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_ppp_if_print()

void juniper_ppp_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_pppoe_atm_if_print()

void juniper_pppoe_atm_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_pppoe_if_print()

void juniper_pppoe_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ juniper_services_if_print()

void juniper_services_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ krb_print()

void krb_print ( netdissect_options ndo,
const u_char *  dat 
)

◆ l2tp_print()

◆ lane_print()

◆ ldp_print()

void ldp_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 548 of file print-ldp.c.

References ldp_pdu_print(), ND_PRINT, nd_print_invalid(), and netdissect_options::ndo_protocol.

Referenced by tcp_print(), and udp_print().

◆ lisp_print()

◆ llap_print()

◆ llc_print()

◆ lldp_print()

◆ lmp_print()

void lmp_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  length 
)

Definition at line 427 of file print-lmp.c.

References bittok2str(), lmp_object_header::class_num, lmp_object_header::ctype, FALSE, lmp_common_header::flags, GET_BE_U_2, GET_BE_U_4, GET_IP6ADDR_STRING, GET_IPADDR_STRING, GET_U_1, gmpls_encoding_values, lmp_common_header::length, lmp_object_header::length, LMP_CTYPE_1, LMP_CTYPE_2, LMP_CTYPE_BEGIN_VERIFY_ERROR, LMP_CTYPE_HELLO, LMP_CTYPE_HELLO_CONFIG, LMP_CTYPE_IPV4, LMP_CTYPE_IPV4_LOC, LMP_CTYPE_IPV4_RMT, LMP_CTYPE_IPV6, LMP_CTYPE_IPV6_LOC, LMP_CTYPE_IPV6_RMT, LMP_CTYPE_LINK_SUMMARY_ERROR, LMP_CTYPE_LOC, LMP_CTYPE_RMT, LMP_CTYPE_SERVICE_CONFIG_CPSA, LMP_CTYPE_SERVICE_CONFIG_NETWORK_DIVERSITY, LMP_CTYPE_SERVICE_CONFIG_SP, LMP_CTYPE_SERVICE_CONFIG_TRANSPARENCY_TCM, LMP_CTYPE_UNMD, LMP_CTYPE_UNMD_LOC, LMP_CTYPE_UNMD_RMT, lmp_ctype_values, LMP_EXTRACT_VERSION, lmp_header_flag_values, lmp_msg_type_values, lmp_obj_begin_verify_error_values, lmp_obj_begin_verify_flag_values, LMP_OBJ_CC_ID, LMP_OBJ_CHANNEL_STATUS, LMP_OBJ_CHANNEL_STATUS_REQ, lmp_obj_channel_status_values, LMP_OBJ_CONFIG, LMP_OBJ_DATA_LINK, lmp_obj_data_link_flag_values, LMP_OBJ_ERROR_CODE, LMP_OBJ_HELLO, LMP_OBJ_INTERFACE_ID, LMP_OBJ_LINK_ID, lmp_obj_link_summary_error_values, LMP_OBJ_MESSAGE_ID, LMP_OBJ_NODE_ID, LMP_OBJ_SERVICE_CONFIG, lmp_obj_service_config_cpsa_cct_flag_values, lmp_obj_service_config_cpsa_tp_flag_values, lmp_obj_service_config_nsa_network_diversity_flag_values, lmp_obj_service_config_nsa_tcm_flag_values, lmp_obj_service_config_nsa_transparency_flag_values, lmp_obj_service_config_sp_flag_values, LMP_OBJ_TE_LINK, lmp_obj_te_link_flag_values, lmp_obj_values, LMP_OBJ_VERIFY_BEGIN, LMP_OBJ_VERIFY_BEGIN_ACK, LMP_OBJ_VERIFY_ID, lmp_print_data_link_subobjs(), LMP_SD_SERVICE_CONFIG_CPSA_LINK_TYPE_SDH, LMP_SD_SERVICE_CONFIG_CPSA_LINK_TYPE_SONET, lmp_sd_service_config_cpsa_link_type_values, lmp_sd_service_config_cpsa_signal_type_sdh_values, lmp_sd_service_config_cpsa_signal_type_sonet_values, LMP_VERSION, lmp_common_header::msg_type, ND_PRINT, nd_print_invalid(), ND_TCHECK_LEN, ND_TCHECK_SIZE, netdissect_options::ndo_protocol, netdissect_options::ndo_vflag, print_unknown_data(), tok2str(), TRUE, and lmp_common_header::version_res.

Referenced by udp_print().

◆ lookup_printer()

if_printer lookup_printer ( int  type)

Definition at line 273 of file print.c.

References printer::f, printers, and printer::type.

Referenced by get_if_printer(), and has_printer().

◆ loopback_print()

void loopback_print ( netdissect_options ndo,
const u_char *  cp,
u_int  len 
)

◆ lspping_print()

void lspping_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 490 of file print-lspping.c.

References lspping_tlv_downstream_map_t::address_type, bgp_vpn_rd_print(), FALSE, l_fixedpt::fraction, GET_BE_U_2, GET_BE_U_4, GET_IP6ADDR_STRING, GET_IPADDR_STRING, GET_U_1, l_fixedpt::int_part, lspping_tlv_header::length, LSPPING_AFI_IPV4, LSPPING_AFI_IPV4_UNMB, LSPPING_AFI_IPV6, LSPPING_AFI_IPV6_UNMB, lspping_msg_type_values, lspping_reply_mode_values, lspping_return_code_values, LSPPING_TLV_BFD_DISCRIMINATOR, LSPPING_TLV_BFD_DISCRIMINATOR_LEN, lspping_tlv_downstream_addr_values, LSPPING_TLV_DOWNSTREAM_MAPPING, LSPPING_TLV_ERROR_CODE, LSPPING_TLV_PAD, LSPPING_TLV_TARGET_FEC_STACK, LSPPING_TLV_TARGETFEC_SUBTLV_BGP_IPV4, LSPPING_TLV_TARGETFEC_SUBTLV_BGP_IPV6, LSPPING_TLV_TARGETFEC_SUBTLV_FEC_128_PW, LSPPING_TLV_TARGETFEC_SUBTLV_FEC_128_PW_OLD, LSPPING_TLV_TARGETFEC_SUBTLV_L2VPN_ENDPT, LSPPING_TLV_TARGETFEC_SUBTLV_L3VPN_IPV4, LSPPING_TLV_TARGETFEC_SUBTLV_L3VPN_IPV6, LSPPING_TLV_TARGETFEC_SUBTLV_LDP_IPV4, LSPPING_TLV_TARGETFEC_SUBTLV_LDP_IPV6, LSPPING_TLV_TARGETFEC_SUBTLV_RSVP_IPV4, LSPPING_TLV_TARGETFEC_SUBTLV_RSVP_IPV6, lspping_tlv_values, LSPPING_TLV_VENDOR_ENTERPRISE, LSPPING_TLV_VENDOR_ENTERPRISE_LEN, LSPPING_TLV_VENDOR_PRIVATE, lspping_tlvtargetfec_subtlv_values, LSPPING_VERSION, mpls_pw_types_values, lspping_common_header::msg_type, ND_PRINT, ND_TCHECK_LEN, ND_TCHECK_SIZE, netdissect_options::ndo_protocol, netdissect_options::ndo_vflag, p_ntp_time(), print_unknown_data(), lspping_common_header::reply_mode, lspping_common_header::return_code, lspping_common_header::return_subcode, lspping_common_header::sender_handle, lspping_common_header::seq_number, smi_values, tok2str(), TRUE, lspping_common_header::ts_rcvd, lspping_common_header::ts_sent, lspping_tlv_header::type, and lspping_common_header::version.

Referenced by udp_print().

◆ ltalk_if_print()

void ltalk_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ lwapp_control_print()

void lwapp_control_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len,
int  has_ap_ident 
)

Definition at line 166 of file print-lwapp.c.

References bittok2str(), lwapp_transport_header::frag_id, GET_BE_U_2, GET_BE_U_4, GET_ETHERADDR_STRING, GET_U_1, lwapp_control_header::len, lwapp_transport_header::length, LWAPP_EXTRACT_CONTROL_BIT, LWAPP_EXTRACT_RID, LWAPP_EXTRACT_VERSION, lwapp_header_bits_values, lwapp_msg_type_values, LWAPP_MSGTYPE_CHANGE_STATE_EVENT_REQUEST, LWAPP_MSGTYPE_CHANGE_STATE_EVENT_RESPONSE, LWAPP_MSGTYPE_CLEAR_CONFIG_INDICATION, LWAPP_MSGTYPE_CONF_UPDATE_REQUEST, LWAPP_MSGTYPE_CONF_UPDATE_RESPONSE, LWAPP_MSGTYPE_CONFIGURE_REQUEST, LWAPP_MSGTYPE_CONFIGURE_RESPONSE, LWAPP_MSGTYPE_DATA_TRANSFER_REQUEST, LWAPP_MSGTYPE_DATA_TRANSFER_RESPONSE, LWAPP_MSGTYPE_DISCOVERY_REQUEST, LWAPP_MSGTYPE_DISCOVERY_RESPONSE, LWAPP_MSGTYPE_ECHO_REQUEST, LWAPP_MSGTYPE_ECHO_RESPONSE, LWAPP_MSGTYPE_IMAGE_DATA_REQUEST, LWAPP_MSGTYPE_IMAGE_DATA_RESPONSE, LWAPP_MSGTYPE_JOIN_ACK, LWAPP_MSGTYPE_JOIN_CONFIRM, LWAPP_MSGTYPE_JOIN_REQUEST, LWAPP_MSGTYPE_JOIN_RESPONSE, LWAPP_MSGTYPE_KEY_UPDATE_REQUEST, LWAPP_MSGTYPE_KEY_UPDATE_RESPONSE, LWAPP_MSGTYPE_MOBILE_CONFIG_REQUEST, LWAPP_MSGTYPE_MOBILE_CONFIG_RESPONSE, LWAPP_MSGTYPE_PRIMARY_DISCOVERY_REQUEST, LWAPP_MSGTYPE_PRIMARY_DISCOVERY_RESPONSE, LWAPP_MSGTYPE_RESET_REQUEST, LWAPP_MSGTYPE_RESET_RESPONSE, LWAPP_MSGTYPE_WLAN_CONFIG_REQUEST, LWAPP_MSGTYPE_WLAN_CONFIG_RESPONSE, LWAPP_MSGTYPE_WTP_EVENT_REQUEST, LWAPP_MSGTYPE_WTP_EVENT_RESPONSE, LWAPP_VERSION, lwapp_control_header::msg_type, ND_PRINT, nd_print_trunc(), ND_TCHECK_6, ND_TCHECK_LEN, ND_TCHECK_SIZE, netdissect_options::ndo_protocol, netdissect_options::ndo_vflag, lwapp_control_header::seq_num, lwapp_control_header::session_id, tok2str(), version, and lwapp_transport_header::version.

Referenced by udp_print().

◆ lwapp_data_print()

◆ lwres_print()

void lwres_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length 
)

Definition at line 274 of file print-lwres.c.

References lwres_gabnrequest_t::addrtypes, lwres_lwpacket::authlength, lwres_lwpacket::authtype, C_IN, lwres_gabnrequest_t::flags, lwres_gabnresponse_t::flags, lwres_gnbarequest_t::flags, lwres_gnbaresponse_t::flags, lwres_grbnrequest_t::flags, lwres_grbnresponse_t::flags, GET_BE_U_2, GET_BE_U_4, lwres_lwpacket::length, LWRES_ADDRTYPE_V4, LWRES_ADDRTYPE_V6, LWRES_GABNREQUEST_LEN, LWRES_GABNRESPONSE_LEN, LWRES_GNBAREQUEST_LEN, LWRES_GNBARESPONSE_LEN, LWRES_GRBNREQUEST_LEN, LWRES_GRBNRESPONSE_LEN, LWRES_LWPACKETFLAG_RESPONSE, LWRES_LWPACKETVERSION_0, LWRES_OPCODE_GETADDRSBYNAME, LWRES_OPCODE_GETNAMEBYADDR, LWRES_OPCODE_GETRDATABYNAME, LWRES_OPCODE_NOOP, lwres_printaddr(), lwres_printbinlen(), lwres_printname(), lwres_printnamelen(), lwres_gabnresponse_t::naddrs, lwres_gabnresponse_t::naliases, lwres_gnbaresponse_t::naliases, lwres_gabnrequest_t::namelen, lwres_grbnrequest_t::namelen, ND_PRINT, nd_print_invalid(), ND_TCHECK_2, ND_TCHECK_4, netdissect_options::ndo_protocol, netdissect_options::ndo_vflag, lwres_grbnresponse_t::nrdatas, ns_class2str, ns_type2str, lwres_grbnresponse_t::nsigs, opcode, lwres_lwpacket::opcode, lwres_lwpacket::pktflags, lwres_grbnrequest_t::rdclass, lwres_grbnresponse_t::rdclass, lwres_grbnrequest_t::rdtype, lwres_grbnresponse_t::rdtype, lwres_gabnresponse_t::realnamelen, lwres_gnbaresponse_t::realnamelen, lwres_lwpacket::recvlength, lwres_lwpacket::result, lwres_lwpacket::serial, tok2str(), lwres_grbnresponse_t::ttl, unsigned_relts_print(), and lwres_lwpacket::version.

Referenced by udp_print().

◆ m3ua_print()

◆ macsec_print()

◆ mask2plen()

int mask2plen ( uint32_t  mask)

Definition at line 605 of file util-print.c.

Referenced by isis_print_tlv_ip_reach(), olsr_print(), and rip_entry_print_v2().

◆ mask62plen()

int mask62plen ( const u_char *  mask)

Definition at line 630 of file util-print.c.

Referenced by olsr_print().

◆ mfr_if_print()

void mfr_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

Definition at line 382 of file print-fr.c.

◆ mfr_print()

◆ mobile_print()

◆ mobility_print()

◆ mpcp_print()

◆ mpls_print()

◆ mptcp_print()

int mptcp_print ( netdissect_options ndo,
const u_char *  cp,
u_int  len,
u_char  flags 
)

◆ msdp_print()

void msdp_print ( netdissect_options ndo,
const u_char *  sp,
u_int  length 
)

◆ msnlb_print()

◆ nbt_tcp_print()

void nbt_tcp_print ( netdissect_options ndo,
const u_char *  data,
u_int  length 
)

◆ nbt_udp137_print()

void nbt_udp137_print ( netdissect_options ndo,
const u_char *  data,
u_int  length 
)

◆ nbt_udp138_print()

void nbt_udp138_print ( netdissect_options ndo,
const u_char *  data,
u_int  length 
)

◆ nd_change_snapend()

void nd_change_snapend ( netdissect_options ndo,
const u_char *  new_snapend 
)

◆ nd_cleanup()

void nd_cleanup ( void  )

Definition at line 87 of file netdissect.c.

Referenced by exit_tcpdump(), and ndo_error().

◆ nd_have_smi_support()

int nd_have_smi_support ( void  )

Definition at line 106 of file netdissect.c.

Referenced by main().

◆ nd_init()

int nd_init ( char *  errbuf,
size_t  errbuf_size 
)

Definition at line 48 of file netdissect.c.

References strlcpy().

Referenced by main().

◆ nd_load_smi_module()

int nd_load_smi_module ( const char *  module,
char *  errbuf,
size_t  errbuf_size 
)

Definition at line 122 of file netdissect.c.

References nd_smi_module_loaded, and snprintf().

Referenced by main().

◆ nd_pop_all_packet_info()

void nd_pop_all_packet_info ( netdissect_options ndo)

Definition at line 232 of file netdissect.c.

References nd_pop_packet_info(), and netdissect_options::ndo_packet_info_stack.

Referenced by pretty_print_packet().

◆ nd_pop_packet_info()

◆ nd_print_invalid()

void nd_print_invalid ( netdissect_options ndo)

Definition at line 429 of file util-print.c.

References ND_PRINT.

Referenced by ahcp1_body_print(), ahcp1_options_print(), ahcp_ipv4_addresses_print(), ahcp_ipv4_prefixes_print(), ahcp_ipv6_addresses_print(), ahcp_ipv6_prefixes_print(), ahcp_print(), ahcp_seconds_print(), ahcp_time_print(), aoe_print(), aoev1_issue_print(), aoev1_mac_print(), aoev1_print(), aoev1_query_print(), aoev1_reserve_print(), babel_print_v2(), bcm_li_print(), bgp_capabilities_print(), bgp_print(), calm_fast_print(), cdp_print(), decnet_print(), dhcpv6_print(), domain_print(), dtp_print(), dvmrp_print(), geneve_print(), geonet_print(), handle_ctrl_proto(), hncp_print_rec(), icmp6_print(), ieee802_15_4_tap_if_print(), igrp_print(), ip_demux_print(), ip_print(), ipx_print(), ipx_rip_print(), ipx_sap_print(), isis_print(), isis_print_ext_is_reach(), ldp_print(), lisp_print(), lmp_print(), loopback_message_print(), loopback_print(), lwres_print(), m3ua_print(), m3ua_tags_print(), macsec_print(), mfr_print(), mpls_print(), nsh_print(), ntp_control_print(), ntp_time_print(), of10_actions_print(), of10_aggregate_stats_reply_print(), of10_bsn_actions_print(), of10_bsn_message_print(), of10_desc_stats_reply_print(), of10_features_reply_print(), of10_flow_stats_reply_print(), of10_packet_out_print(), of10_port_stats_reply_print(), of10_queue_props_print(), of10_queue_stats_reply_print(), of10_queues_print(), of10_stats_request_print(), of10_table_stats_reply_print(), of10_vendor_action_print(), of10_vendor_data_print(), of13_hello_elements_print(), of_message_print(), openflow_print(), ospf_te_lsa_print(), otv_print(), parsefn(), pimv2_print(), pppoe_print(), print_eopt_ecs(), print_ipcp_config_options(), print_neighbors(), print_neighbors2(), print_probe(), print_report(), print_tcp_fastopen_option(), rip_print(), ripng_print(), rpki_rtr_pdu_print(), rsvp_obj_print(), rt6_print(), sflow_print(), someip_print(), stp_print(), subtlvs_print(), syslog_print(), tag_value_print(), tcp_print(), udld_print(), vqp_print(), vtp_print(), vxlan_gpe_print(), vxlan_print(), wb_print(), zep_print(), and zephyr_print().

◆ nd_print_protocol()

void nd_print_protocol ( netdissect_options ndo)

Definition at line 415 of file util-print.c.

References ND_PRINT, and netdissect_options::ndo_protocol.

Referenced by domain_print(), msdp_print(), and pptp_print().

◆ nd_print_protocol_caps()

◆ nd_print_trunc()

void nd_print_trunc ( netdissect_options ndo)

Definition at line 409 of file util-print.c.

References ND_PRINT, and netdissect_options::ndo_protocol.

Referenced by aarp_print(), aodv_extension(), aodv_rerr(), aodv_rrep(), aodv_rreq(), aodv_v6_draft_01_rerr(), aodv_v6_draft_01_rrep(), aodv_v6_draft_01_rreq(), aodv_v6_rerr(), aodv_v6_rrep(), aodv_v6_rreq(), asn1_parse(), asn1_print(), asn1_print_octets(), asn1_print_string(), atp_print(), babel_print(), babel_print_v2(), babel_print_v2_tlvs(), bgp_capabilities_print(), bgp_notification_print(), bgp_open_print(), bgp_pdu_print(), bgp_print(), bgp_route_refresh_print(), bgp_update_print(), cfm_print(), chdlc_print(), chdlc_slarp_print(), cisco_autorp_print(), clnp_print(), cmu_print(), cnfp_v1_print(), cnfp_v5_print(), cnfp_v6_print(), dccp_print_option(), dhcp6_print(), dhcp6opt_print(), domain_print(), dstopt_process(), eap_print(), eapol_print(), egp_print(), egpnr_print(), eigrp_print(), esis_print(), esp_print(), ether_common_print(), ethertype_print(), fdatatlv_print(), fddi_print(), forces_print(), fr_if_print(), fr_print(), geneve_print(), gre_print(), gre_print_0(), gre_print_1(), hbhopt_process(), hncp_print_rec(), icmp6_nodeinfo_print(), icmp6_print(), icmp6_rrenum_print(), icmp_print(), ieee802_11_print(), ieee802_11_radio_avs_print(), ieee802_11_radio_print(), ieee802_15_4_print(), ieee802_15_4_tap_if_print(), ike_sub0_print(), ikev2_sub0_print(), interp_reply(), ip6_print(), ip_demux_print(), ip_print(), ipoib_print(), isakmp_print(), isakmp_rfc3948_print(), isis_print(), isis_print_ip_reach_subtlv(), isis_print_mcid(), isis_print_mt_capability_subtlv(), isis_print_mt_port_cap_subtlv(), krb4_print(), krb4_print_hdr(), krb_print(), l2tp_avp_print(), l2tp_print(), lfbselect_print(), lisp_print(), llap_print(), llc_print(), lldp_print(), lwapp_control_print(), lwapp_data_print(), macsec_print(), mfr_print(), mobile_print(), mobility_print(), msdp_print(), nbp_print(), nbp_tuple_print(), nbt_tcp_print(), nbt_udp137_print(), nfsreply_noaddr_print(), nfsreq_noaddr_print(), ntp_control_print(), ntp_time_print(), olsr_print(), ospf6_print(), pdata_print(), pdatacnt_print(), pflog_if_print(), pgm_print(), pimv1_join_prune_print(), pimv1_print(), pimv2_print(), ppp_bsdos_if_print(), ppp_hdlc(), ppp_hdlc_if_print(), ppp_if_print(), ppp_print(), prestlv_print(), pretty_print_packet(), print_attr_location_data(), print_attr_location_information(), print_attr_mip6_home_link_prefix(), print_attr_netmask6(), print_attr_operator_name(), print_attr_strange(), print_attr_string(), print_basic_location_policy_rules(), print_cstring(), print_radiotap_field(), print_trans(), print_trans2(), print_txt_line(), print_vendor_attr(), prism_if_print(), ptp_print(), q933_print(), radius_attrs_print(), radius_print(), rfc1048_print(), rip_print(), rpl_dao_print(), rpl_daoack_print(), rpl_dio_print(), rpl_print(), rpl_printopts(), rsvp_intserv_print(), rsvp_obj_print(), rsvp_print(), rtcp_print(), sctp_print(), sdatatlv_print(), sll2_if_print(), sll_if_print(), smb_fdata1(), smb_tcp_print(), snap_print(), tcp_print(), tftp_print(), token_print(), udp_print(), vsock_hdr_print(), and vsock_if_print().

◆ nd_printjnp()

◆ nd_printn()

◆ nd_printztn()

u_int nd_printztn ( netdissect_options ndo,
const u_char *  s,
u_int  n,
const u_char *  ep 
)

Definition at line 116 of file util-print.c.

References fn_print_char(), and GET_U_1.

Referenced by tftp_print().

◆ nd_push_buffer()

◆ nd_push_snapend()

◆ nd_smi_version_string()

const char* nd_smi_version_string ( void  )

Definition at line 140 of file netdissect.c.

Referenced by print_version().

◆ netanalyzer_if_print()

void netanalyzer_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ netanalyzer_transparent_if_print()

void netanalyzer_transparent_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ netbeui_print()

void netbeui_print ( netdissect_options ndo,
u_short  control,
const u_char *  data,
u_int  length 
)

◆ nextproto4_cksum()

uint16_t nextproto4_cksum ( netdissect_options ndo,
const struct ip ip,
const uint8_t *  data,
u_int  len,
u_int  covlen,
uint8_t  next_proto 
)

◆ nextproto6_cksum()

uint16_t nextproto6_cksum ( netdissect_options ndo,
const struct ip6_hdr ip6,
const uint8_t *  data,
u_int  len,
u_int  covlen,
uint8_t  next_proto 
)

◆ nflog_if_print()

void nflog_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ nfsreply_noaddr_print()

void nfsreply_noaddr_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2 
)

◆ nfsreply_print()

void nfsreply_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2 
)

◆ nfsreq_noaddr_print()

◆ nsh_print()

◆ ntp_print()

◆ null_if_print()

◆ oam_print()

◆ olsr_print()

◆ openflow_print()

◆ ospf6_print()

◆ ospf_grace_lsa_print()

◆ ospf_print()

◆ ospf_te_lsa_print()

◆ otv_print()

void otv_print ( netdissect_options ndo,
const u_char *  bp,
u_int  len 
)

◆ pflog_if_print()

◆ pgm_print()

void pgm_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2 
)

Definition at line 146 of file print-pgm.c.

References addrtostr(), addrtostr6(), AFNUM_INET, AFNUM_INET6, GET_BE_U_2, GET_BE_U_4, GET_IP6ADDR_STRING, GET_IPADDR_STRING, GET_U_1, INET6_ADDRSTRLEN, ip6_hdr::ip6_dst, ip6_hdr::ip6_src, ip::ip_dst, ip::ip_p, ip::ip_src, IP_V, IPPROTO_PGM, ND_PRINT, nd_print_trunc(), ND_TCHECK_LEN, ND_TCHECK_SIZE, ND_TTEST_2, netdissect_options::ndo_packettype, netdissect_options::ndo_protocol, netdissect_options::ndo_vflag, PGM_ACK, pgm_header::pgm_dport, pgm_header::pgm_gsid, pgm_header::pgm_length, PGM_MIN_OPT_LEN, PGM_NAK, PGM_NCF, PGM_NULLNAK, PGM_ODATA, PGM_OPT_BIT_PRESENT, PGM_OPT_CR, PGM_OPT_CRQST, PGM_OPT_CRQST_LEN, PGM_OPT_CURR_TGSIZE, PGM_OPT_CURR_TGSIZE_LEN, PGM_OPT_END, PGM_OPT_FIN, PGM_OPT_FIN_LEN, PGM_OPT_FRAGMENT, PGM_OPT_FRAGMENT_LEN, PGM_OPT_JOIN, PGM_OPT_JOIN_LEN, PGM_OPT_LENGTH, PGM_OPT_LENGTH_LEN, PGM_OPT_MASK, PGM_OPT_NAK_BO_IVL, PGM_OPT_NAK_BO_IVL_LEN, PGM_OPT_NAK_BO_RNG, PGM_OPT_NAK_BO_RNG_LEN, PGM_OPT_NAK_LIST, PGM_OPT_NBR_UNREACH, PGM_OPT_NBR_UNREACH_LEN, PGM_OPT_PARITY_GRP, PGM_OPT_PARITY_GRP_LEN, PGM_OPT_PARITY_PRM, PGM_OPT_PARITY_PRM_LEN, PGM_OPT_PATH_NLA, PGM_OPT_PGMCC_DATA, PGM_OPT_PGMCC_DATA_FIXED_LEN, PGM_OPT_PGMCC_FEEDBACK, PGM_OPT_PGMCC_FEEDBACK_FIXED_LEN, PGM_OPT_REDIRECT, PGM_OPT_REDIRECT_FIXED_LEN, PGM_OPT_RST, PGM_OPT_RST_LEN, PGM_OPT_SYN, PGM_OPT_SYN_LEN, pgm_header::pgm_options, PGM_POLL, PGM_POLR, PGM_RDATA, PGM_SPM, PGM_SPMR, pgm_header::pgm_sport, pgm_header::pgm_type, pgm_ack::pgma_rx_max_seq, pgm_data::pgmd_seq, pgm_data::pgmd_trailseq, pgm_nak::pgmn_seq, pgm_nak::pgmn_source_afi, pgm_poll::pgmp_nla_afi, pgm_poll::pgmp_round, pgm_polr::pgmp_round, pgm_poll::pgmp_seq, pgm_polr::pgmp_seq, pgm_spm::pgms_leadseq, pgm_spm::pgms_nla_afi, pgm_spm::pgms_seq, pgm_spm::pgms_trailseq, PT_PGM_ZMTP1, tcpport_string(), and zmtp1_datagram_print().

Referenced by ip_demux_print(), and udp_print().

◆ pim_print()

void pim_print ( netdissect_options ndo,
const u_char *  bp,
u_int  len,
const u_char *  bp2 
)

◆ pimv1_print()

◆ pktap_if_print()

void pktap_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ ppi_if_print()

void ppi_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ ppp_bsdos_if_print()

◆ ppp_hdlc_if_print()

◆ ppp_if_print()

void ppp_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ppp_print()

◆ pppoe_if_print()

void pppoe_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ pppoe_print()

◆ pptp_print()

◆ print_unknown_data()

◆ prism_if_print()

◆ ptp_print()

void ptp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  len 
)

◆ q922_string()

const char* q922_string ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)

Definition at line 145 of file print-fr.c.

References parse_q922_header(), and snprintf().

Referenced by linkaddr_string().

◆ q933_print()

◆ radius_print()

◆ raw_if_print()

void raw_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ resp_print()

void resp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length 
)

Definition at line 201 of file print-resp.c.

Referenced by tcp_print().

◆ rip_print()

◆ ripng_print()

◆ rpki_rtr_print()

void rpki_rtr_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

◆ rrcp_print()

◆ rsvp_print()

◆ rt6_print()

◆ rtsp_print()

void rtsp_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 40 of file print-rtsp.c.

References netdissect_options::ndo_protocol, RESP_CODE_SECOND_TOKEN, rtspcmds, and txtproto_print().

Referenced by tcp_print().

◆ rx_print()

◆ sctp_print()

◆ sflow_print()

◆ signed_relts_print()

void signed_relts_print ( netdissect_options ndo,
int32_t  secs 
)

Definition at line 378 of file util-print.c.

References ND_PRINT, and unsigned_relts_print().

◆ sip_print()

void sip_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 50 of file print-sip.c.

References netdissect_options::ndo_protocol, RESP_CODE_SECOND_TOKEN, sipcmds, and txtproto_print().

Referenced by udp_print().

◆ sl_bsdos_if_print()

void sl_bsdos_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ sl_if_print()

void sl_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ sll2_if_print()

◆ sll_if_print()

◆ slow_print()

◆ smb_tcp_print()

void smb_tcp_print ( netdissect_options ndo,
const u_char *  data,
u_int  length 
)

◆ smtp_print()

void smtp_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 25 of file print-smtp.c.

References netdissect_options::ndo_protocol, and txtproto_print().

Referenced by tcp_print().

◆ snap_print()

◆ snmp_print()

◆ someip_print()

void someip_print ( netdissect_options ndo,
const u_char *  bp,
const  u_int 
)

◆ ssh_print()

void ssh_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len 
)

Definition at line 94 of file print-ssh.c.

References netdissect_options::ndo_protocol, and ssh_print_version().

Referenced by tcp_print().

◆ stp_print()

◆ strdup()

char* strdup ( const char *  str)

◆ strlcat()

size_t strlcat ( char *  dst,
const char *  src,
size_t  siz 
)

Definition at line 48 of file strlcat.c.

◆ strlcpy()

size_t strlcpy ( char *  dst,
const char *  src,
size_t  siz 
)

Definition at line 47 of file strlcpy.c.

◆ strsep()

char* strsep ( char **  stringp,
const char *  delim 
)

Definition at line 56 of file strsep.c.

◆ sunatm_if_print()

void sunatm_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ sunrpc_print()

◆ symantec_if_print()

◆ syslog_print()

◆ tcp_print()

void tcp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2,
int  fragmented 
)

Definition at line 160 of file print-tcp.c.

References tcp_seq_hash::ack, tcp_seq_hash6::ack, tcp_seq_hash::addr, tcp_seq_hash6::addr, BEEP_PORT, beep_print(), BGP_PORT, bgp_print(), bittok2str_nosep(), CANT_CHECK_SIGNATURE, direction, domain_print(), tha::dst, tha6::dst, FALSE, FTP_PORT, ftp_print(), GET_BE_U_2, GET_BE_U_4, GET_IP6ADDR_STRING, GET_IPADDR_STRING, GET_U_1, HTTP_PORT, HTTP_PORT_ALT, http_print(), in_cksum_shouldbe(), ip6_hdr::ip6_dst, ip6_hdr::ip6_src, ip::ip_dst, ip::ip_p, ip::ip_src, IP_V, IPPROTO_TCP, IS_SRC_OR_DST_PORT, LDP_PORT, ldp_print(), LENCHECK, mptcp_print(), MSDP_PORT, msdp_print(), NAMESERVER_PORT, nbt_tcp_print(), ND_BYTES_AVAILABLE_AFTER, ND_MIN, ND_PRINT, nd_print_invalid(), nd_print_trunc(), ND_TCHECK_SIZE, nd_trunc_longjmp(), ND_TTEST_2, ND_TTEST_4, ND_TTEST_LEN, netdissect_options::ndo_error, netdissect_options::ndo_Kflag, netdissect_options::ndo_packettype, netdissect_options::ndo_protocol, netdissect_options::ndo_qflag, netdissect_options::ndo_Sflag, netdissect_options::ndo_snapend, netdissect_options::ndo_vflag, NETBIOS_SSN_PORT, NFS_PORT, nfsreply_noaddr_print(), nfsreq_noaddr_print(), tcp_seq_hash::nxt, tcp_seq_hash6::nxt, OPENFLOW_PORT_IANA, OPENFLOW_PORT_OLD, openflow_print(), tha::port, PPTP_PORT, pptp_print(), print_tcp_fastopen_option(), print_tcp_rst_data(), PT_DOMAIN, PT_RESP, PT_ZMTP1, REDIS_PORT, resp_print(), sunrpc_msg::rm_direction, sunrpc_msg::rm_xid, RPKI_RTR_PORT, rpki_rtr_print(), RTSP_PORT, RTSP_PORT_ALT, rtsp_print(), S_ERR_ND_MEM_ALLOC, tcp_seq_hash::seq, tcp_seq_hash6::seq, SIGNATURE_INVALID, SIGNATURE_VALID, SMB_PORT, smb_tcp_print(), SMTP_PORT, smtp_print(), tha::src, tha6::src, SSH_PORT, ssh_print(), SUNRPC_CALL, SUNRPC_REPLY, tcp6_cksum(), tcp_cksum(), tcp_flag_values, tcp_option_values, tcp_seq_hash4, tcp_seq_hash6, TCP_SIGLEN, TCPOPT_CC, TCPOPT_CCECHO, TCPOPT_CCNEW, TCPOPT_ECHO, TCPOPT_ECHOREPLY, TCPOPT_EOL, TCPOPT_EXPERIMENT2, TCPOPT_FASTOPEN, TCPOPT_MAXSEG, TCPOPT_MPTCP, TCPOPT_NOP, TCPOPT_SACK, TCPOPT_SACKOK, TCPOPT_SCPS, TCPOPT_SIGNATURE, TCPOPT_TCPAO, TCPOPT_TIMESTAMP, TCPOPT_UTO, TCPOPT_WSCALE, tcpport_string(), TELNET_PORT, telnet_print(), tcphdr::th_ack, TH_ACK, tcphdr::th_dport, TH_FIN, tcphdr::th_flags, TH_OFF, TH_RST, tcphdr::th_seq, tcphdr::th_sport, tcphdr::th_sum, TH_SYN, TH_URG, tcphdr::th_urp, tcphdr::th_win, tok2str(), TRUE, TSEQ_HASHSIZE, txtproto_print(), UNALIGNED_MEMCMP, UNALIGNED_MEMCPY, WHOIS_PORT, ZEROLENOPT, and zmtp1_print().

Referenced by ip_demux_print().

◆ telnet_print()

void telnet_print ( netdissect_options ndo,
const u_char *  sp,
u_int  length 
)

◆ tftp_print()

void tftp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length 
)

◆ timed_print()

◆ tipc_print()

◆ tok2str()

const char* tok2str ( const struct tok lp,
const char *  fmt,
u_int  v 
)

Definition at line 485 of file util-print.c.

References tok2strbuf(), and TOKBUFSIZE.

Referenced by action_flag(), add_addr_print(), ahcp1_body_print(), ahcp1_options_print(), aoev1_mac_print(), aoev1_print(), aoev1_query_print(), aoev1_reserve_print(), ap1394_hdr_print(), arcnet_print(), arista_ethertype_print(), arp_print(), atmarp_print(), auth_print(), bcm_li_print(), bfd_print(), bgp_attr_print(), bgp_capabilities_print(), bgp_extended_community_print(), bgp_mp_af_print(), bgp_notification_print(), bgp_open_print(), bgp_pdu_print(), bgp_print(), bgp_route_refresh_print(), bgp_update_print(), bos_print(), bos_reply_print(), brcm_tag_print(), cb_print(), cb_reply_print(), cfm_network_addr_print(), cfm_print(), chdlc_print(), clnp_print(), ctrl_body_print(), dccp_print_option(), ddp_print(), ddpskt_string(), decode_multicast_vpn(), dhcp6_print(), dhcp6opt_print(), dhcp6stcode(), dhcpv4_print(), dhcpv6_print(), dtp_print(), dvmrp_print(), eap_print(), eapol_print(), edsa_tag_print(), eigrp_print(), esis_print(), ether_type_print(), etheraddr_string(), forces_print(), forces_type_print(), fr_hdr_print(), fr_q933_print_ie_codeset_0_5(), fs_print(), fs_reply_print(), geneve_print(), genoptlv_print(), gre_print_0(), gre_print_1(), handle_chap(), handle_ctrl_proto(), handle_pap(), handle_ppp(), hncp_print_rec(), hsrp_print(), icmp6_opt_print(), icmp6_print(), icmp_print(), igrp_print(), interp_reply(), ip6_print(), ip_demux_print(), ip_print(), ipoib_hdr_print(), isis_print(), isis_print_ext_is_reach(), isis_print_ip_reach_subtlv(), isis_print_mt_capability_subtlv(), isis_print_mt_port_cap_subtlv(), isis_print_mtid(), isis_print_router_cap_subtlv(), kauth_print(), kauth_reply_print(), krb4_print(), l2tp_avp_print(), l2tp_msgtype_print(), l2tp_ppp_discon_cc_print(), l2tp_proxy_auth_type_print(), lane_print(), ldp_pdu_print(), ldp_tlv_print(), lfbselect_print(), lisp_hdr_flag(), lisp_print(), llc_print(), lldp_mgmt_addr_tlv_print(), lldp_network_addr_print(), lldp_print(), lldp_private_8021_print(), lldp_private_8023_print(), lldp_private_dcbx_print(), lldp_private_iana_print(), lldp_private_tia_print(), lmp_print(), lmp_print_data_link_subobjs(), loopback_message_print(), lspping_print(), lwapp_control_print(), lwres_print(), m3ua_print(), m3ua_tags_print(), mfr_print(), mgmt_body_print(), mldv2_report_print(), mobility_print(), mpcp_print(), nbt_udp137_print(), nfsreply_noaddr_print(), nfsreq_noaddr_print(), ns_qprint(), ns_rprint(), nsh_print(), ntp_print(), ntp_time_print(), null_hdr_print(), oam_print(), of10_actions_print(), of10_bsn_actions_print(), of10_bsn_message_print(), of10_error_print(), of10_flow_mod_print(), of10_flow_removed_print(), of10_flow_stats_reply_print(), of10_match_print(), of10_packet_in_print(), of10_packet_out_print(), of10_phy_port_print(), of10_port_mod_print(), of10_port_stats_reply_print(), of10_port_status_print(), of10_queue_get_config_reply_print(), of10_queue_get_config_request_print(), of10_queue_props_print(), of10_queue_stats_reply_print(), of10_stats_reply_print(), of10_stats_request_print(), of10_switch_config_msg_print(), of10_table_stats_reply_print(), of13_error_print(), of13_hello_elements_print(), of13_port_mod_print(), of13_port_print(), of13_port_status_print(), of13_queue_get_config_request_print(), of13_role_msg_print(), of13_switch_config_msg_print(), of13_table_mod_print(), of_vendor_name(), olsr_print(), openflow_print(), ospf6_decode_at(), ospf6_print(), ospf6_print_ls_type(), ospf_decode_lls(), ospf_decode_v2(), ospf_grace_lsa_print(), ospf_print(), ospf_print_lsa(), ospf_print_lshdr(), ospf_print_tos_metrics(), ospf_te_lsa_print(), parsefattr(), parserep(), parsestatus(), pdatacnt_print(), pflog_print(), pim_print(), pimv1_print(), pimv2_print(), pkeyitlv_print(), ppp_bsdos_if_print(), ppp_hdlc_if_print(), ppp_print(), pppoe_print(), pptp_bearer_type_print(), pptp_err_code_print(), pptp_framing_type_print(), pptp_result_code_print(), prestlv_print(), print_attr_location_information(), print_attr_num(), print_attr_operator_name(), print_attr_strange(), print_attr_string(), print_bacp_config_options(), print_btp_body(), print_ccp_config_options(), print_igmpv3_report(), print_internal(), print_ip6cp_config_options(), print_ipcp_config_options(), print_link_conf(), print_payload(), print_reason(), print_sflow_counter_generic(), print_sflow_raw_packet(), print_type_in_line(), print_vendor_attr(), prot_print(), prot_reply_print(), ptp_print_2(), q933_print(), radius_print(), recpdoptlv_print(), rfc1048_print(), rip_entry_print_v1(), rip_entry_print_v2(), rip_print(), rpki_rtr_pdu_print(), rpl_dio_print(), rpl_printopts(), rrcp_print(), rsvp_intserv_print(), rsvp_obj_print(), rsvp_print(), rx_ack_print(), rx_print(), sctp_print(), sdatailv_print(), sflow_print(), sflow_print_counter_records(), sflow_print_flow_records(), sig_print(), sll2_if_print(), sll2_print(), sll_if_print(), sll_print(), slow_marker_lacp_print(), slow_oam_print(), slow_print(), snap_print(), someip_print(), stp_print(), stp_print_config_bpdu(), stp_print_mstp_bpdu(), subtlvs_print(), sunrpc_print(), symantec_hdr_print(), syslog_print(), tag_common_print(), tcp_print(), tftp_print(), timed_print(), ubik_print(), ubik_reply_print(), udld_print(), vldb_print(), vldb_reply_print(), vol_print(), vol_reply_print(), vqp_print(), vrrp_print(), vsock_hdr_print(), vsock_virtio_hdr_print(), vtp_print(), wb_dops(), and zephyr_print().

◆ tok2strary_internal()

const char* tok2strary_internal ( const char **  lp,
int  n,
const char *  fmt,
int  v 
)

Definition at line 571 of file util-print.c.

References snprintf(), and TOKBUFSIZE.

◆ tok2strbuf()

const char* tok2strbuf ( const struct tok lp,
const char *  fmt,
u_int  v,
char *  buf,
size_t  bufsize 
)

Definition at line 462 of file util-print.c.

References tok::s, snprintf(), and tok::v.

Referenced by tok2str().

◆ token_if_print()

void token_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ token_print()

◆ ts_print()

◆ txtproto_print()

void txtproto_print ( netdissect_options ndo,
const u_char *  pptr,
u_int  len,
const char **  cmds,
u_int  flags 
)

◆ udld_print()

◆ udp_print()

void udp_print ( netdissect_options ndo,
const u_char *  bp,
u_int  length,
const u_char *  bp2,
int  fragmented,
u_int  ttl_hl 
)

Definition at line 368 of file print-udp.c.

References AHCP_PORT, ahcp_print(), AODV_PORT, aodv_print(), atalk_port, BABEL_PORT, BABEL_PORT_OLD, babel_print(), BCM_LI_PORT, bcm_li_print(), BFD_CONTROL_PORT, BFD_ECHO_PORT, BFD_LAG_PORT, BFD_MULTIHOP_PORT, bfd_print(), bootp_print(), BOOTPC_PORT, BOOTPS_PORT, CISCO_AUTORP_PORT, cisco_autorp_print(), cnfp_print(), DHCP6_CLI_PORT, dhcp6_print(), DHCP6_SERV_PORT, direction, domain_print(), FALSE, GENEVE_PORT, geneve_print(), GET_BE_U_2, GET_BE_U_4, GET_U_1, HNCP_PORT, hncp_print(), HSRP_PORT, hsrp_print(), in_cksum_shouldbe(), IP_V, IS_SRC_OR_DST_PORT, ISAKMP_PORT, ISAKMP_PORT_NATT, ISAKMP_PORT_USER1, ISAKMP_PORT_USER2, isakmp_print(), isakmp_rfc3948_print(), KERBEROS_PORT, KERBEROS_SEC_PORT, krb_print(), L2TP_PORT, l2tp_print(), lapDDP, LDP_PORT, ldp_print(), LISP_CONTROL_PORT, lisp_print(), llap_print(), LMP_PORT, lmp_print(), lspping_print(), LWAPP_CONTROL_PORT, lwapp_control_print(), LWAPP_DATA_PORT, lwapp_data_print(), LWRES_PORT, lwres_print(), MPLS_LSP_PING_PORT, MPLS_PORT, mpls_print(), MULTICASTDNS_PORT, NAMESERVER_PORT, nbt_udp137_print(), nbt_udp138_print(), ND_PRINT, nd_print_trunc(), ND_TTEST_1, ND_TTEST_2, ND_TTEST_4, ND_TTEST_LEN, netdissect_options::ndo_Kflag, netdissect_options::ndo_packettype, netdissect_options::ndo_protocol, netdissect_options::ndo_qflag, netdissect_options::ndo_snapend, netdissect_options::ndo_vflag, NETBIOS_DGRAM_PORT, NETBIOS_NS_PORT, NFS_PORT, nfsreply_noaddr_print(), nfsreply_print(), nfsreq_noaddr_print(), NTP_PORT, ntp_print(), OLSR_PORT, olsr_print(), OTV_PORT, otv_print(), pgm_print(), PT_AODV, PT_CNFP, PT_DOMAIN, PT_LMP, PT_PGM, PT_PGM_ZMTP1, PT_PTP, PT_RADIUS, PT_RPC, PT_RTCP, PT_RTP, PT_SNMP, PT_SOMEIP, PT_TFTP, PT_VAT, PT_VXLAN, PT_WB, PTP_EVENT_PORT, PTP_GENERAL_PORT, ptp_print(), RADIUS_ACCOUNTING_PORT, RADIUS_CISCO_COA_PORT, RADIUS_COA_PORT, RADIUS_NEW_ACCOUNTING_PORT, RADIUS_NEW_PORT, RADIUS_PORT, radius_print(), RIP_PORT, rip_print(), RIPNG_PORT, ripng_print(), sunrpc_msg::rm_direction, sunrpc_msg::rm_xid, rtcp_print(), rtp_print(), RX_PORT_HIGH, RX_PORT_LOW, rx_print(), SFLOW_PORT, sflow_print(), SIP_PORT, sip_print(), SNMP_PORT, snmp_print(), SNMPTRAP_PORT, SOMEIP_PORT, someip_print(), SUNRPC_CALL, SUNRPC_PORT, sunrpc_print(), SUNRPC_REPLY, SYSLOG_PORT, syslog_print(), TFTP_PORT, tftp_print(), TIMED_PORT, timed_print(), TRUE, udp6_cksum(), udp_cksum(), udpipaddr_print(), udphdr::uh_dport, udphdr::uh_sport, udphdr::uh_sum, udphdr::uh_ulen, VAT_PORT, vat_print(), VQP_PORT, vqp_print(), VXLAN_GPE_PORT, vxlan_gpe_print(), VXLAN_PORT, vxlan_print(), WB_PORT, wb_print(), ZEP_PORT, zep_print(), ZEPHYR_CLT_PORT, zephyr_print(), and ZEPHYR_SRV_PORT.

Referenced by ip_demux_print().

◆ uint2tokary_internal()

const struct tok* uint2tokary_internal ( const struct uint_tokary  dict[],
const  size_t,
const  u_int 
)

Definition at line 585 of file util-print.c.

References uint_tokary::tokary.

◆ unaligned_memcmp()

int unaligned_memcmp ( const void *  p,
const void *  q,
size_t  l 
)

Definition at line 954 of file util-print.c.

◆ unaligned_memcpy()

void unaligned_memcpy ( void *  p,
const void *  q,
size_t  l 
)

Definition at line 947 of file util-print.c.

◆ unsigned_relts_print()

void unsigned_relts_print ( netdissect_options ndo,
uint32_t  secs 
)

◆ unsupported_if_print()

void unsupported_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ usb_linux_48_byte_if_print()

void usb_linux_48_byte_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ usb_linux_64_byte_if_print()

void usb_linux_64_byte_if_print ( netdissect_options ,
const struct pcap_pkthdr *  ,
const u_char *   
)

◆ verify_crc10_cksum()

uint16_t verify_crc10_cksum ( uint16_t  accum,
const u_char *  p,
int  length 
)

Definition at line 113 of file checksum.c.

References crc10_table.

Referenced by oam_print().

◆ vjc_print()

int vjc_print ( netdissect_options ndo,
const u_char *  bp,
u_short  proto 
)

◆ vqp_print()

◆ vrrp_print()

◆ vsock_if_print()

void vsock_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  cp 
)

◆ vtp_print()

◆ vxlan_gpe_print()

◆ vxlan_print()

◆ wb_print()

◆ zep_print()

◆ zephyr_print()

◆ zmtp1_datagram_print()

void zmtp1_datagram_print ( netdissect_options ndo,
const u_char *  cp,
const  u_int 
)

◆ zmtp1_print()

void zmtp1_print ( netdissect_options ndo,
const u_char *  cp,
u_int  len 
)

Variable Documentation

◆ nd_smi_module_loaded

int nd_smi_module_loaded
extern

Definition at line 119 of file netdissect.c.

Referenced by nd_load_smi_module().