summaryrefslogtreecommitdiff
path: root/net/tipc/topsrv.h
diff options
context:
space:
mode:
authorHoang Le <hoang.h.le@dektech.com.au>2018-10-11 04:43:08 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-16 07:56:56 +0300
commitacad76a5f6165dc451c5f35edb35d77def1f2e15 (patch)
tree5147882333c6af295ec14678704799e64a55fc0a /net/tipc/topsrv.h
parent1986647c2fc369b1865fb9bc9a213b48444580cb (diff)
downloadlinux-acad76a5f6165dc451c5f35edb35d77def1f2e15.tar.xz
tipc: support binding to specific ip address when activating UDP bearer
INADDR_ANY is hard-coded when activating UDP bearer. So, we could not bind to a specific IP address even with replicast mode using - given remote ip address instead of using multicast ip address. In this commit, we fixed it by checking and switch to use appropriate local ip address. before: $netstat -plu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address udp 0 0 **0.0.0.0:6118** 0.0.0.0:* after: $netstat -plu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address udp 0 0 **10.0.0.2:6118** 0.0.0.0:* Acked-by: Ying Xue <ying.xue@windriver.com> Acked-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/topsrv.h')
0 files changed, 0 insertions, 0 deletions