Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 10:43:26 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256522 - head/sys/net
Message-ID:  <201310151043.r9FAhQjU014917@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Oct 15 10:43:26 2013
New Revision: 256522
URL: http://svnweb.freebsd.org/changeset/base/256522

Log:
  Push some defines under _KERNEL, improve styling and comments.

Modified:
  head/sys/net/if_var.h

Modified: head/sys/net/if_var.h
==============================================================================
--- head/sys/net/if_var.h	Tue Oct 15 10:41:22 2013	(r256521)
+++ head/sys/net/if_var.h	Tue Oct 15 10:43:26 2013	(r256522)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310151043.r9FAhQjU014917>