From 278493a1a57074b0ff4561304d271e464a4944ef Mon Sep 17 00:00:00 2001 From: attilio Date: Fri, 24 Sep 2010 15:01:45 +0000 Subject: 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 --- sys/netinet/in.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/netinet/in.h') 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) -- cgit v1.1