NanoPi Neo Core broadcast problem
Posted: Tue Dec 31, 2019 1:18 am
I use NanoPi Neo Core as target device. When I got it, it has a ubuntu 16.04 inside. I tried to compile a sample code BroadcastSender.c with broadcast function and run it. it cannot do broadcast in anyway, but the same program in PC unubtu 16.04 can do normal broadcast. Can anyone help me with this? I am new to FramdlyArm platform.
My environment is as follow. All devices are in the same network 192.168.1.0 segment.
0. router(K): 192.168.1.1 mask 255.255.255.0
1. Server(A) with 192.168.1.210 listening to udp 239.143.143.143:1349 broadcast address.
2. client(B) PC version console based ubuntu 16.04 with BroadcastSender.c
3. NanoPi Neo Core(C) embedded console based ubuntu 16.04 with BroadcastSender.c
4. Testing PC(D) with Windows10 Pro 64bit that install wireshark
(A)(B)(C)(D)(K) can connect to internet. Inside this test network 192.168.1.0,
I use (D) wireshark to listen to 239.143.143.143:1349 port. For BroadcastSender.c on (B), it works fine. Wireshark can see server(A) receive broadcast and does response. When I do the same thing to BroadcastSender.c on (C), it send out nothing. Wireshark cannot see anything.
(B) routing table is as follow
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 0 0 0 enp0s3
default _gateway 0.0.0.0 UG 100 0 0 enp0s3
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
_gateway 0.0.0.0 255.255.255.255 UH 100 0 0 enp0s3
(C) routing table is as follow
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0
Can anyone help me with this ???? Please help.
Code: Select all
http://cs.baylor.edu/~donahoo/practical/CSockets/code/BroadcastSender.c
My environment is as follow. All devices are in the same network 192.168.1.0 segment.
0. router(K): 192.168.1.1 mask 255.255.255.0
1. Server(A) with 192.168.1.210 listening to udp 239.143.143.143:1349 broadcast address.
2. client(B) PC version console based ubuntu 16.04 with BroadcastSender.c
3. NanoPi Neo Core(C) embedded console based ubuntu 16.04 with BroadcastSender.c
4. Testing PC(D) with Windows10 Pro 64bit that install wireshark
(A)(B)(C)(D)(K) can connect to internet. Inside this test network 192.168.1.0,
I use (D) wireshark to listen to 239.143.143.143:1349 port. For BroadcastSender.c on (B), it works fine. Wireshark can see server(A) receive broadcast and does response. When I do the same thing to BroadcastSender.c on (C), it send out nothing. Wireshark cannot see anything.
(B) routing table is as follow
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 0 0 0 enp0s3
default _gateway 0.0.0.0 UG 100 0 0 enp0s3
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
_gateway 0.0.0.0 255.255.255.255 UH 100 0 0 enp0s3
(C) routing table is as follow
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0
Can anyone help me with this ???? Please help.