From 3fffa8c8ff84532a4b6b106242d1bf69231037df Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 15 Oct 2013 10:43:26 +0000 Subject: [PATCH] Push some defines under _KERNEL, improve styling and comments. --- sys/net/if_var.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/net/if_var.h b/sys/net/if_var.h index a65f6a730417..59213e7a7dc0 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -808,17 +808,17 @@ struct ifaddr { }; #endif +#ifdef _KERNEL #define IFA_ROUTE RTF_UP /* route installed */ -#define IFA_RTSELF RTF_HOST /* loopback route to self installed */ +#define IFA_RTSELF RTF_HOST /* loopback route to self installed */ -/* for compatibility with other BSDs */ +/* For compatibility with other BSDs. SCTP uses it. */ #define ifa_list ifa_link -#ifdef _KERNEL struct ifaddr * ifa_alloc(size_t size, int flags); void ifa_free(struct ifaddr *ifa); void ifa_ref(struct ifaddr *ifa); -#endif +#endif /* _KERNEL */ /* * Multicast address structure. This is analogous to the ifaddr