Home
last modified time | relevance | path

Searched refs:dei (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/include/zephyr/net/
Dethernet_vlan.h91 static inline uint16_t net_eth_vlan_set_dei(uint16_t tci, bool dei) in net_eth_vlan_set_dei() argument
93 return (tci & 0xefff) | ((!!dei) << 12); in net_eth_vlan_set_dei()
Dnet_pkt.h1054 static inline void net_pkt_set_vlan_dei(struct net_pkt *pkt, bool dei) in net_pkt_set_vlan_dei() argument
1056 pkt->vlan_tci = net_eth_vlan_set_dei(pkt->vlan_tci, dei); in net_pkt_set_vlan_dei()
1096 static inline void net_pkt_set_vlan_dei(struct net_pkt *pkt, bool dei) in net_pkt_set_vlan_dei() argument
1099 ARG_UNUSED(dei); in net_pkt_set_vlan_dei()
/Zephyr-latest/tests/net/vlan/src/
Dmain.c484 bool dei; in ZTEST() local
523 dei = true; in ZTEST()
524 net_pkt_set_vlan_dei(pkt, dei); in ZTEST()
526 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
533 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
537 dei = false; in ZTEST()
538 net_pkt_set_vlan_dei(pkt, dei); in ZTEST()
540 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
547 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
554 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()