I just check the tipc code. when tipc udp enable, it hard code the INADDR_ANY as local_ip.s_addr. udp_conf.local_ip.s_addr = htonl(INADDR_ANY); [ tipc_udp_enable(), udp_media.c] it won't use the local ip in the tipc config cmd: tipc be en me udp name udp1 localip 192.168.123.101 So if tipc udp enable, it only listen 0.0.0.0:6118 netstat anp | grep 6118 udp 0 0 0.0.0.0:6118 0.0.0.0:* Is it right? Thanks.
Thank you very much for your reply. Actually, in my env, all the tipc link is created, everythink is ok. But only one thing confuse me. After enable the bearer with UDP like below: xx-0 computer: tipc be en me udp name udp1 localip 192.168.1.3 xx-1 computer tipc be en me udp name udp1 localip 192.168.1.4 In the computer , such as xx-0, TIPC will listen at 0.0.0.0:6118 netstat -anp udp 0 0 0.0.0.0:6118 0.0.0.0:* But I only hope the 192.168.1.3:6118 is listend. Thanks.
TIPC create udp socket with INADDR_ANY