Home
last modified time | relevance | path

Searched refs:net_pkt_write_u8 (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dicmpv4.c95 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()
Dipv6_mld.c93 if (net_pkt_write_u8(pkt, IPPROTO_ICMPV6) || in mld_create_packet()
94 net_pkt_write_u8(pkt, 0)) { in mld_create_packet()
Dicmp.c192 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()
Dipv6_fragment.c317 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/
Dmain.c191 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/
Dlcp.c101 (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()
Dipcp.c36 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()
Doptions.c131 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()
Dipv6cp.c47 net_pkt_write_u8(pkt, INTERFACE_IDENTIFIER_OPTION_LEN); in ipv6cp_add_iid()
/Zephyr-latest/tests/net/ppp/driver/src/
Dmain.c328 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/
Dmain.c445 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/
Dmain.c263 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/
Dmodem_ppp.c287 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/
Dmain.c162 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/
Ddhcpv4.c137 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/
Dmain.c2335 ret = net_pkt_write_u8(pkt1, data++); in ZTEST()
2375 ret = net_pkt_write_u8(pkt2, data++); in ZTEST()
/Zephyr-latest/drivers/net/
Dppp.c339 ret = net_pkt_write_u8(ppp->pkt, byte); in ppp_save_byte()
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c203 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/
Dnet_pkt.rst223 net_pkt_write_u8(pkt, &foo);
/Zephyr-latest/drivers/modem/
Dwncm14a2a.c835 if (net_pkt_write_u8(sock->recv_pkt, c)) { in on_cmd_sockread()
Dhl7800.c4122 if (net_pkt_write_u8(sock->recv_pkt, c)) { in sock_read()
/Zephyr-latest/tests/net/dhcpv6/src/
Dmain.c697 ret = net_pkt_write_u8(pkt, test_preference); in set_advertise_options()
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h2389 static inline int net_pkt_write_u8(struct net_pkt *pkt, uint8_t data) in net_pkt_write_u8() function