summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 12:40:32 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 12:40:32 +0100
commitc86a48ce405f5aa8911ffb290c3e0d03077b5cae (patch)
treef3ff9bae3eb55cd841b62bc8383a57f32d9bf22c
parent4253eaffd2d17a8ae1026e3068985fb8d39feab0 (diff)
downloadecon-c86a48ce405f5aa8911ffb290c3e0d03077b5cae.zip
econ-c86a48ce405f5aa8911ffb290c3e0d03077b5cae.tar.gz
econ-c86a48ce405f5aa8911ffb290c3e0d03077b5cae.tar.bz2
econfind: Actually set ip address for easysearch header
-rw-r--r--econfind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/econfind.c b/econfind.c
index 79e6de2..29f9651 100644
--- a/econfind.c
+++ b/econfind.c
@@ -63,6 +63,8 @@ main(int argc, char *argv[])
sfd = bind_socket(SOCK_DGRAM, inet_ntoa(in), STR(ECON_PORTNUMBER));
epkt_init(&pkt, E_CMD_EASYSEARCH);
+ set_ip(pkt.hdr.IPaddress, sock_get_ipv4_addr(sfd));
+
if (epkt_send(cfd, &pkt) < 0)
exit(EXIT_FAILURE);