summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_memcontrol.c
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2013-12-04 10:59:31 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-12-06 01:58:14 (GMT)
commit89015c18ff34a39e4679ddd9b058e74d7dde28e7 (patch)
treec4b6ab6fa12d8158a492a61695cc584cb0080adf /net/ipv4/tcp_memcontrol.c
parentc8781cf4a309ae4d1393f5878d4e51987665898c (diff)
downloadlinux-89015c18ff34a39e4679ddd9b058e74d7dde28e7.tar.xz
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 <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_memcontrol.c')
0 files changed, 0 insertions, 0 deletions