Lines Matching refs:proto

21 	int proto;  member
33 .test_case.proto = IPPROTO_UDP,
40 .test_case.proto = IPPROTO_UDP,
48 .test_case.proto = 0,
56 .test_case.proto = 0,
63 .test_case.proto = 0,
70 .test_case.proto = IPPROTO_UDP,
77 .test_case.proto = IPPROTO_UDP,
84 .test_case.proto = IPPROTO_UDP,
91 .test_case.proto = IPPROTO_UDP,
98 .test_case.proto = IPPROTO_UDP,
106 .test_case.proto = htons(ETH_P_ALL),
113 .test_case.proto = CAN_RAW,
120 .test_case.proto = IPPROTO_TLS_1_2,
127 .test_case.proto = IPPROTO_DTLS_1_0,
134 .test_case.proto = IPPROTO_RAW,
142 .test_case.proto = 254,
150 .test_case.proto = htons(ETH_P_IEEE802154),
157 .test_case.proto = htons(ETH_P_IEEE802154),
169 static int socket_test(int family, int type, int proto) in socket_test() argument
176 ret = net_context_get(family, type, proto, &ctx); in socket_test()
185 static int socket_test_ok(int family, int type, int proto) in socket_test_ok() argument
191 static bool is_tls(int family, int type, int proto) in is_tls() argument
194 (((proto >= IPPROTO_TLS_1_0) && (proto <= IPPROTO_TLS_1_2)) || in is_tls()
195 (proto >= IPPROTO_DTLS_1_0 && proto <= IPPROTO_DTLS_1_2))) { in is_tls()
202 static bool is_packet(int family, int type, int proto) in is_packet() argument
204 proto = ntohs(proto); in is_packet()
206 if (((type == SOCK_RAW) && (proto == ETH_P_ALL || proto == ETH_P_IEEE802154)) || in is_packet()
207 ((type == SOCK_DGRAM) && (proto > 0))) { in is_packet()
214 static bool is_can(int family, int type, int proto) in is_can() argument
216 if (type != SOCK_RAW || proto != CAN_RAW) { in is_can()
223 static bool is_ip(int family, int type, int proto) in is_ip() argument
252 expected_result[i].test_case.proto); in ZTEST()