1324714Scy/*
2324714Scy * hostapd / VLAN definition
3324714Scy * Copyright (c) 2015, Jouni Malinen <j@w1.fi>
4324714Scy *
5324714Scy * This software may be distributed under the terms of the BSD license.
6324714Scy * See README for more details.
7324714Scy */
8324714Scy
9324714Scy#ifndef VLAN_H
10324714Scy#define VLAN_H
11324714Scy
12324714Scy#define MAX_NUM_TAGGED_VLAN 32
13324714Scy
14324714Scystruct vlan_description {
15324714Scy	int notempty; /* 0 : no vlan information present, 1: else */
16324714Scy	int untagged; /* >0 802.1q vid */
17324714Scy	int tagged[MAX_NUM_TAGGED_VLAN]; /* first k items, ascending order */
18324714Scy};
19324714Scy
20324714Scy#ifndef CONFIG_NO_VLAN
21324714Scyint vlan_compare(struct vlan_description *a, struct vlan_description *b);
22324714Scy#else /* CONFIG_NO_VLAN */
23324714Scystatic inline int
24324714Scyvlan_compare(struct vlan_description *a, struct vlan_description *b)
25324714Scy{
26324714Scy	return 0;
27324714Scy}
28324714Scy#endif /* CONFIG_NO_VLAN */
29324714Scy
30324714Scy#endif /* VLAN_H */
31