Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way to obtain flags of the routing table through any API?

  1. Netlink socket doesn't show any place for flags.
  2. After checking route command's source code in net-tools it seems that it reads route from proc filesystem, i am wary of doing this, as it seems to be OS flavor dependent.
share|improve this question

closed as off topic by Seth, AgentCool, vasa1, Eric Carvalho, hhlp Mar 9 '13 at 11:03

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
From your question, I infer you're after an OS flavour independent way of getting the information, but you don't mention the language and you post it in AskUbuntu, instead of serverfault or programming. You might have more luck there. –  Marcin Kaminski Oct 18 '12 at 1:25
    
I think you are correct, i shall repost it there. –  NulledPointer Oct 18 '12 at 1:53
add comment

Browse other questions tagged or ask your own question.