[erlang-questions] default gateway
Wed Feb 15 22:27:30 CET 2012
I am in the middle of os:cmd implementation. It looks ugly for me :-)
ICMP ping sound reasonable but I've never tried a RAW sockets in erlang.
Do you have any hints about them?
On Feb 15, 2012, at 11:22 PM, Gleb Peregud wrote:
> On Wed, Feb 15, 2012 at 22:15, Dmitry Kolesnikov <dmkolesnikov@REDACTED> wrote:
>> do you have any idea, how to get a default gateway using erlang native code?
>> I know how to handle it through external program
> A bit convoluted solution would be to send ICMP ping to "the Internet"
> with TTL equal to one and receive a response. Of course it can get
> messy in multiple ways, but it'll be "native" Erlang code.
> Are you interested in cross-platform solution? Or do you want to avoid
> spawning port (or using os:cmd) ?
> Gleb Peregud
More information about the erlang-questions