Home
last modified time | relevance | path

Searched refs:vlan (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/samples/net/vlan/src/
Dmain.c39 static int setup_iface(struct net_if *iface, struct net_if *vlan, in setup_iface() argument
59 ifaddr = net_if_ipv6_addr_add(vlan, &addr6, in setup_iface()
63 ipv6_addr, vlan); in setup_iface()
71 if (!net_if_ipv6_prefix_add(vlan, &netaddr6, in setup_iface()
77 vlan); in setup_iface()
88 ifaddr = net_if_ipv4_addr_add(vlan, &addr4, in setup_iface()
92 ipv4_addr, vlan); in setup_iface()
104 net_if_ipv4_set_netmask_by_addr(vlan, &addr4, &nm); in setup_iface()
108 LOG_DBG("Interface %p VLAN tag %d setup done.", vlan, vlan_tag); in setup_iface()
/Zephyr-latest/subsys/net/l2/ethernet/
Dvlan.c387 struct vlan_context *vlan; in net_eth_vlan_enable() local
412 vlan = get_vlan(iface, tag); in net_eth_vlan_enable()
413 if (vlan != NULL) { in net_eth_vlan_enable()
420 vlan = get_vlan(NULL, tag); in net_eth_vlan_enable()
421 if (vlan != NULL) { in net_eth_vlan_enable()
434 vlan = vlan_ctx[i]; in net_eth_vlan_enable()
435 vlan->tag = tag; in net_eth_vlan_enable()
437 if (!enable_vlan_iface(vlan, iface)) { in net_eth_vlan_enable()
442 i, vlan->tag, net_if_get_by_iface(vlan->iface), vlan->iface, in net_eth_vlan_enable()
448 setup_link_address(vlan); in net_eth_vlan_enable()
[all …]
DCMakeLists.txt20 zephyr_library_sources_ifdef(CONFIG_NET_VLAN vlan.c)
Dethernet.c285 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in ethernet_recv()
607 hdr_vlan->vlan.tpid = htons(NET_ETH_PTYPE_VLAN); in ethernet_fill_header()
608 hdr_vlan->vlan.tci = htons(net_pkt_vlan_tci(pkt)); in ethernet_fill_header()
/Zephyr-latest/samples/net/vlan/
DREADME.rst1 .. zephyr:code-sample:: vlan
14 :zephyr_file:`samples/net/vlan`.
25 :ref:`networking_with_eth_qemu`. You can use :file:`zeth-vlan.conf` configuration
30 ./net-setup.sh -c zeth-vlan.conf
38 :zephyr-app: samples/net/vlan
44 The default configuration file :zephyr_file:`samples/net/vlan/prj.conf` creates
53 The :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that
54 can be executed on the Linux host. It creates two VLAN interfaces ``vlan.100``
55 and ``vlan.200`` on the Linux host and creates routes to Zephyr.
68 tag 100 set to them. The vlan tag 200 will be set to network packets to
Dvlan-setup-linux.sh46 ip link add link ${IFACE} name ${VLAN_NAME_PREFIX}.100 type vlan id 100
47 ip link add link ${IFACE} name ${VLAN_NAME_PREFIX}.200 type vlan id 200
DCMakeLists.txt6 project(vlan) project
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dvlan.c45 static int setup_iface(struct net_if *iface, struct net_if *vlan, in setup_iface() argument
65 ifaddr = net_if_ipv6_addr_add(vlan, &addr6, in setup_iface()
69 ipv6_addr, vlan); in setup_iface()
80 ifaddr = net_if_ipv4_addr_add(vlan, &addr4, in setup_iface()
84 ipv4_addr, vlan); in setup_iface()
96 net_if_ipv4_set_netmask_by_addr(vlan, &addr4, &nm); in setup_iface()
100 LOG_DBG("Interface %p VLAN tag %d setup done.", vlan, vlan_tag); in setup_iface()
/Zephyr-latest/doc/connectivity/networking/api/
Dvlan.rst40 See also the :zephyr:code-sample:`VLAN sample application <vlan>` for API usage
42 :zephyr_file:`samples/net/vlan`.
44 The net-shell module contains *net vlan add* and *net vlan del* commands
Dethernet.rst13 vlan.rst
Dnet_shell.rst47 "net vlan", "Show Ethernet virtual LAN information. Only available if
/Zephyr-latest/samples/net/sockets/txtime/
DCMakeLists.txt9 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
/Zephyr-latest/tests/net/virtual/
DCMakeLists.txt5 project(vlan) project
/Zephyr-latest/tests/net/vlan/
DCMakeLists.txt5 project(vlan) project
/Zephyr-latest/samples/net/mdns_responder/
DCMakeLists.txt9 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
/Zephyr-latest/samples/net/lldp/
DREADME.rst42 :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be
/Zephyr-latest/samples/net/sockets/echo_client/
DCMakeLists.txt24 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
/Zephyr-latest/subsys/net/lib/shell/
DCMakeLists.txt37 zephyr_library_sources_ifdef(CONFIG_NET_SHELL_VLAN_SUPPORTED vlan.c)
Dvlan.c215 SHELL_SUBCMD_ADD((net), vlan, &net_cmd_vlan,
/Zephyr-latest/tests/bsim/net/sockets/echo_test/
DCMakeLists.txt32 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE ${echo_client_path}/src/vlan.c)
/Zephyr-latest/boards/segger/ip_k66f/
Dlinker.ld31 * in tests/net/vlan/src/main.c
/Zephyr-latest/samples/net/gptp/
DREADME.rst52 :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be
59 ./net-setup.sh -c zeth-vlan.conf
DKconfig10 # for vlan-setup-linux.sh script that can be used to setup the
/Zephyr-latest/drivers/ethernet/
DKconfig.xmc4xxx46 The filtering can only be done on one vlan tag. If vlan_setup() is
/Zephyr-latest/samples/net/sockets/echo_server/
DCMakeLists.txt24 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)

12