46 u32 max_header_bytes = va_arg (*args,
u32);
48 u32 header_bytes =
sizeof (udp[0]);
51 if (max_header_bytes <
sizeof (udp[0]))
52 return format (s,
"UDP header truncated");
57 s =
format (s,
"UDP: %d -> %d",
58 clib_net_to_host_u16 (udp->
src_port),
59 clib_net_to_host_u16 (udp->
dst_port));
61 s =
format (s,
"\n%Ulength %d, checksum 0x%04x",
63 clib_net_to_host_u16 (udp->
length),
64 clib_net_to_host_u16 (udp->
checksum));
67 if (max_header_bytes != 0 && header_bytes < max_header_bytes)
79 max_header_bytes - sizeof (udp[0]));
static tcp_udp_port_info_t * ip_get_tcp_udp_port_info(ip_main_t *im, u32 port)
format_function_t * format_header