summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/wpa/src/ap/vlan.h
blob: af84929decdc4bb8957005fa51a2b1aa2f5833ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * 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

#define MAX_NUM_TAGGED_VLAN 32

struct vlan_description {
	int notempty; /* 0 : no vlan information present, 1: else */
	int untagged; /* >0 802.1q vid */
	int tagged[MAX_NUM_TAGGED_VLAN]; /* first k items, ascending order */
};

#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 */