2016-01-21 14:51:56 +01:00
|
|
|
/*
|
|
|
|
* hostapd / VLAN definition
|
|
|
|
* Copyright (c) 2015, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VLAN_H
|
|
|
|
#define VLAN_H
|
|
|
|
|
2016-01-21 14:51:57 +01:00
|
|
|
#define MAX_NUM_TAGGED_VLAN 32
|
|
|
|
|
2016-01-21 14:51:56 +01:00
|
|
|
struct vlan_description {
|
|
|
|
int notempty; /* 0 : no vlan information present, 1: else */
|
|
|
|
int untagged; /* >0 802.1q vid */
|
2016-01-21 14:51:57 +01:00
|
|
|
int tagged[MAX_NUM_TAGGED_VLAN]; /* first k items, ascending order */
|
2016-01-21 14:51:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifndef CONFIG_NO_VLAN
|
|
|
|
int vlan_compare(struct vlan_description *a, struct vlan_description *b);
|
|
|
|
#else /* CONFIG_NO_VLAN */
|
|
|
|
static inline int
|
|
|
|
vlan_compare(struct vlan_description *a, struct vlan_description *b)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_NO_VLAN */
|
|
|
|
|
|
|
|
#endif /* VLAN_H */
|