All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] get a route from within c code
@ 2002-09-25 15:15 Andreani Luca
  2002-09-25 15:30 ` David Boreham
  0 siblings, 1 reply; 2+ messages in thread
From: Andreani Luca @ 2002-09-25 15:15 UTC (permalink / raw)
  To: lartc

I woluld like to know if there is a way to know the route to a destination
without asking it via console (ip route get) but from within c code.
One possible way is to make system("ip route gat xxx.xxx.xxx.xxx"), redirect
to a file and then read the file.
Is there a simpler and more efficient way?

Thanks,

Luca Andreani
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-25 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-25 15:15 [LARTC] get a route from within c code Andreani Luca
2002-09-25 15:30 ` David Boreham

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.