OpenVPN
Functions
vlan.h File Reference
#include "buffer.h"
#include "mroute.h"
#include "openvpn.h"
Include dependency graph for vlan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int16_t vlan_decapsulate (const struct context *c, struct buffer *buf)
 
bool vlan_is_tagged (const struct buffer *buf)
 
void vlan_process_outgoing_tun (struct multi_context *m, struct multi_instance *mi)
 

Function Documentation

◆ vlan_decapsulate()

int16_t vlan_decapsulate ( const struct context c,
struct buffer buf 
)

◆ vlan_is_tagged()

bool vlan_is_tagged ( const struct buffer buf)

Definition at line 266 of file vlan.c.

References BLEN, BPTR, OPENVPN_ETH_P_8021Q, openvpn_8021qhdr::tpid, and vlanhdr_get_vid().

Referenced by multi_process_incoming_link().

◆ vlan_process_outgoing_tun()

void vlan_process_outgoing_tun ( struct multi_context m,
struct multi_instance mi 
)