summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-09-29 03:23:44 +0000
committerjlemon <jlemon@FreeBSD.org>2001-09-29 03:23:44 +0000
commit17d77e934622c40b38b3ea7e9d9486bf6c67f15f (patch)
tree091b8f79b7b11be3575beb9da2c81c7da171d9cf /sys/netinet/in.h
parent420d4edc40d7c01a1b518636ee82a20d85ad87fc (diff)
downloadFreeBSD-src-17d77e934622c40b38b3ea7e9d9486bf6c67f15f.zip
FreeBSD-src-17d77e934622c40b38b3ea7e9d9486bf6c67f15f.tar.gz
Centralize satosin(), sintosa() and ifatoia() macros in <netinet/in.h>
Remove local definitions.
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index a80877d..9ea89cd 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -477,6 +477,10 @@ int in_localaddr __P((struct in_addr));
char *inet_ntoa __P((struct in_addr)); /* in libkern */
char *inet_ntoa_r __P((struct in_addr ina, char *buf)); /* in libkern */
+#define satosin(sa) ((struct sockaddr_in *)(sa))
+#define sintosa(sin) ((struct sockaddr *)(sin))
+#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
+
#endif
#endif
OpenPOWER on IntegriCloud