/* * Copyright (c) 2001-2005 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'clnt-gen'. * * $XORP: xorp/xrl/interfaces/redist6_xif.hh,v 1.8 2005/03/25 02:54:53 pavlin Exp $ */ #ifndef __XRL_INTERFACES_REDIST6_XIF_HH__ #define __XRL_INTERFACES_REDIST6_XIF_HH__ #undef XORP_LIBRARY_NAME #define XORP_LIBRARY_NAME "XifRedist6" #include "libxorp/xlog.h" #include "libxorp/callback.hh" #include "libxipc/xrl.hh" #include "libxipc/xrl_error.hh" #include "libxipc/xrl_sender.hh" class XrlRedist6V0p1Client { public: XrlRedist6V0p1Client(XrlSender* s) : _sender(s) {} virtual ~XrlRedist6V0p1Client() {} typedef XorpCallback1<void, const XrlError&>::RefPtr AddRouteCB; /** * Send Xrl intended to: * * * @param tgt_name Xrl Target name * * @param dst destination network. * * @param nexthop nexthop router address. * * @param ifname interface name associated with nexthop. * * @param vifname virtual interface name with nexthop. * * @param metric origin routing protocol metric for route. * * @param admin_distance administrative distance of origin routing * protocol. * * @param cookie value set by the requestor to identify redistribution * source. Typical value is the originating protocol name. */ bool send_add_route( const char* target_name, const IPv6Net& dst, const IPv6& nexthop, const string& ifname, const string& vifname, const uint32_t& metric, const uint32_t& admin_distance, const string& cookie, const AddRouteCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteRouteCB; bool send_delete_route( const char* target_name, const IPv6Net& network, const string& cookie, const DeleteRouteCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr StartingRouteDumpCB; /** * Send Xrl intended to: * * When route redistribution begins, the receiver is sent the existing * list of routes. This message marks the beginning of the routes being * sent. * * @param tgt_name Xrl Target name * * @param cookie value set by the requestor to identify redistribution * source. Typical value is the originating protocol name. */ bool send_starting_route_dump( const char* target_name, const string& cookie, const StartingRouteDumpCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr FinishingRouteDumpCB; /** * Send Xrl intended to: * * When route redistribution begins, the receiver is sent the existing * list of routes. This message marks the end of the existing routes being * sent. * * @param tgt_name Xrl Target name * * @param cookie value set by the requestor to identify redistribution * source. Typical value is the originating protocol name. */ bool send_finishing_route_dump( const char* target_name, const string& cookie, const FinishingRouteDumpCB& cb ); protected: XrlSender* _sender; private: void unmarshall_add_route( const XrlError& e, XrlArgs* a, AddRouteCB cb ); void unmarshall_delete_route( const XrlError& e, XrlArgs* a, DeleteRouteCB cb ); void unmarshall_starting_route_dump( const XrlError& e, XrlArgs* a, StartingRouteDumpCB cb ); void unmarshall_finishing_route_dump( const XrlError& e, XrlArgs* a, FinishingRouteDumpCB cb ); }; #endif /* __XRL_INTERFACES_REDIST6_XIF_HH__ */