1 /* 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 14 struct 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 21 int vlan_compare(struct vlan_description *a, struct vlan_description *b); 22 #else /* CONFIG_NO_VLAN */ 23 static inline int 24 vlan_compare(struct vlan_description *a, struct vlan_description *b) 25 { 26 return 0; 27 } 28 #endif /* CONFIG_NO_VLAN */ 29 30 #endif /* VLAN_H */ 31