/Zephyr-latest/samples/net/vlan/src/ |
D | main.c | 39 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/ |
D | vlan.c | 387 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 …]
|
D | CMakeLists.txt | 20 zephyr_library_sources_ifdef(CONFIG_NET_VLAN vlan.c)
|
D | ethernet.c | 285 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/ |
D | README.rst | 1 .. 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
|
D | vlan-setup-linux.sh | 46 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
|
D | CMakeLists.txt | 6 project(vlan) project
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | vlan.c | 45 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/ |
D | vlan.rst | 40 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
|
D | ethernet.rst | 13 vlan.rst
|
D | net_shell.rst | 47 "net vlan", "Show Ethernet virtual LAN information. Only available if
|
/Zephyr-latest/samples/net/sockets/txtime/ |
D | CMakeLists.txt | 9 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
|
/Zephyr-latest/tests/net/virtual/ |
D | CMakeLists.txt | 5 project(vlan) project
|
/Zephyr-latest/tests/net/vlan/ |
D | CMakeLists.txt | 5 project(vlan) project
|
/Zephyr-latest/samples/net/mdns_responder/ |
D | CMakeLists.txt | 9 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
|
/Zephyr-latest/samples/net/lldp/ |
D | README.rst | 42 :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be
|
/Zephyr-latest/samples/net/sockets/echo_client/ |
D | CMakeLists.txt | 24 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | CMakeLists.txt | 37 zephyr_library_sources_ifdef(CONFIG_NET_SHELL_VLAN_SUPPORTED vlan.c)
|
D | vlan.c | 215 SHELL_SUBCMD_ADD((net), vlan, &net_cmd_vlan,
|
/Zephyr-latest/tests/bsim/net/sockets/echo_test/ |
D | CMakeLists.txt | 32 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE ${echo_client_path}/src/vlan.c)
|
/Zephyr-latest/boards/segger/ip_k66f/ |
D | linker.ld | 31 * in tests/net/vlan/src/main.c
|
/Zephyr-latest/samples/net/gptp/ |
D | README.rst | 52 :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be 59 ./net-setup.sh -c zeth-vlan.conf
|
D | Kconfig | 10 # for vlan-setup-linux.sh script that can be used to setup the
|
/Zephyr-latest/drivers/ethernet/ |
D | Kconfig.xmc4xxx | 46 The filtering can only be done on one vlan tag. If vlan_setup() is
|
/Zephyr-latest/samples/net/sockets/echo_server/ |
D | CMakeLists.txt | 24 target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE src/vlan.c)
|