aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 10:20:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 10:20:27 +0200
commit47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f (patch)
treea84db8f0215526b9728f2f2b94214100e853a98c /networking/udhcp/common.h
parent1f363a086779152ab04067e81484b8bb69e4af72 (diff)
downloadbusybox-w32-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.tar.gz
busybox-w32-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.tar.bz2
busybox-w32-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.zip
udhcpd: don't fail ARP check if returned MAC matches client's one
Also, do not unicast replies to yiaddr. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r--networking/udhcp/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 5a258c064..ca96847a7 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -92,7 +92,11 @@ int udhcp_read_interface(const char *interface, int *ifindex, uint32_t *addr, ui
92int udhcp_raw_socket(int ifindex) FAST_FUNC; 92int udhcp_raw_socket(int ifindex) FAST_FUNC;
93int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC; 93int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC;
94/* Returns 1 if no reply received */ 94/* Returns 1 if no reply received */
95int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface) FAST_FUNC; 95int arpping(uint32_t test_ip,
96 const uint8_t *safe_mac,
97 uint32_t from_ip,
98 uint8_t *from_mac,
99 const char *interface) FAST_FUNC;
96 100
97#if ENABLE_UDHCP_DEBUG 101#if ENABLE_UDHCP_DEBUG
98# define DEBUG(str, args...) bb_info_msg("### " str, ## args) 102# define DEBUG(str, args...) bb_info_msg("### " str, ## args)