From: dingtianhong Date: Wed, 4 Dec 2013 10:59:31 +0000 (+0800) Subject: bonding: add arp_ip_target checks when install the module X-Git-Tag: v3.13-rc4~3^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89015c18ff34a39e4679ddd9b058e74d7dde28e7;p=pandora-kernel.git bonding: add arp_ip_target checks when install the module When I install the bonding with the wrong arp_ip_target, just like arp_ip_target=500.500.500.500, the arp_ip_target was transfored to 245.245.245.244 and stored in the ip target success, it is uncorrect, so I add checks to avoid adding wrong address. The in4_pton() will set wrong ip address to 0.0.0.0 and return 0, also use the micro IS_IP_TARGET_UNUSABLE_ADDRESS to simplify the code. Signed-off-by: Ding Tianhong Signed-off-by: David S. Miller --- Reading git-diff-tree failed