Home
last modified time | relevance | path

Searched full:ipv6 (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/Zephyr-latest/tests/net/6lo/src/
Dmain.c41 /* IPv6 Source and Destination address
238 struct net_ipv6_hdr ipv6; member
290 TC_PRINT("Failed to read IPv6 HDR\n"); in compare_ipv6_hdr()
296 res = memcmp((uint8_t *)ipv6_hdr, (uint8_t *)&data->ipv6, in compare_ipv6_hdr()
299 TC_PRINT("Mismatch IPv6 HDR\n"); in compare_ipv6_hdr()
513 * in ipv6, udp and in data pointer too (it's required in comparison) in create_pkt()
518 data->ipv6.len = htons(len); in create_pkt()
553 .ipv6.vtc = 0x60,
554 .ipv6.tcflow = 0x00,
555 .ipv6.flow = 0x00,
[all …]
/Zephyr-latest/subsys/net/ip/
DKconfig.ipv61 # IPv6 Options
7 bool "IPv6"
10 Enable IPv6 support. This should be selected by default as there
16 int "Max number of IPv6 network interfaces in the system"
22 that will have IPv6 enabled.
25 int "Max number of unicast IPv6 addresses per network interface"
31 int "Max number of multicast IPv6 addresses per network interface"
36 int "Max number of IPv6 prefixes per network interface"
42 int "Initial IPv6 MTU value"
46 The value should normally be 1280 which is the minimum IPv6 packet
[all …]
Dipv6_pe.c2 * @brief IPv6 privacy extension (RFC 8981)
28 #include "ipv6.h"
40 /* IPv6 privacy extension (RFC 8981) constants. Note that the code uses
63 #define DESYNC_FACTOR(ipv6) ((ipv6)->desync_factor) argument
136 static bool ipv6_pe_prefix_already_exists(struct net_if_ipv6 *ipv6, in ipv6_pe_prefix_already_exists() argument
139 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_pe_prefix_already_exists()
140 if (!ipv6->unicast[i].is_used || in ipv6_pe_prefix_already_exists()
141 ipv6->unicast[i].address.family != AF_INET6 || in ipv6_pe_prefix_already_exists()
142 !ipv6->unicast[i].is_temporary || in ipv6_pe_prefix_already_exists()
143 ipv6->unicast[i].addr_state == NET_ADDR_DEPRECATED) { in ipv6_pe_prefix_already_exists()
[all …]
D6lo.c118 /* TODO: Unicast-Prefix based IPv6 Multicast(dst) address compression
259 * The Traffic Class field in the IPv6 header comprises 6 bits of
265 * IPv6 traffic class format is DSCP, ECN.
268 static uint8_t *compress_tfl(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_tfl() argument
273 tcl = ((ipv6->vtc & 0x0F) << 4) | ((ipv6->tcflow & 0xF0) >> 4); in compress_tfl()
276 if (((ipv6->tcflow & 0x0F) == 0U) && (ipv6->flow == 0U)) { in compress_tfl()
277 if (((ipv6->vtc & 0x0F) == 0U) && ((ipv6->tcflow & 0xF0) == 0U)) { in compress_tfl()
292 if (((ipv6->vtc & 0x0F) == 0U) && (ipv6->tcflow & 0x30)) { in compress_tfl()
298 inline_ptr -= sizeof(ipv6->flow); in compress_tfl()
299 memmove(inline_ptr, &ipv6->flow, sizeof(ipv6->flow)); in compress_tfl()
[all …]
Dnet_if.c37 #include "ipv6.h"
72 /* Timer that triggers IPv6 prefix lifetime */
75 /* Track currently active IPv6 prefix lifetime timers */
92 struct net_if_ipv6 ipv6; member
425 /* By default IPv4 and IPv6 are enabled for a given network interface. in init_iface()
536 * This can happen for example if we need to do IPv6 ND to figure in net_if_send_data()
748 NET_DBG("IPv6 router %s %s", in iface_router_notify_deletion()
1041 int net_if_config_ipv6_get(struct net_if *iface, struct net_if_ipv6 **ipv6) in net_if_config_ipv6_get() argument
1053 if (iface->config.ip.ipv6) { in net_if_config_ipv6_get()
1054 if (ipv6) { in net_if_config_ipv6_get()
[all …]
Dipv6.h2 @brief IPv6 data handler
38 * @brief Bitmaps for IPv6 extension header processing
84 * @brief IPv6 neighbor information.
90 /** IPv6 address. */
152 * @brief Create IPv6 packet in provided net_pkt.
155 * @param src Source IPv6 address
156 * @param dst Destination IPv6 address
178 * @brief Finalize IPv6 packet. It should be called right before
184 * @param next_header_proto Protocol type of the next header after IPv6 header.
255 * @brief Lock IPv6 Neighbor table mutex
[all …]
Droute.h61 /** IPv6 address/prefix of the route. */
64 /** IPv6 address/prefix length. */
83 * @param dst Destination IPv6 address.
106 * @param addr IPv6 address.
107 * @param prefix_len Length of the IPv6 address/prefix.
108 * @param nexthop IPv6 address of the Next hop device.
134 * @param nexthop IPv6 address of the nexthop device.
152 * @brief Get nexthop IPv6 address tied to this route.
159 * @return IPv6 address of the nexthop, NULL if not found.
197 /** IPv6 multicast group of the route. */
[all …]
D6lo.h23 * @brief Compress IPv6 packet as per RFC 6282
25 * @details After this IPv6 packet and next header(if UDP), headers
30 * @param iphc true for IPHC compression, false for IPv6 dispatch header
47 * @brief Uncompress IPv6 packet as per RFC 6282
49 * @details After this IPv6 packet and next header(if UDP), headers
72 * will be used in IPv6 header compression and uncompression.
DKconfig.stats47 bool "IPv6 statistics"
51 Keep track of IPv6 related statistics
54 bool "IPv6 statistics"
58 Keep track of IPv6 Neighbor Discovery related statistics
61 bool "IPv6 PMTU statistics"
65 Keep track of IPv6 Path MTU Discovery related statistics
80 and/or IPv6 is/are enabled.
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/
Dmain.c40 * IPv6 Source and Destination address
155 struct net_ipv6_hdr ipv6; member
262 * in ipv6, udp and in data pointer too (it's required in comparison) */ in create_pkt()
268 data->ipv6.len = htons(len); in create_pkt()
306 .ipv6.vtc = 0x60,
307 .ipv6.tcflow = 0x00,
308 .ipv6.flow = 0x00,
309 .ipv6.len = 0,
310 .ipv6.nexthdr = IPPROTO_UDP,
311 .ipv6.hop_limit = 0xff,
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_event.h44 /* IPv6 Events */
146 /** Event emitted when an IPv6 address is added to the system. */
150 /** Event emitted when an IPv6 address is removed from the system. */
154 /** Event emitted when an IPv6 multicast address is added to the system. */
158 /** Event emitted when an IPv6 multicast address is removed from the system. */
162 /** Event emitted when an IPv6 prefix is added to the system. */
166 /** Event emitted when an IPv6 prefix is removed from the system. */
170 /** Event emitted when an IPv6 multicast group is joined. */
174 /** Event emitted when an IPv6 multicast group is left. */
178 /** Event emitted when an IPv6 router is added to the system. */
[all …]
Dnet_ip.h2 * @brief IPv6 and IPv4 definitions
4 * Generic IPv6 and IPv4 address definitions.
17 * @brief IPv4/IPv6 primitives and helpers
18 * @defgroup ip_4_6 IPv4/IPv6 primitives and helpers
72 IPPROTO_IPV6 = 41, /**< IPv6 protocol */
142 /** IPv6 address struct */
145 uint8_t s6_addr[16]; /**< IPv6 address buffer */
151 /** Binary size of the IPv6 address */
181 /** Socket address struct for IPv6. */
185 struct in6_addr sin6_addr; /**< IPv6 address */
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dipv6.c14 #include "../ip/ipv6.h"
71 PR("IPv6 privacy extension %s list filters :\n", in ipv6_pe_filter_cb()
86 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in address_lifetime_cb() local
95 if (!ipv6) { in address_lifetime_cb()
96 PR("No IPv6 config found for this interface.\n"); in address_lifetime_cb()
102 ARRAY_FOR_EACH(ipv6->unicast, i) { in address_lifetime_cb()
106 if (!ipv6->unicast[i].is_used || in address_lifetime_cb()
107 ipv6->unicast[i].address.family != AF_INET6) { in address_lifetime_cb()
115 remaining = net_timeout_remaining(&ipv6->unicast[i].lifetime, in address_lifetime_cb()
119 &ipv6->unicast[i].address.in6_addr); in address_lifetime_cb()
[all …]
Devents.c100 *desc = "IPv6 address"; in get_l3_desc()
106 *desc = "IPv6 address"; in get_l3_desc()
112 *desc = "IPv6 address"; in get_l3_desc()
118 *desc = "IPv6 mcast address"; in get_l3_desc()
124 *desc = "IPv6 mcast address"; in get_l3_desc()
130 *desc = "IPv6 prefix"; in get_l3_desc()
136 *desc = "IPv6 prefix"; in get_l3_desc()
142 *desc = "IPv6 mcast"; in get_l3_desc()
148 *desc = "IPv6 mcast"; in get_l3_desc()
154 *desc = "IPv6 router"; in get_l3_desc()
[all …]
/Zephyr-latest/tests/net/ipv6/
Dtestcase.yaml4 - ipv6
11 net.ipv6:
15 net.ipv6.variable_buf_size:
21 net.ipv6.privacy_extension.prefer_public:
28 net.ipv6.privacy_extension.prefer_temporary:
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_udp.c37 BUILD_ASSERT(0, "Either IPv4 or IPv6 SMP must be enabled for the MCUmgr UDP SMP transport using "
67 struct config ipv6; member
90 return "IPv6"; in smp_udp_proto_to_name()
127 ret = zsock_sendto(smp_udp_configs.ipv6.sock, nb->data, nb->len, 0, addr, sizeof(*addr)); in smp_udp6_tx()
285 k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_open_iface()
286 k_sem_give(&smp_udp_configs.ipv6.network_ready_sem); in smp_udp_open_iface()
329 if (k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == 0 || in smp_udp_open()
331 (void)k_sem_reset(&smp_udp_configs.ipv6.network_ready_sem); in smp_udp_open()
332 create_thread(&smp_udp_configs.ipv6, "smp_udp6"); in smp_udp_open()
335 LOG_ERR("IPv6 UDP MCUmgr thread is already running"); in smp_udp_open()
[all …]
/Zephyr-latest/doc/connectivity/networking/
Deth_bridge_native_sim_setup.rst98 IPv6 not enabled for this interface.
105 Flags : AUTO_START,IPv4,IPv6
112 IPv6 unicast addresses (max 3):
115 IPv6 multicast addresses (max 4):
119 IPv6 prefixes (max 2):
121 IPv6 hop limit : 64
122 IPv6 base reachable time : 30000
123 IPv6 reachable time : 18476
124 IPv6 retransmit timer : 0
135 Flags : AUTO_START,IPv4,IPv6
[all …]
/Zephyr-latest/tests/net/ipv6_fragment/
Dtestcase.yaml5 - ipv6
8 net.ipv6.fragment:
11 net.ipv6.fragment.with_pmtu:
/Zephyr-latest/subsys/net/lib/config/
DKconfig41 bool "This application wants IPv6 support"
44 The network application needs IPv6 support to function properly.
46 in order to use IPv6.
49 bool "This application wants IPv6 router to exists"
52 The network application needs IPv6 router to exists before continuing.
54 IPv6 router advertisement message before continuing.
84 string "My IPv6 address"
89 string "Peer IPv6 address"
193 bool "Request IPv6 address when configuring DHCPv6 client"
197 request IPv6 address from the DHCPv6 server.
[all …]
/Zephyr-latest/tests/net/utils/src/
Dmain.c49 } ipv6; member
111 .ipv6.c_addr = "ff08::",
112 .ipv6.verify.s6_addr16 = { htons(0xff08), 0, 0, 0, 0, 0, 0, 0 },
118 .ipv6.c_addr = "::",
119 .ipv6.verify.s6_addr16 = { 0 },
125 .ipv6.c_addr = "ff08::1",
126 .ipv6.verify.s6_addr16 = { htons(0xff08), 0, 0, 0, 0, 0, 0, htons(1) },
132 .ipv6.c_addr = "2001:db8::1",
133 .ipv6.verify.s6_addr16 = { htons(0x2001), htons(0xdb8),
140 .ipv6.c_addr = "2001:db8::2:1",
[all …]
/Zephyr-latest/samples/net/capture/
DREADME.rst67 sit txqueuelen 1000 (IPv6-in-IPv4)
121 Flags : AUTO_START,IPv4,IPv6
123 IPv6 unicast addresses (max 4):
126 IPv6 multicast addresses (max 4):
130 IPv6 prefixes (max 2):
132 IPv6 hop limit : 64
133 IPv6 base reachable time : 30000
134 IPv6 reachable time : 43300
135 IPv6 retransmit timer : 0
144 in IPv6/UDP packets.
[all …]
/Zephyr-latest/subsys/net/l2/openthread/
Dopenthread_utils.c168 struct net_if_ipv6 *ipv6; in add_ipv6_addr_to_ot() local
172 /* IPv6 struct should've already been allocated when we get an in add_ipv6_addr_to_ot()
175 ipv6 = context->iface->config.ip.ipv6; in add_ipv6_addr_to_ot()
176 if (ipv6 == NULL) { in add_ipv6_addr_to_ot()
177 NET_ERR("No IPv6 container allocated"); in add_ipv6_addr_to_ot()
183 if (ipv6->unicast[i].is_used && in add_ipv6_addr_to_ot()
184 net_ipv6_addr_cmp(&ipv6->unicast[i].address.in6_addr, in add_ipv6_addr_to_ot()
186 if_addr = &ipv6->unicast[i]; in add_ipv6_addr_to_ot()
199 context, ipv6->unicast[i].address.in6_addr.s6_addr); in add_ipv6_addr_to_ot()
289 struct net_if_ipv6 *ipv6; in rm_ipv6_addr_from_zephyr() local
[all …]
/Zephyr-latest/samples/net/sockets/echo_async/
DREADME.rst5 Implement an asynchronous IPv4/IPv6 TCP echo server using BSD sockets and poll()
11 asynchronous IPv4/IPv6 TCP echo server using a BSD Sockets compatible API
14 supporting both IPv4 and IPv6 with concurrent connections, limiting
38 2001:db8::1 (IPv6), port 4242. The easiest way to connect is:
43 $ telnet 2001:db8::1 4242 # or this for IPv6
64 there's an additional option to set for Linux to make a socket IPv6-only).
83 $ telnet ::1 4242 # or this for IPv6
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_config.rst44 ":kconfig:option:`CONFIG_NET_CONFIG_NEED_IPV6`", "The network application needs IPv6
46 is initialized properly in order to use IPv6.
48 automatically enable IPv6."
49 ":kconfig:option:`CONFIG_NET_CONFIG_NEED_IPV6_ROUTER`", "If IPv6 is enabled, then
50 this option tells that the network application needs IPv6 router to exists
52 until it receives IPv6 router advertisement message before continuing."
53 ":kconfig:option:`CONFIG_NET_CONFIG_MY_IPV6_ADDR`","Local static IPv6 address assigned to
55 ":kconfig:option:`CONFIG_NET_CONFIG_PEER_IPV6_ADDR`","Peer static IPv6 address. This is mainly
/Zephyr-latest/samples/net/vlan/
DKconfig9 string "My IPv6 address for second interface"
33 string "My IPv6 address for third interface"
57 int "IPv6 address prefix length for the interfaces"
61 Set the IPv6 address prefix length (netmask) for the interfaces

12345678910>>...14