LCOV - code coverage report
Current view: top level - src/ap - vlan_init.h (source / functions) Hit Total Coverage
Test: wpa_supplicant/hostapd combined for hwsim test run 1475438200 Lines: 4 8 50.0 %
Date: 2016-10-02 Functions: 2 4 50.0 %

          Line data    Source code
       1             : /*
       2             :  * hostapd / VLAN initialization
       3             :  * Copyright 2003, Instant802 Networks, Inc.
       4             :  * Copyright 2005, Devicescape Software, Inc.
       5             :  *
       6             :  * This software may be distributed under the terms of the BSD license.
       7             :  * See README for more details.
       8             :  */
       9             : 
      10             : #ifndef VLAN_INIT_H
      11             : #define VLAN_INIT_H
      12             : 
      13             : #ifndef CONFIG_NO_VLAN
      14             : int vlan_init(struct hostapd_data *hapd);
      15             : void vlan_deinit(struct hostapd_data *hapd);
      16             : struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
      17             :                                        struct hostapd_vlan *vlan,
      18             :                                        int vlan_id,
      19             :                                        struct vlan_description *vlan_desc);
      20             : int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
      21             : #else /* CONFIG_NO_VLAN */
      22         612 : static inline int vlan_init(struct hostapd_data *hapd)
      23             : {
      24         612 :         return 0;
      25             : }
      26             : 
      27         613 : static inline void vlan_deinit(struct hostapd_data *hapd)
      28             : {
      29         613 : }
      30             : 
      31             : static inline struct hostapd_vlan *
      32           0 : vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan,
      33             :                  int vlan_id, struct vlan_description *vlan_desc)
      34             : {
      35           0 :         return NULL;
      36             : }
      37             : 
      38           0 : static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
      39             : {
      40           0 :         return -1;
      41             : }
      42             : #endif /* CONFIG_NO_VLAN */
      43             : 
      44             : #endif /* VLAN_INIT_H */

Generated by: LCOV version 1.10