/Zephyr-latest/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 | 39 uint8_t tos, in net_ipv4_create_full() argument 53 ipv4_hdr->tos = tos; in net_ipv4_create_full() 94 uint8_t tos = 0; in net_ipv4_create() local 98 net_ipv4_set_dscp(&tos, net_pkt_ip_dscp(pkt)); in net_ipv4_create() 99 net_ipv4_set_ecn(&tos, net_pkt_ip_ecn(pkt)); in net_ipv4_create() 106 return net_ipv4_create_full(pkt, src, dst, tos, 0U, flags, 0U); in net_ipv4_create() 280 net_pkt_set_ip_dscp(pkt, net_ipv4_get_dscp(hdr->tos)); in net_ipv4_input() 281 net_pkt_set_ip_ecn(pkt, net_ipv4_get_ecn(hdr->tos)); in net_ipv4_input()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_common.c | 112 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, uint8_t 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_tcp_uploader.c | 135 sock = zperf_prepare_upload_sock(¶m->peer_addr, param->options.tos, in zperf_tcp_upload() 161 sock = zperf_prepare_upload_sock(¶m.peer_addr, param.options.tos, in tcp_upload_async_work()
|
D | zperf_shell.c | 857 int tos = parse_arg(&i, argc, argv); in shell_cmd_upload() local 859 if (tos < 0 || tos > UINT8_MAX) { in shell_cmd_upload() 865 param.options.tos = tos; in shell_cmd_upload() 1090 int tos = parse_arg(&i, argc, argv); in shell_cmd_upload2() local 1092 if (tos < 0 || tos > UINT8_MAX) { in shell_cmd_upload2() 1098 param.options.tos = tos; in shell_cmd_upload2()
|
D | zperf_internal.h | 106 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, uint8_t tos,
|
D | zperf_udp_uploader.c | 307 sock = zperf_prepare_upload_sock(¶m->peer_addr, param->options.tos, in zperf_udp_upload()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | transport.c | 106 uint8_t tos; in transport_udp_ipv4_open() local 125 if (zsock_getsockopt(socket, IPPROTO_IP, IP_TOS, &tos, &length)) { in transport_udp_ipv4_open() 126 tos = 0; in transport_udp_ipv4_open() 129 tos &= ~0xFC; in transport_udp_ipv4_open() 130 tos |= CONFIG_PTP_DSCP_VALUE << 2; in transport_udp_ipv4_open() 131 length = sizeof(tos); in transport_udp_ipv4_open() 133 if (zsock_setsockopt(socket, IPPROTO_IP, IP_TOS, &tos, length)) { in transport_udp_ipv4_open()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | ping.c | 40 uint8_t tos; member 270 params.tc_tos = ctx->tos; in ping_work() 368 int tos = 0; in cmd_net_ping() 416 tos = parse_arg(&i, argc, argv); in cmd_net_ping() 417 if (tos < 0 || tos > UINT8_MAX) { in cmd_net_ping() 452 ping_ctx.tos = tos; in cmd_net_ping()
|
/Zephyr-latest/include/zephyr/net/ |
D | zperf.h | 45 uint8_t tos; member
|
D | net_ip.h | 569 uint8_t tos; member
|
/Zephyr-latest/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-latest/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 131 return ipv4_hdr->tos; in ipv4_get_tos() 139 uint8_t tos = 0; in interface_send() local 148 tos = ipv4_get_tos(pkt); in interface_send() 223 tos, 0U, NET_IPV4_DF, in interface_send()
|
/Zephyr-latest/tests/net/net_pkt/src/ |
D | main.c | 548 ip_hdr->tos = 0x00; in ZTEST()
|