Home
last modified time | relevance | path

Searched refs:net_pkt_write_be16 (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dipv6_mld.c103 if (net_pkt_write_be16(pkt, 0x0502) || in mld_create_packet()
104 net_pkt_write_be16(pkt, 0) || in mld_create_packet()
105 net_pkt_write_be16(pkt, 0)) { in mld_create_packet()
115 net_pkt_write_be16(pkt, 0) || in mld_create_packet()
116 net_pkt_write_be16(pkt, count)) { in mld_create_packet()
367 ret = net_pkt_write_be16(pkt, count); in send_mld_report()
/Zephyr-latest/tests/net/lib/mdns_responder/src/
Dmain.c306 res = net_pkt_write_be16(pkt, len + NET_UDPH_LEN); in send_msg()
312 res = net_pkt_write_be16(pkt, 5353); in send_msg()
315 res = net_pkt_write_be16(pkt, 5353); in send_msg()
318 res = net_pkt_write_be16(pkt, len + NET_UDPH_LEN); in send_msg()
322 res = net_pkt_write_be16(pkt, 0); in send_msg()
/Zephyr-latest/tests/net/mld/src/
Dmain.c453 ret = net_pkt_write_be16(pkt, 0x0502); /* RFC 2711 ch 2.1 */ in send_query()
455 ret = net_pkt_write_be16(pkt, 0); /* pkt contains MLD msg */ in send_query()
469 ret = net_pkt_write_be16(pkt, 3); /* maximum response code */ in send_query()
471 ret = net_pkt_write_be16(pkt, 0); /* reserved field */ in send_query()
476 ret = net_pkt_write_be16(pkt, 0); /* Resv, S, QRV and QQIC */ in send_query()
478 ret = net_pkt_write_be16(pkt, 0); /* number of addresses */ in send_query()
/Zephyr-latest/subsys/net/l2/ppp/
Dlcp.c103 return net_pkt_write_be16(ret_pkt, PPP_PAP); in lcp_auth_proto_nack()
220 return net_pkt_write_be16(pkt, ctx->lcp.my_options.mru); in lcp_add_mru()
Dfsm.c478 ret = net_pkt_write_be16(pkt, protocol); in ppp_send_pkt()
/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c336 net_pkt_write_be16(recv_pkt, buf_port_dst); in sender_iface()
337 net_pkt_write_be16(recv_pkt, buf_port_src); in sender_iface()
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c219 ret = net_pkt_write_be16(pkt, code); in dhcpv6_add_option_header()
224 ret = net_pkt_write_be16(pkt, length); in dhcpv6_add_option_header()
279 ret = net_pkt_write_be16(pkt, (uint16_t)elapsed); in dhcpv6_add_option_elapsed_time()
421 ret = net_pkt_write_be16(pkt, codes[i]); in dhcpv6_add_option_oro()
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c269 ret = net_pkt_write_be16(pkt, 0); in ZTEST()
287 ret = net_pkt_write_be16(pkt, 42); in ZTEST()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c994 net_pkt_write_be16(recv_pkt, buf_port_dst); in test_pkt_loopback()
995 net_pkt_write_be16(recv_pkt, buf_port_src); in test_pkt_loopback()
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt.rst224 net_pkt_write_be16(pkt, &ba);
/Zephyr-latest/tests/net/dhcpv6/src/
Dmain.c786 ret = net_pkt_write_be16(pkt, DHCPV6_STATUS_SUCCESS); in set_reply_options()
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h2406 static inline int net_pkt_write_be16(struct net_pkt *pkt, uint16_t data) in net_pkt_write_be16() function