X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/c910b4d9d2451126ae3917b931cd4390c11e1d52..7e4a7d3939db04e70062ae6c7bf24b8c8b2f5a7c:/bsd/netinet/in.h?ds=sidebyside diff --git a/bsd/netinet/in.h b/bsd/netinet/in.h index 0fcbd52d1..d3283958f 100644 --- a/bsd/netinet/in.h +++ b/bsd/netinet/in.h @@ -442,7 +442,7 @@ struct ip_opts { #define IP_TRAFFIC_MGT_BACKGROUND 65 /* int*; get background IO flags; set background IO */ #ifdef PRIVATE -#define IP_FORCE_OUT_IFP 69 /* deprecated; use IP_BOUND_IF instead */ +#define IP_FORCE_OUT_IFP 69 /* deprecated; use IP_BOUND_IF instead */ #endif /* Background socket configuration flags */ @@ -612,7 +612,7 @@ extern u_short in_addword(u_short, u_short); extern u_short in_pseudo(u_int, u_int, u_int); extern int in_localaddr(struct in_addr); -extern u_long in_netof(struct in_addr); +extern u_int32_t in_netof(struct in_addr); extern int inaddr_local(struct in_addr); #endif /* KERNEL_PRIVATE */ @@ -622,4 +622,14 @@ extern int inaddr_local(struct in_addr); extern const char *inet_ntop(int, const void *, char *, socklen_t); /* in libkern */ #endif /* KERNEL */ +#ifndef KERNEL +#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) +__BEGIN_DECLS +int bindresvport(int, struct sockaddr_in *); +struct sockaddr; +int bindresvport_sa(int, struct sockaddr *); +__END_DECLS +#endif +#endif + #endif /* _NETINET_IN_H_ */