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

          Line data    Source code
       1             : /*
       2             :  * DHCP 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 DHCP_SNOOP_H
      10             : #define DHCP_SNOOP_H
      11             : 
      12             : #ifdef CONFIG_PROXYARP
      13             : 
      14             : int dhcp_snoop_init(struct hostapd_data *hapd);
      15             : void dhcp_snoop_deinit(struct hostapd_data *hapd);
      16             : 
      17             : #else /* CONFIG_PROXYARP */
      18             : 
      19           0 : static inline int dhcp_snoop_init(struct hostapd_data *hapd)
      20             : {
      21           0 :         return 0;
      22             : }
      23             : 
      24         373 : static inline void dhcp_snoop_deinit(struct hostapd_data *hapd)
      25             : {
      26         373 : }
      27             : 
      28             : #endif /* CONFIG_PROXYARP */
      29             : 
      30             : #endif /* DHCP_SNOOP_H */

Generated by: LCOV version 1.10