summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-09-24 15:01:45 +0000
committerattilio <attilio@FreeBSD.org>2010-09-24 15:01:45 +0000
commit278493a1a57074b0ff4561304d271e464a4944ef (patch)
tree761e44816c0dd4bf028f704e2614b143338f000d /sys/netinet
parent59060ff14e0dc0d4fb91766b662dfddf5c007feb (diff)
downloadFreeBSD-src-278493a1a57074b0ff4561304d271e464a4944ef.zip
FreeBSD-src-278493a1a57074b0ff4561304d271e464a4944ef.tar.gz
Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general
in the kernel (just as inet_ntoa() and inet_aton()) are and sync their prototype accordingly with already mentioned functions. Sponsored by: Sandvine Incorporated Reviewed by: emaste, rstone Approved by: dfr MFC after: 2 weeks
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index e453b69..d5e4290 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -726,6 +726,8 @@ int in_localip(struct in_addr);
int inet_aton(const char *, struct in_addr *); /* in libkern */
char *inet_ntoa(struct in_addr); /* in libkern */
char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
+char *inet_ntop(int, const void *, char *, socklen_t); /* in libkern */
+int inet_pton(int af, const char *, void *); /* in libkern */
void in_ifdetach(struct ifnet *);
#define in_hosteq(s, t) ((s).s_addr == (t).s_addr)
OpenPOWER on IntegriCloud