summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-10-15 10:43:26 +0000
committerglebius <glebius@FreeBSD.org>2013-10-15 10:43:26 +0000
commitbc71d67cbbd8f45860c1763eb82f7de40d07538c (patch)
tree8eca2dbea6118e2b1f65e6fb0bb3d3e4ac1afec1 /sys/net/if_var.h
parentcb3115eac5997db6088dcc2e232b63bca7d19696 (diff)
downloadFreeBSD-src-bc71d67cbbd8f45860c1763eb82f7de40d07538c.zip
FreeBSD-src-bc71d67cbbd8f45860c1763eb82f7de40d07538c.tar.gz
Push some defines under _KERNEL, improve styling and comments.
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index a65f6a7..59213e7 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
OpenPOWER on IntegriCloud