On Fri, 2008-05-23 at 03:39 -0700, Rob Loefman wrote:
> Yes that is what I have done i.e.
> p_unitdata_req->dl_primitive=DL_UNITDATA_REQ. And my sending
> works with physical interfaces, but nothing is detected by snoop when trying
> to send on a tunnel
> interface.
Is the problem only that snoop isn't seeing your packets, or more
generally that your packets are not being sent out through the tunnel?
I suspect that it's the latter. For example, if you ping the tunnel
endpoint, do you see the echo requests using snoop? E.g.:
bash-3.2# ifconfig mytun0
mytun0: flags=2010008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4,CoS> mtu
1480 index 4
inet tunnel src 10.8.57.38 tunnel dst 10.8.48.177
tunnel hop limit 64
inet 11.0.0.1 --> 11.0.0.2 netmask ff000000
bash-3.2# snoop -d mytun0
Using device mytun0 (promiscuous mode)
11.0.0.1 -> 11.0.0.2 ICMP Echo request (ID: 37098 Sequence number: 2)
(1 encap)
11.0.0.2 -> 11.0.0.1 ICMP Echo reply (ID: 37098 Sequence number: 2) (1
encap)
11.0.0.1 -> 11.0.0.2 ICMP Echo request (ID: 37098 Sequence number: 3)
(1 encap)
11.0.0.2 -> 11.0.0.1 ICMP Echo reply (ID: 37098 Sequence number: 3) (1
encap)
If you do, then I suspect that something related to your DL_UNITDATA_REQ
is being dropped on the floor. Would you mind sharing the source code
of your application with me so that I can try it here for debugging
purposes?
-Seb