blob: af84929decdc4bb8957005fa51a2b1aa2f5833ef [file] [log] [blame]
Dmitry Shmidt57c2d392016-02-23 13:40:19 -08001/*
2 * hostapd / VLAN definition
3 * Copyright (c) 2015, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef VLAN_H
10#define VLAN_H
11
12#define MAX_NUM_TAGGED_VLAN 32
13
14struct vlan_description {
15 int notempty; /* 0 : no vlan information present, 1: else */
16 int untagged; /* >0 802.1q vid */
17 int tagged[MAX_NUM_TAGGED_VLAN]; /* first k items, ascending order */
18};
19
20#ifndef CONFIG_NO_VLAN
21int vlan_compare(struct vlan_description *a, struct vlan_description *b);
22#else /* CONFIG_NO_VLAN */
23static inline int
24vlan_compare(struct vlan_description *a, struct vlan_description *b)
25{
26 return 0;
27}
28#endif /* CONFIG_NO_VLAN */
29
30#endif /* VLAN_H */