Discussion:
route get fails
Pawel Pekala
2013-08-24 11:42:23 UTC
Permalink
Hi,

For some time now I get this:

[corn:~]> route get
route: writing to routing socket: Invalid argument

Is this just my build or anyone can confirm this?
--
pozdrawiam / with regards
Paweł Pękala
Kimmo Paasiala
2013-08-24 12:30:32 UTC
Permalink
Post by Pawel Pekala
Hi,
[corn:~]> route get
route: writing to routing socket: Invalid argument
Is this just my build or anyone can confirm this?
--
pozdrawiam / with regards
Paweł Pękala
Nothing wrong there, you're not providing a required argument that is
the destination IP address. In my opinion route(8) should return a
proper error message in this case. OS X route(8) behaves exactly the
same BTW.

-Kimmo
Joe Holden
2013-08-27 13:17:10 UTC
Permalink
Post by Kimmo Paasiala
Post by Pawel Pekala
Hi,
[corn:~]> route get
route: writing to routing socket: Invalid argument
Is this just my build or anyone can confirm this?
--
pozdrawiam / with regards
Paweł Pękala
Nothing wrong there, you're not providing a required argument that is
the destination IP address. In my opinion route(8) should return a
proper error message in this case. OS X route(8) behaves exactly the
same BTW.
-Kimmo
You probably want netstat -rnfinet[6] here, judging from your surprise
that 'route get' returns the above.
Kurt Jaeger
2013-08-27 13:21:45 UTC
Permalink
Hi!
Post by Pawel Pekala
[corn:~]> route get
route: writing to routing socket: Invalid argument
Is this just my build or anyone can confirm this?
A patch for route to display a more useful error message:

http://www.freebsd.org/cgi/query-pr.cgi?pr=181532
--
***@opsec.eu +49 171 3101372 7 years to go !
Loading...