Home
last modified time | relevance | path

Searched refs:tos (Results 1 – 13 of 13) sorted by relevance

/Zephyr-Core-3.6.0/subsys/net/ip/
Dipv4.h137 uint8_t tos,
145 uint8_t tos, in net_ipv4_create_full() argument
153 ARG_UNUSED(tos); in net_ipv4_create_full()
266 static inline uint8_t net_ipv4_get_dscp(uint8_t tos) in net_ipv4_get_dscp() argument
268 return (tos & NET_IPV4_DSCP_MASK) >> NET_IPV4_DSCP_OFFSET; in net_ipv4_get_dscp()
277 static inline void net_ipv4_set_dscp(uint8_t *tos, uint8_t dscp) in net_ipv4_set_dscp() argument
279 *tos &= ~NET_IPV4_DSCP_MASK; in net_ipv4_set_dscp()
280 *tos |= (dscp << NET_IPV4_DSCP_OFFSET) & NET_IPV4_DSCP_MASK; in net_ipv4_set_dscp()
300 static inline uint8_t net_ipv4_get_ecn(uint8_t tos) in net_ipv4_get_ecn() argument
302 return tos & NET_IPV4_ECN_MASK; in net_ipv4_get_ecn()
[all …]
Dipv4.c37 uint8_t tos, in net_ipv4_create_full() argument
51 ipv4_hdr->tos = tos; in net_ipv4_create_full()
92 uint8_t tos = 0; in net_ipv4_create() local
95 net_ipv4_set_dscp(&tos, net_pkt_ip_dscp(pkt)); in net_ipv4_create()
96 net_ipv4_set_ecn(&tos, net_pkt_ip_ecn(pkt)); in net_ipv4_create()
99 return net_ipv4_create_full(pkt, src, dst, tos, 0U, 0U, 0U); in net_ipv4_create()
272 net_pkt_set_ip_dscp(pkt, net_ipv4_get_dscp(hdr->tos)); in net_ipv4_input()
273 net_pkt_set_ip_ecn(pkt, net_ipv4_get_ecn(hdr->tos)); in net_ipv4_input()
/Zephyr-Core-3.6.0/subsys/net/lib/zperf/
Dzperf_common.c112 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, int tos, in zperf_prepare_upload_sock() argument
136 if (tos > 0) { in zperf_prepare_upload_sock()
138 &tos, sizeof(tos)) != 0) { in zperf_prepare_upload_sock()
159 if (tos >= 0) { in zperf_prepare_upload_sock()
161 &tos, sizeof(tos)) != 0) { in zperf_prepare_upload_sock()
Dzperf_shell.c739 int tos = parse_arg(&i, argc, argv); in shell_cmd_upload() local
741 if (tos < 0 || tos > UINT8_MAX) { in shell_cmd_upload()
747 param.options.tos = tos; in shell_cmd_upload()
925 int tos = parse_arg(&i, argc, argv); in shell_cmd_upload2() local
927 if (tos < 0 || tos > UINT8_MAX) { in shell_cmd_upload2()
933 param.options.tos = tos; in shell_cmd_upload2()
Dzperf_internal.h98 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, int tos,
Dzperf_tcp_uploader.c135 sock = zperf_prepare_upload_sock(&param->peer_addr, param->options.tos, in zperf_tcp_upload()
Dzperf_udp_uploader.c286 sock = zperf_prepare_upload_sock(&param->peer_addr, param->options.tos, in zperf_udp_upload()
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Dping.c40 uint8_t tos; member
268 params.tc_tos = ctx->tos; in ping_work()
366 int tos = 0; in cmd_net_ping()
414 tos = parse_arg(&i, argc, argv); in cmd_net_ping()
415 if (tos < 0 || tos > UINT8_MAX) { in cmd_net_ping()
450 ping_ctx.tos = tos; in cmd_net_ping()
/Zephyr-Core-3.6.0/include/zephyr/net/
Dzperf.h38 uint8_t tos; member
Dnet_ip.h488 uint8_t tos; member
/Zephyr-Core-3.6.0/subsys/net/l2/virtual/ipip/
Dipip.c117 return ipv4_hdr->tos; in ipv4_get_tos()
125 uint8_t tos = 0; in interface_send() local
134 tos = ipv4_get_tos(pkt); in interface_send()
209 tos, 0U, NET_IPV4_DF, in interface_send()
/Zephyr-Core-3.6.0/tests/net/ipv4_fragment/src/
Dmain.c211 zassert_equal(hdr->tos, orig_hdr[offsetof(struct net_ipv4_hdr, tos)], in check_ipv4_fragment_header()
383 zassert_equal(hdr->tos, ipv4_udp[offsetof(struct net_ipv4_hdr, tos)], in udp_data_received()
464 zassert_equal(hdr->tos, ipv4_tcp[offsetof(struct net_ipv4_hdr, tos)], in tcp_data_received()
/Zephyr-Core-3.6.0/tests/net/net_pkt/src/
Dmain.c548 ip_hdr->tos = 0x00; in ZTEST()