在QNX目标板上,“ ifconfig”和“路线显示”如下。
[ICAS3-QVMHOST /]#ifconfig
lo0:标志= 8049 mtu 33136
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128`enter code here`
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
pflog0:标志= 0 mtu 33136
vp0:标志= 8802 mtu 1500
capabilities rx=1f<IP4CSUM,TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM>
capabilities tx=7e<TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM,TSO4,TSO6▒▒▒2▒01▒229▒▒3▒$(▒▒▒▒&▒!(▒▒▒▒&▒*"(▒▒▒▒&▒!(▒▒▒▒&▒*"▒6CSUM>
enabled tx=0
address: 70:b3:d5:92:7a:82
media: Ethernet autoselect
status: active
ntn_vp0:标志= 8943 mtu 1500
capabilities rx=1f<IP4CSUM,TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM>
capabilities tx=7e<TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM,TSO4,TSO6>
enabled rx=1f<IP4CSUM,TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM>
enabled tx=0
address: a0:b0:c0:d0:e5:ff
media: Ethe▒2:▒▒▒toselect
status: active
inet6 fe80::a2b0:c0ff:fed0:e5ff%ntn_vp0 prefixlen 64 scopeid 0x22
eth0:flags = 8943 mtu 1500
address: 70:b3:d5:92:7a:81
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::72b3:d5ff:fe92:7a81%eth0 prefixlen 64 scopeid 0x23
vlan0:标志= 8c43
address: 70:b3:d5:92:7a:81
inet6 fe80::72b3:d5ff:fe92:7a81%vlan0 prefixlen 64 scopeid 0x24
inet6 fd53:7cb8:383:3::73 prefixlen 64
bridge0:标志= 41
en0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
address: 00:00:00:00:02:d9
media: Ethernet autoselect (none)
status: no carrier
inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::200:ff:fe00:2d9%en0 prefixlen 64 scopeid 0x26
,并且路由表状态如下。
[ICAS3-QVMHOST /]#路线展示
路由表
Internet: 目标网关标志 默认192.168.0.2 UG 127.0.0.1 127.0.0.1 UH 192.168.0.0/24链接#35 U 0 192.168.0.0/24链接#38 U 192.168.0.2 70:b3:d5:92:7a:81 UHL 192.168.0.7链接#35 UHL 192.168.0.10链接#35 UHRL
Internet6:
目标网关F8ags
::1 ::1 UH
fd53:7cb8:383:3:: link#36 U
fd53:7cb8:383:3::73 70:b3:d5:92:7a:81 UHL
fe80::%lo0 fe80::1%lo0 U
fe80::1%lo0 link#1 UHL
fe80::%ntn_vp0 link#34 U
fe80::a2b0:c0ff:fed0:e5ff%ntn_vp0 a0:b0:c0:d0:e5:ff UHL
fe80::%eth0 link#35 U
fe80::72b3:d5ff:fe92:7a81%eth0 70:b3:d5:92:7a:81 UHL
fe80::%vlan0 link#36 U
fe80::72b3:d5ff:fe92:7a81%vlan0 70:b3:d5:92:7a:81 UHL
fe80::%en0 link#38 U
fe80::200:ff:fe00:2d9%en0 00:00:00:00:02:d9 UHL
ff01:1:: ::1 U
ff01:22:: link#34 U
ff01:23:: link#35 U
ff01:24:: link#36 U
ff01:26:: link#38 U
ff02::%lo0 ::1 U
ff02::%ntn_vp0 link#34 U
ff02::%eth0 link#35 U
ff02::%vlan0 link#36 U
ff02::%en0 link#38 U
ff14::1:50 fd53:7cb8:383:3::73 UGH
ff14::4:0 fd53:7cb8:383:3::73 UGH
我的问题: 如果PC程序发送目标地址为'ff14 :: 4:0'的UDP数据包,
[ICAS3-QVMHOST /]# tcpdump port 42514 &
[1] 958491
tcpdump: WARNING: ntn_vp0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ntn_vp0, link-type EN10MB (Ethernet), capture size 96 bytes
[ICAS3-QVMHOST /]#
[ICAS3-QVMHOST /]#
[ICAS3-QVMHOST /]#
[ICAS3-QVMHOST /]# 00:06:37.716407 IP6 fe80::5590:52bc:8027:3856.62610 > ff14::4:0.42514: UDP, length 7
但是,我的服务器应用程序无法从PC接收UDP数据包。
如果QNX上的我的客户端应用程序发送了一个目标地址为“ ff14 :: 4:0”的UDP数据包,则我的服务器应用程序可以接收该UDP数据包。
为什么我的服务器应用程序无法从PC程序接收UDP数据包? 为什么我的服务器应用程序可以从我的客户端应用程序接收UDP数据包? 两个客户端都发送相同的目标地址(“ ff14 :: 4:0”)UDP数据包...
帮我!!我对NETWORK程序开发真的很陌生... T.T