mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
6d9ea24611
return value. Went thru callers and adjusted them - code got smaller too. function old new delta ip_port_str - 126 +126 INET6_rresolve 165 182 +17 static.cache 20 24 +4 route_main 2092 2091 -1 INET_sprint 61 59 -2 INET_nn 4 - -4 INET6_sprint 59 53 -6 udp_do_one 518 508 -10 tcp_do_one 433 423 -10 raw_do_one 494 484 -10 traceroute_main 4117 4105 -12 INET_rresolve 334 321 -13 bb_displayroutes 494 456 -38 snprint_ip_port 244 - -244 static.buff 264 16 -248 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/10 up/down: 147/-598) Total: -451 bytes size busybox_old busybox_unstripped text data bss dec hex filename 751073 3048 14688 768809 bbb29 busybox_old 750873 3048 14440 768361 bb969 busybox_unstripped
27 lines
783 B
C++
27 lines
783 B
C++
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* stolen from net-tools-1.59 and stripped down for busybox by
|
|
* Erik Andersen <andersen@codepoet.org>
|
|
*
|
|
* Heavily modified by Manuel Novoa III Mar 12, 2001
|
|
*
|
|
*/
|
|
|
|
#include "platform.h"
|
|
|
|
/* hostfirst!=0 If we expect this to be a hostname,
|
|
try hostname database first
|
|
*/
|
|
int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst);
|
|
|
|
/* numeric: & 0x8000: "default" instead of "*",
|
|
* & 0x4000: host instead of net,
|
|
* & 0x0fff: don't resolve
|
|
*/
|
|
|
|
int INET6_resolve(const char *name, struct sockaddr_in6 *sin6);
|
|
|
|
/* These return malloced string */
|
|
char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask);
|
|
char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric);
|