/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | ipv4.h | 137 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 …]
|
D | ipv4.c | 37 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/ |
D | zperf_common.c | 112 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()
|
D | zperf_shell.c | 739 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()
|
D | zperf_internal.h | 98 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, int tos,
|
D | zperf_tcp_uploader.c | 135 sock = zperf_prepare_upload_sock(¶m->peer_addr, param->options.tos, in zperf_tcp_upload()
|
D | zperf_udp_uploader.c | 286 sock = zperf_prepare_upload_sock(¶m->peer_addr, param->options.tos, in zperf_udp_upload()
|
/Zephyr-Core-3.6.0/subsys/net/lib/shell/ |
D | ping.c | 40 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/ |
D | zperf.h | 38 uint8_t tos; member
|
D | net_ip.h | 488 uint8_t tos; member
|
/Zephyr-Core-3.6.0/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 117 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/ |
D | main.c | 211 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/ |
D | main.c | 548 ip_hdr->tos = 0x00; in ZTEST()
|