[mc1322x] Binding UDP socket to tunslip6 interface
Daniel Berenguer
dberenguer at usapiens.com
Tue Jun 29 04:06:45 EDT 2010
Thanks George! The socat test succeeded!!
I can now concentrate on making my Java/C apps work since this is
obviously not a PC-problem.
Daniel.
On 29 June 2010 09:10, George Lu <lu at goodxense.com> wrote:
> Hi Daniel,
> Socat works across all the interfaces that are up. To explicitly limit it to
> tun0, try:
> $ sudo socat -x udp6-recv:3000,so-bindtodevice=tun0 -
> Socat is very flexible. There are many examples
> on http://www.dest-unreach.org/socat/doc/socat.html.
> Have you gotten examples/ipv6/rpl-udp to work? I set one line
> in set_connection_address() to steer the udp packet to aaaa::1, then use "$
> socat udp6-recv:5678 -" on linux to see the Hello messages come in.
> static void
> set_connection_address(uip_ipaddr_t *ipaddr)
> {
> uip_ip6addr(ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 1);
> }
> George
>
> On Mon, Jun 28, 2010 at 11:33 PM, Daniel Berenguer <dberenguer at usapiens.com>
> wrote:
>>
>> Thank you very much George.
>>
>> I've followed your advice but socat is not showing any incoming
>> traffic either so I guess this is a PC-related problem.
>>
>> George, I'm guessing that socat is binding the socket to the only ipv6
>> interface available in the computer but, how could I explicitly
>> configure socat to use my "tun0" interface?
>>
>> Thanks again,
>>
>> Daniel.
>>
>
--
Daniel Berenguer
http://www.usapiens.com
http://www.opnode.org
More information about the mc1322x
mailing list