Lines Matching refs:proto
43 static int zpacket_socket(int family, int type, int proto) in zpacket_socket() argument
54 if (proto == 0) { in zpacket_socket()
56 proto = IPPROTO_RAW; in zpacket_socket()
65 proto = ntohs(proto); in zpacket_socket()
68 ret = net_context_get(family, type, proto, &ctx); in zpacket_socket()
488 static bool packet_is_supported(int family, int type, int proto) in packet_is_supported() argument
492 proto = ntohs(proto); in packet_is_supported()
493 return proto == ETH_P_ALL in packet_is_supported()
494 || proto == ETH_P_ECAT in packet_is_supported()
495 || proto == ETH_P_IEEE802154 in packet_is_supported()
496 || proto == IPPROTO_RAW; in packet_is_supported()
499 return proto > 0; in packet_is_supported()