I have been trying to swallow the profusion of bpf related materials
for a bit now, and decided to punt and merely ask the questions.

A) Is it possible to attach a filter to a netlink socket (RTM_NEWROUTE
and RTM_DELROUTE primarily)

(examples?)

B) If so, can I filter on the route proto field? (easily?)

The moral equivalent is:

 ip route show proto ra

which in the case where I have a (um, very) large bgp (or babel) table
would ideally filter things down to the 16 ra routes. Similar
filtering
might include RTA_DST, or RTA_TABLE, etc.

... BSD has RTF_PROTO2, but NLM_F_MATCH for linux never landed.

...

I have a couple other things on my mind for improving flent.org's
statistics gathering in general, but that's my starting point.


-- 
Dave Täht
Let's go make home routers and wifi faster! With better software!
http://blog.cerowrt.org
_______________________________________________
iovisor-dev mailing list
[email protected]
https://lists.iovisor.org/mailman/listinfo/iovisor-dev

Reply via email to