LCOV - code coverage report
Current view: top level - src/ap - ndisc_snoop.h (source / functions) Hit Total Coverage
Test: wpa_supplicant/hostapd combined for hwsim test run 1443382998 Lines: 4 6 66.7 %
Date: 2015-09-27 Functions: 2 3 66.7 %

          Line data    Source code
       1             : /*
       2             :  * Neighbor Discovery snooping for Proxy ARP
       3             :  * Copyright (c) 2014, Qualcomm Atheros, Inc.
       4             :  *
       5             :  * This software may be distributed under the terms of the BSD license.
       6             :  * See README for more details.
       7             :  */
       8             : 
       9             : #ifndef NDISC_SNOOP_H
      10             : #define NDISC_SNOOP_H
      11             : 
      12             : #if defined(CONFIG_PROXYARP) && defined(CONFIG_IPV6)
      13             : 
      14             : int ndisc_snoop_init(struct hostapd_data *hapd);
      15             : void ndisc_snoop_deinit(struct hostapd_data *hapd);
      16             : void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta);
      17             : 
      18             : #else /* CONFIG_PROXYARP && CONFIG_IPV6 */
      19             : 
      20           0 : static inline int ndisc_snoop_init(struct hostapd_data *hapd)
      21             : {
      22           0 :         return 0;
      23             : }
      24             : 
      25         373 : static inline void ndisc_snoop_deinit(struct hostapd_data *hapd)
      26             : {
      27         373 : }
      28             : 
      29         482 : static inline void sta_ip6addr_del(struct hostapd_data *hapd,
      30             :                                    struct sta_info *sta)
      31             : {
      32         482 : }
      33             : 
      34             : #endif /* CONFIG_PROXYARP && CONFIG_IPV6 */
      35             : 
      36             : #endif /* NDISC_SNOOP_H */

Generated by: LCOV version 1.10