Re: [libdnet-devel] intf.get_dst() problem on OSX
Status: Abandoned
Brought to you by:
dugsong
From: Dug S. <du...@mo...> - 2006-01-23 16:25:34
|
hrm, i see the same behaviour - works fine on win32, but OpenBSD and Linux both return loopback also. looks like a connect() to 0.0.0.0 always returns 127.0.0.1 from getsockname() on Unix. :-/ until i figure out how to account for this, you might explicitly look up the default route this way instead: gw =3D dnet.route().get(dnet.addr('0.0.0.0/0')) dnet.intf().get_dst(gw) -d. -- http://monkey.org/~dugsong/ |