Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 25 of 1124) sorted by relevance

12345678910>>...45

/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
136 if ( eth_is_llc_packet ( ethhdr ) ) { in eth_pull()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
136 if ( eth_is_llc_packet ( ethhdr ) ) { in eth_pull()
[all …]
/dports/emulators/qemu-utils/qemu-4.2.1/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
136 if ( eth_is_llc_packet ( ethhdr ) ) { in eth_pull()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
136 if ( eth_is_llc_packet ( ethhdr ) ) { in eth_pull()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
63 len_msb = *( ( uint8_t * ) &ethhdr->h_protocol ); in eth_is_llc_packet()
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
[all …]
/dports/net/ipxe/ipxe-2265a65/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
63 len_msb = *( ( uint8_t * ) &ethhdr->h_protocol ); in eth_is_llc_packet()
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
[all …]
/dports/emulators/qemu/qemu-6.2.0/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
63 len_msb = *( ( uint8_t * ) &ethhdr->h_protocol ); in eth_is_llc_packet()
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
[all …]
/dports/emulators/qemu60/qemu-6.0.0/roms/ipxe/src/net/
H A Dethernet.c55 static inline int eth_is_llc_packet ( struct ethhdr *ethhdr ) { in eth_is_llc_packet() argument
63 len_msb = *( ( uint8_t * ) &ethhdr->h_protocol ); in eth_is_llc_packet()
80 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
83 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
85 ethhdr->h_protocol = net_proto; in eth_push()
104 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
119 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
122 *ll_dest = ethhdr->h_dest; in eth_pull()
123 *ll_source = ethhdr->h_source; in eth_pull()
124 *net_proto = ethhdr->h_protocol; in eth_pull()
[all …]
/dports/net/hostapd/hostapd-2.9/src/ap/
H A Dpreauth_auth.c48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local
58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive()
63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
93 len - sizeof(*ethhdr)); in rsn_preauth_receive()
235 struct l2_ethhdr *ethhdr; in rsn_preauth_send() local
250 ethhdr = os_malloc(sizeof(*ethhdr) + len); in rsn_preauth_send()
251 if (ethhdr == NULL) in rsn_preauth_send()
257 os_memcpy(ethhdr + 1, buf, len); in rsn_preauth_send()
260 sizeof(*ethhdr) + len) < 0) { in rsn_preauth_send()
[all …]
/dports/net/hostapd-devel/hostap-14ab4a816/src/ap/
H A Dpreauth_auth.c48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local
58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive()
63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
93 len - sizeof(*ethhdr)); in rsn_preauth_receive()
235 struct l2_ethhdr *ethhdr; in rsn_preauth_send() local
250 ethhdr = os_malloc(sizeof(*ethhdr) + len); in rsn_preauth_send()
251 if (ethhdr == NULL) in rsn_preauth_send()
257 os_memcpy(ethhdr + 1, buf, len); in rsn_preauth_send()
260 sizeof(*ethhdr) + len) < 0) { in rsn_preauth_send()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/emulators/qemu/qemu-6.2.0/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/security/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dpreauth_auth.c48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local
58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive()
63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
93 len - sizeof(*ethhdr)); in rsn_preauth_receive()
235 struct l2_ethhdr *ethhdr; in rsn_preauth_send() local
250 ethhdr = os_malloc(sizeof(*ethhdr) + len); in rsn_preauth_send()
251 if (ethhdr == NULL) in rsn_preauth_send()
257 os_memcpy(ethhdr + 1, buf, len); in rsn_preauth_send()
260 sizeof(*ethhdr) + len) < 0) { in rsn_preauth_send()
[all …]
/dports/security/wpa_supplicant-devel/hostap-14ab4a816/src/ap/
H A Dpreauth_auth.c48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local
58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive()
63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
93 len - sizeof(*ethhdr)); in rsn_preauth_receive()
235 struct l2_ethhdr *ethhdr; in rsn_preauth_send() local
250 ethhdr = os_malloc(sizeof(*ethhdr) + len); in rsn_preauth_send()
251 if (ethhdr == NULL) in rsn_preauth_send()
257 os_memcpy(ethhdr + 1, buf, len); in rsn_preauth_send()
260 sizeof(*ethhdr) + len) < 0) { in rsn_preauth_send()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/net/ipxe/ipxe-2265a65/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/emulators/qemu-utils/qemu-4.2.1/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/net/wpa_supplicant_gui/wpa_supplicant-2.9/src/ap/
H A Dpreauth_auth.c48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local
58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive()
63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
93 len - sizeof(*ethhdr)); in rsn_preauth_receive()
235 struct l2_ethhdr *ethhdr; in rsn_preauth_send() local
250 ethhdr = os_malloc(sizeof(*ethhdr) + len); in rsn_preauth_send()
251 if (ethhdr == NULL) in rsn_preauth_send()
257 os_memcpy(ethhdr + 1, buf, len); in rsn_preauth_send()
260 sizeof(*ethhdr) + len) < 0) { in rsn_preauth_send()
[all …]
/dports/emulators/qemu60/qemu-6.0.0/roms/ipxe/src/core/
H A Dgdbudp.c67 struct ethhdr *ethhdr; in gdbudp_recv() local
79 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
82 ethhdr = iob->data; in gdbudp_recv()
83 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
105 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
106 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
137 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
165 struct ethhdr *ethhdr; in gdbudp_send() local
205 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
206 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/sysutils/syslinux/syslinux-6.03/gpxe/src/core/
H A Dgdbudp.c60 struct ethhdr *ethhdr; in gdbudp_recv() local
72 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv()
75 ethhdr = iob->data; in gdbudp_recv()
76 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
98 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv()
99 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
130 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv()
158 struct ethhdr *ethhdr; in gdbudp_send() local
198 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_send()
199 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send()
[all …]
/dports/sysutils/syslinux/syslinux-6.03/gpxe/src/net/
H A Dethernet.c56 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local
59 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push()
60 memcpy ( ethhdr->h_source, ll_source, ETH_ALEN ); in eth_push()
61 ethhdr->h_protocol = net_proto; in eth_push()
79 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local
82 if ( iob_len ( iobuf ) < sizeof ( *ethhdr ) ) { in eth_pull()
89 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull()
92 *ll_dest = ethhdr->h_dest; in eth_pull()
93 *ll_source = ethhdr->h_source; in eth_pull()
94 *net_proto = ethhdr->h_protocol; in eth_pull()
/dports/security/openvpn-devel/openvpn-0033811e0215af76f469d78912c95a2f59813454/src/openvpn/
H A Dvlan.c87 struct openvpn_ethhdr *ethhdr; in vlan_decapsulate() local
91 if (BLEN(buf) < sizeof(*ethhdr)) in vlan_decapsulate()
96 ethhdr = (struct openvpn_ethhdr *)BPTR(buf); in vlan_decapsulate()
97 if (ethhdr->proto != htons(OPENVPN_ETH_P_8021Q)) in vlan_decapsulate()
104 ntohs(ethhdr->proto)); in vlan_decapsulate()
167 ethhdr = memmove(BPTR(buf), vlanhdr, sizeof(*ethhdr)); in vlan_decapsulate()
169 ethhdr->proto = proto; in vlan_decapsulate()
190 const struct openvpn_ethhdr *ethhdr; in vlan_encapsulate() local
193 if (BLEN(buf) < sizeof(*ethhdr)) in vlan_encapsulate()
240 uint16_t proto = ethhdr->proto; in vlan_encapsulate()
[all …]
/dports/security/openvpn-mbedtls/openvpn-2.5.6/src/openvpn/
H A Dvlan.c87 struct openvpn_ethhdr *ethhdr; in vlan_decapsulate() local
91 if (BLEN(buf) < sizeof(*ethhdr)) in vlan_decapsulate()
96 ethhdr = (struct openvpn_ethhdr *)BPTR(buf); in vlan_decapsulate()
97 if (ethhdr->proto != htons(OPENVPN_ETH_P_8021Q)) in vlan_decapsulate()
104 ntohs(ethhdr->proto)); in vlan_decapsulate()
167 ethhdr = memmove(BPTR(buf), vlanhdr, sizeof(*ethhdr)); in vlan_decapsulate()
169 ethhdr->proto = proto; in vlan_decapsulate()
190 const struct openvpn_ethhdr *ethhdr; in vlan_encapsulate() local
193 if (BLEN(buf) < sizeof(*ethhdr)) in vlan_encapsulate()
240 uint16_t proto = ethhdr->proto; in vlan_encapsulate()
[all …]

12345678910>>...45