Good day.

I am currently writing an extension module to xorp for my own use.
Basically, I want to be informed by the IGMP module whenever membership
changes. I am currently doing this through the XRL interfaces. I have
however hit a bump. The following interface calls for a vif_index to be
passed.

    add_protocol4    ? xrl_sender_name:txt                \
            & protocol_name:txt & protocol_id:u32        \
            & vif_name:txt & vif_index:u32

I can get the list of interfaces and vifs using
finder://fea/ifmgr/0.1/get_configured_interface_names and
get_configured_vif_names, respectively, but fea_ifmgr (or any other targets)
does not seem to provide a way to retrieve the corresponding vif_index of
each. Is there a way to do this?

My current options are as follows
a) Implement my module as a full-fledged ProtoNode<V>, and have my own list
of vifs
b) Hack the IGMP module to locate the vif using only the vif_name, or add a
new XRL call to do this, since ProtoNode<V>::vif_find_by_name() is
available. I do not know why redundant vif identifiers are required anyway.
This would however require changes to xorp code.

Please let me know if there are better ways. Looking forward to your reply.

-- 
pmv
random hacker
_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to