Lines Matching refs:proto
105 fd = socket(addr->ss_family, type, opts->proto); in start_server_addr()
268 fd = socket(family, type, opts->proto); in client_socket()
363 opts.proto = protocol; in connect_to_fd()
853 u16 proto, bool ipv6, u8 pkt_type) in show_transport() argument
867 if (proto == IPPROTO_UDP) { in show_transport()
872 } else if (proto == IPPROTO_TCP) { in show_transport()
877 } else if (proto == IPPROTO_ICMP) { in show_transport()
882 } else if (proto == IPPROTO_ICMPV6) { in show_transport()
890 src_addr, dst_addr, proto); in show_transport()
896 if (proto == IPPROTO_TCP) in show_transport()
918 u_char proto; in show_ipv6_packet() local
926 proto = pkt->nexthdr; in show_ipv6_packet()
929 ifindex, src, dst, proto, true, pkt_type); in show_ipv6_packet()
937 u_char proto; in show_ipv4_packet() local
945 proto = pkt->protocol; in show_ipv4_packet()
948 ifindex, src, dst, proto, false, pkt_type); in show_ipv4_packet()
963 u16 proto; in traffic_monitor_thread() local
1008 memcpy(&proto, packet, 2); in traffic_monitor_thread()
1009 proto = ntohs(proto); in traffic_monitor_thread()
1014 if (proto == ETH_P_IPV6) { in traffic_monitor_thread()
1016 } else if (proto == ETH_P_IP) { in traffic_monitor_thread()
1026 ifname, pkt_type_str(ptype), proto); in traffic_monitor_thread()