mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 22:51:55 +00:00
implement inet_lnaof, inet_netof, and inet_makeaddr
also move all legacy inet_* functions into a single file to avoid wasting object file and compile time overhead on them. the added functions are legacy interfaces for working with classful ipv4 network addresses. they have no modern usefulness whatsoever, but some programs unconditionally use them anyway, and they're tiny.
This commit is contained in:
@ -29,7 +29,10 @@ char *inet_ntoa (struct in_addr);
|
||||
int inet_pton (int, const char *__restrict, void *__restrict);
|
||||
const char *inet_ntop (int, const void *__restrict, char *__restrict, socklen_t);
|
||||
|
||||
int inet_aton (const char *, struct in_addr *); /* nonstandard but widely used */
|
||||
int inet_aton (const char *, struct in_addr *);
|
||||
struct in_addr inet_makeaddr(int, int);
|
||||
in_addr_t inet_lnaof(struct in_addr);
|
||||
in_addr_t inet_netof(struct in_addr);
|
||||
|
||||
#undef INET_ADDRSTRLEN
|
||||
#undef INET6_ADDRSTRLEN
|
||||
|
Reference in New Issue
Block a user