summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-17 09:02:21 +0000
committerDenis Vlasenko2008-03-17 09:02:21 +0000
commit081eb71ebd7954a67287816a9a6fff80e8c5319a (patch)
tree963536f5609d23c6b0f9a31cd4a17dc629fe0842 /include
parent68404f13d4bf4826e3609703dad5375763db28ab (diff)
downloadbusybox-081eb71ebd7954a67287816a9a6fff80e8c5319a.zip
busybox-081eb71ebd7954a67287816a9a6fff80e8c5319a.tar.gz
dnsd: properly set _src_ IP:port on outgoing UDP packets
function old new delta send_to_from - 258 +258 dnsd_main 1500 1568 +68 interrupt 17 19 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 328/0) Total: 328 bytes text data bss dec hex filename 797101 658 7428 805187 c4943 busybox_old 797429 658 7428 805515 c4a8b busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index ee1ef51..df8b0ec 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -476,10 +476,12 @@ struct hostent *xgethostbyname(const char *name);
void socket_want_pktinfo(int fd);
ssize_t send_to_from(int fd, void *buf, size_t len, int flags,
- const struct sockaddr *from, const struct sockaddr *to,
+ const struct sockaddr *to,
+ const struct sockaddr *from,
socklen_t tolen);
ssize_t recv_from_to(int fd, void *buf, size_t len, int flags,
- struct sockaddr *from, struct sockaddr *to,
+ struct sockaddr *from,
+ struct sockaddr *to,
socklen_t sa_size);
char *xstrdup(const char *s);