diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-13 12:40:32 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-13 12:40:32 +0100 |
commit | c86a48ce405f5aa8911ffb290c3e0d03077b5cae (patch) | |
tree | f3ff9bae3eb55cd841b62bc8383a57f32d9bf22c | |
parent | 4253eaffd2d17a8ae1026e3068985fb8d39feab0 (diff) | |
download | econ-c86a48ce405f5aa8911ffb290c3e0d03077b5cae.tar.gz econ-c86a48ce405f5aa8911ffb290c3e0d03077b5cae.tar.bz2 econ-c86a48ce405f5aa8911ffb290c3e0d03077b5cae.zip |
econfind: Actually set ip address for easysearch header
-rw-r--r-- | econfind.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |