/Zephyr-latest/subsys/net/ip/ |
D | icmpv4.c | 95 if (net_pkt_write_u8(reply, NET_IPV4_OPTS_RR)) { in icmpv4_update_record_route() 101 if (net_pkt_write_u8(reply, opt_len + 2U)) { in icmpv4_update_record_route() 121 if (net_pkt_write_u8(reply, ptr)) { in icmpv4_update_record_route() 147 if (net_pkt_write_u8(reply, ptr + addr_len)) { in icmpv4_update_record_route() 206 if (net_pkt_write_u8(reply, NET_IPV4_OPTS_TS)) { in icmpv4_update_time_stamp() 212 if (net_pkt_write_u8(reply, opt_len + 2U)) { in icmpv4_update_time_stamp() 244 if (net_pkt_write_u8(reply, ptr)) { in icmpv4_update_time_stamp() 253 if (net_pkt_write_u8(reply, flag)) { in icmpv4_update_time_stamp() 283 if (net_pkt_write_u8(reply, ptr + new_entry_len)) { in icmpv4_update_time_stamp() 289 if (net_pkt_write_u8(reply, (overflow << 4) | flag)) { in icmpv4_update_time_stamp()
|
D | ipv6_mld.c | 93 if (net_pkt_write_u8(pkt, IPPROTO_ICMPV6) || in mld_create_packet() 94 net_pkt_write_u8(pkt, 0)) { in mld_create_packet()
|
D | icmp.c | 192 net_pkt_write_u8(pkt, (uint8_t)i); in send_icmpv4_echo_request() 316 net_pkt_write_u8(pkt, (uint8_t)i); in send_icmpv6_echo_request()
|
D | ipv6_fragment.c | 317 net_pkt_write_u8(pkt, next_hdr)) { in reassemble_packet() 616 net_pkt_write_u8(frag_pkt, NET_IPV6_NEXTHDR_FRAG) || in send_ipv6_fragment()
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 191 net_pkt_write_u8(pkt, DHCPV4_OPTIONS_MSG_TYPE); in client_prepare_test_msg() 192 net_pkt_write_u8(pkt, 1); in client_prepare_test_msg() 193 net_pkt_write_u8(pkt, type); in client_prepare_test_msg() 196 net_pkt_write_u8(pkt, DHCPV4_OPTIONS_REQ_IPADDR); in client_prepare_test_msg() 197 net_pkt_write_u8(pkt, sizeof(*requested_ip)); in client_prepare_test_msg() 202 net_pkt_write_u8(pkt, DHCPV4_OPTIONS_SERVER_ID); in client_prepare_test_msg() 203 net_pkt_write_u8(pkt, sizeof(*server_id)); in client_prepare_test_msg() 207 net_pkt_write_u8(pkt, DHCPV4_OPTIONS_REQ_LIST); in client_prepare_test_msg() 208 net_pkt_write_u8(pkt, 1); in client_prepare_test_msg() 209 net_pkt_write_u8(pkt, DHCPV4_OPTIONS_SUBNET_MASK); in client_prepare_test_msg() [all …]
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | lcp.c | 101 (void)net_pkt_write_u8(ret_pkt, LCP_OPTION_AUTH_PROTO); in lcp_auth_proto_nack() 102 (void)net_pkt_write_u8(ret_pkt, 4); in lcp_auth_proto_nack() 219 net_pkt_write_u8(pkt, MRU_OPTION_LEN); in lcp_add_mru()
|
D | ipcp.c | 36 net_pkt_write_u8(pkt, 1 + 1 + sizeof(addr->s_addr)); in ipcp_add_address() 219 (void)net_pkt_write_u8(ret_pkt, IPCP_OPTION_IP_ADDRESS); in ipcp_server_nak_ip_address() 234 (void)net_pkt_write_u8(ret_pkt, IPCP_OPTION_DNS1); in ipcp_server_nak_dns1_address() 247 (void)net_pkt_write_u8(ret_pkt, IPCP_OPTION_DNS2); in ipcp_server_nak_dns2_address()
|
D | options.c | 131 net_pkt_write_u8(ret_pkt, code); in ppp_parse_option_conf_req_unsupported() 132 net_pkt_write_u8(ret_pkt, len + sizeof(code) + sizeof(len)); in ppp_parse_option_conf_req_unsupported() 238 err = net_pkt_write_u8(pkt, info->code); in ppp_my_options_add()
|
D | ipv6cp.c | 47 net_pkt_write_u8(pkt, INTERFACE_IDENTIFIER_OPTION_LEN); in ipv6cp_add_iid()
|
/Zephyr-latest/tests/net/ppp/driver/src/ |
D | main.c | 328 net_pkt_write_u8(pkt, unescape(&ptr)); in ppp_verify_fcs() 399 net_pkt_write_u8(pkt, unescape(&ptr)); in ppp_calc_fcs()
|
/Zephyr-latest/tests/net/mld/src/ |
D | main.c | 445 ret = net_pkt_write_u8(pkt, IPPROTO_ICMPV6); in send_query() 447 ret = net_pkt_write_u8(pkt, 0); /* length (0 means 8 bytes) */ in send_query() 458 ret = net_pkt_write_u8(pkt, 1); /* padn */ in send_query() 460 ret = net_pkt_write_u8(pkt, 0); /* padn len */ in send_query()
|
/Zephyr-latest/tests/net/net_pkt/src/ |
D | main.c | 263 ret = net_pkt_write_u8(pkt, 0); in ZTEST() 1039 res = net_pkt_write_u8(pkt, 0xAA); in ZTEST() 1049 res = net_pkt_write_u8(pkt, 0xAA); in ZTEST() 1060 res = net_pkt_write_u8(pkt, 0xAA); in ZTEST() 1070 res = net_pkt_write_u8(pkt, 0xAA); in ZTEST()
|
/Zephyr-latest/subsys/modem/ |
D | modem_ppp.c | 287 if (net_pkt_write_u8(ppp->rx_pkt, byte) < 0) { in modem_ppp_process_received_byte() 300 if (net_pkt_write_u8(ppp->rx_pkt, (byte ^ MODEM_PPP_VALUE_ESCAPE)) < 0) { in modem_ppp_process_received_byte()
|
/Zephyr-latest/tests/subsys/modem/modem_ppp/src/ |
D | main.c | 162 if (net_pkt_write_u8(pkt, test_modem_ppp_prng_random(false)) < 0) { in test_modem_ppp_fill_net_pkt()
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4.c | 137 if (net_pkt_write_u8(pkt, option) || in dhcpv4_add_option_length_value() 138 net_pkt_write_u8(pkt, size) || in dhcpv4_add_option_length_value() 206 if (net_pkt_write_u8(pkt, DHCPV4_OPTIONS_END)) { in dhcpv4_add_end()
|
/Zephyr-latest/tests/net/ipv6_fragment/src/ |
D | main.c | 2335 ret = net_pkt_write_u8(pkt1, data++); in ZTEST() 2375 ret = net_pkt_write_u8(pkt2, data++); in ZTEST()
|
/Zephyr-latest/drivers/net/ |
D | ppp.c | 339 ret = net_pkt_write_u8(ppp->pkt, byte); in ppp_save_byte()
|
/Zephyr-latest/subsys/net/lib/dhcpv6/ |
D | dhcpv6.c | 203 ret = net_pkt_write_u8(pkt, type); in dhcpv6_add_header() 398 ret = net_pkt_write_u8(pkt, ia_pd->iaprefix.prefix_len); in dhcpv6_add_option_ia_pd()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | net_pkt.rst | 223 net_pkt_write_u8(pkt, &foo);
|
/Zephyr-latest/drivers/modem/ |
D | wncm14a2a.c | 835 if (net_pkt_write_u8(sock->recv_pkt, c)) { in on_cmd_sockread()
|
D | hl7800.c | 4122 if (net_pkt_write_u8(sock->recv_pkt, c)) { in sock_read()
|
/Zephyr-latest/tests/net/dhcpv6/src/ |
D | main.c | 697 ret = net_pkt_write_u8(pkt, test_preference); in set_advertise_options()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_pkt.h | 2389 static inline int net_pkt_write_u8(struct net_pkt *pkt, uint8_t data) in net_pkt_write_u8() function
|