xorp

fea_firewall_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/fea_firewall_xif.hh
00003  * vim:set sts=4 ts=8 ft=cpp:
00004  *
00005  * Copyright (c) 2001-2010 XORP, Inc and Others
00006  * See the XORP LICENSE.lgpl file for licensing, conditions, and warranties
00007  * on use.
00008  *
00009  * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED
00010  *
00011  * Generated by 'clnt-gen'.
00012  */
00013 
00014 #ifndef __XRL_INTERFACES_FEA_FIREWALL_XIF_HH__
00015 #define __XRL_INTERFACES_FEA_FIREWALL_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifFeaFirewall"
00019 
00020 #include "libxorp/xlog.h"
00021 #include "libxorp/callback.hh"
00022 
00023 #include "libxipc/xrl.hh"
00024 #include "libxipc/xrl_error.hh"
00025 #include "libxipc/xrl_sender.hh"
00026 
00027 //#include <memory>
00028 
00029 class XrlFeaFirewallV0p1Client {
00030 public:
00031     XrlFeaFirewallV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlFeaFirewallV0p1Client() {}
00033 
00034     typedef XorpCallback2<void, const XrlError&, const uint32_t*>::RefPtr StartTransactionCB;
00042     bool send_start_transaction(
00043     const char* dst_xrl_target_name,
00044     const StartTransactionCB&   cb
00045     );
00046 
00047     typedef XorpCallback1<void, const XrlError&>::RefPtr CommitTransactionCB;
00057     bool send_commit_transaction(
00058     const char* dst_xrl_target_name,
00059     const uint32_t& tid,
00060     const CommitTransactionCB&  cb
00061     );
00062 
00063     typedef XorpCallback1<void, const XrlError&>::RefPtr AbortTransactionCB;
00073     bool send_abort_transaction(
00074     const char* dst_xrl_target_name,
00075     const uint32_t& tid,
00076     const AbortTransactionCB&   cb
00077     );
00078 
00079     typedef XorpCallback1<void, const XrlError&>::RefPtr AddEntry4CB;
00113     bool send_add_entry4(
00114     const char* dst_xrl_target_name,
00115     const uint32_t& tid,
00116     const uint32_t& rule_number,
00117     const string&   ifname,
00118     const string&   vifname,
00119     const IPv4Net&  src_network,
00120     const IPv4Net&  dst_network,
00121     const uint32_t& ip_protocol,
00122     const uint32_t& src_port_begin,
00123     const uint32_t& src_port_end,
00124     const uint32_t& dst_port_begin,
00125     const uint32_t& dst_port_end,
00126     const string&   action,
00127     const AddEntry4CB&  cb
00128     );
00129 
00130     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceEntry4CB;
00164     bool send_replace_entry4(
00165     const char* dst_xrl_target_name,
00166     const uint32_t& tid,
00167     const uint32_t& rule_number,
00168     const string&   ifname,
00169     const string&   vifname,
00170     const IPv4Net&  src_network,
00171     const IPv4Net&  dst_network,
00172     const uint32_t& ip_protocol,
00173     const uint32_t& src_port_begin,
00174     const uint32_t& src_port_end,
00175     const uint32_t& dst_port_begin,
00176     const uint32_t& dst_port_end,
00177     const string&   action,
00178     const ReplaceEntry4CB&  cb
00179     );
00180 
00181     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteEntry4CB;
00212     bool send_delete_entry4(
00213     const char* dst_xrl_target_name,
00214     const uint32_t& tid,
00215     const uint32_t& rule_number,
00216     const string&   ifname,
00217     const string&   vifname,
00218     const IPv4Net&  src_network,
00219     const IPv4Net&  dst_network,
00220     const uint32_t& ip_protocol,
00221     const uint32_t& src_port_begin,
00222     const uint32_t& src_port_end,
00223     const uint32_t& dst_port_begin,
00224     const uint32_t& dst_port_end,
00225     const DeleteEntry4CB&   cb
00226     );
00227 
00228     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteAllEntries4CB;
00238     bool send_delete_all_entries4(
00239     const char* dst_xrl_target_name,
00240     const uint32_t& tid,
00241     const DeleteAllEntries4CB&  cb
00242     );
00243 
00244     typedef XorpCallback3<void, const XrlError&, const uint32_t*, const bool*>::RefPtr GetEntryListStart4CB;
00252     bool send_get_entry_list_start4(
00253     const char* dst_xrl_target_name,
00254     const GetEntryListStart4CB& cb
00255     );
00256 
00257     typedef XorpCallback13<void, const XrlError&, const uint32_t*, const string*, const string*, const IPv4Net*, const IPv4Net*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const string*, const bool*>::RefPtr GetEntryListNext4CB;
00267     bool send_get_entry_list_next4(
00268     const char* dst_xrl_target_name,
00269     const uint32_t& token,
00270     const GetEntryListNext4CB&  cb
00271     );
00272 
00273     typedef XorpCallback1<void, const XrlError&>::RefPtr AddEntry6CB;
00307     bool send_add_entry6(
00308     const char* dst_xrl_target_name,
00309     const uint32_t& tid,
00310     const uint32_t& rule_number,
00311     const string&   ifname,
00312     const string&   vifname,
00313     const IPv6Net&  src_network,
00314     const IPv6Net&  dst_network,
00315     const uint32_t& ip_protocol,
00316     const uint32_t& src_port_begin,
00317     const uint32_t& src_port_end,
00318     const uint32_t& dst_port_begin,
00319     const uint32_t& dst_port_end,
00320     const string&   action,
00321     const AddEntry6CB&  cb
00322     );
00323 
00324     typedef XorpCallback1<void, const XrlError&>::RefPtr ReplaceEntry6CB;
00358     bool send_replace_entry6(
00359     const char* dst_xrl_target_name,
00360     const uint32_t& tid,
00361     const uint32_t& rule_number,
00362     const string&   ifname,
00363     const string&   vifname,
00364     const IPv6Net&  src_network,
00365     const IPv6Net&  dst_network,
00366     const uint32_t& ip_protocol,
00367     const uint32_t& src_port_begin,
00368     const uint32_t& src_port_end,
00369     const uint32_t& dst_port_begin,
00370     const uint32_t& dst_port_end,
00371     const string&   action,
00372     const ReplaceEntry6CB&  cb
00373     );
00374 
00375     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteEntry6CB;
00406     bool send_delete_entry6(
00407     const char* dst_xrl_target_name,
00408     const uint32_t& tid,
00409     const uint32_t& rule_number,
00410     const string&   ifname,
00411     const string&   vifname,
00412     const IPv6Net&  src_network,
00413     const IPv6Net&  dst_network,
00414     const uint32_t& ip_protocol,
00415     const uint32_t& src_port_begin,
00416     const uint32_t& src_port_end,
00417     const uint32_t& dst_port_begin,
00418     const uint32_t& dst_port_end,
00419     const DeleteEntry6CB&   cb
00420     );
00421 
00422     typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteAllEntries6CB;
00432     bool send_delete_all_entries6(
00433     const char* dst_xrl_target_name,
00434     const uint32_t& tid,
00435     const DeleteAllEntries6CB&  cb
00436     );
00437 
00438     typedef XorpCallback3<void, const XrlError&, const uint32_t*, const bool*>::RefPtr GetEntryListStart6CB;
00446     bool send_get_entry_list_start6(
00447     const char* dst_xrl_target_name,
00448     const GetEntryListStart6CB& cb
00449     );
00450 
00451     typedef XorpCallback13<void, const XrlError&, const uint32_t*, const string*, const string*, const IPv6Net*, const IPv6Net*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*, const string*, const bool*>::RefPtr GetEntryListNext6CB;
00461     bool send_get_entry_list_next6(
00462     const char* dst_xrl_target_name,
00463     const uint32_t& token,
00464     const GetEntryListNext6CB&  cb
00465     );
00466 
00467     typedef XorpCallback1<void, const XrlError&>::RefPtr StartupFirewallCB;
00468 
00469     bool send_startup_firewall(
00470     const char* dst_xrl_target_name,
00471     const StartupFirewallCB&    cb
00472     );
00473 
00474 protected:
00475     XrlSender* _sender;
00476 
00477 private:
00478     static void unmarshall_start_transaction(
00479     const XrlError& e,
00480     XrlArgs*    a,
00481     StartTransactionCB      cb
00482     );
00483 
00484     static void unmarshall_commit_transaction(
00485     const XrlError& e,
00486     XrlArgs*    a,
00487     CommitTransactionCB     cb
00488     );
00489 
00490     static void unmarshall_abort_transaction(
00491     const XrlError& e,
00492     XrlArgs*    a,
00493     AbortTransactionCB      cb
00494     );
00495 
00496     static void unmarshall_add_entry4(
00497     const XrlError& e,
00498     XrlArgs*    a,
00499     AddEntry4CB     cb
00500     );
00501 
00502     static void unmarshall_replace_entry4(
00503     const XrlError& e,
00504     XrlArgs*    a,
00505     ReplaceEntry4CB     cb
00506     );
00507 
00508     static void unmarshall_delete_entry4(
00509     const XrlError& e,
00510     XrlArgs*    a,
00511     DeleteEntry4CB      cb
00512     );
00513 
00514     static void unmarshall_delete_all_entries4(
00515     const XrlError& e,
00516     XrlArgs*    a,
00517     DeleteAllEntries4CB     cb
00518     );
00519 
00520     static void unmarshall_get_entry_list_start4(
00521     const XrlError& e,
00522     XrlArgs*    a,
00523     GetEntryListStart4CB        cb
00524     );
00525 
00526     static void unmarshall_get_entry_list_next4(
00527     const XrlError& e,
00528     XrlArgs*    a,
00529     GetEntryListNext4CB     cb
00530     );
00531 
00532     static void unmarshall_add_entry6(
00533     const XrlError& e,
00534     XrlArgs*    a,
00535     AddEntry6CB     cb
00536     );
00537 
00538     static void unmarshall_replace_entry6(
00539     const XrlError& e,
00540     XrlArgs*    a,
00541     ReplaceEntry6CB     cb
00542     );
00543 
00544     static void unmarshall_delete_entry6(
00545     const XrlError& e,
00546     XrlArgs*    a,
00547     DeleteEntry6CB      cb
00548     );
00549 
00550     static void unmarshall_delete_all_entries6(
00551     const XrlError& e,
00552     XrlArgs*    a,
00553     DeleteAllEntries6CB     cb
00554     );
00555 
00556     static void unmarshall_get_entry_list_start6(
00557     const XrlError& e,
00558     XrlArgs*    a,
00559     GetEntryListStart6CB        cb
00560     );
00561 
00562     static void unmarshall_get_entry_list_next6(
00563     const XrlError& e,
00564     XrlArgs*    a,
00565     GetEntryListNext6CB     cb
00566     );
00567 
00568     static void unmarshall_startup_firewall(
00569     const XrlError& e,
00570     XrlArgs*    a,
00571     StartupFirewallCB       cb
00572     );
00573 
00574 private:
00575     /* Declare cached Xrl pointers */
00576     auto_ptr<Xrl> ap_xrl_start_transaction;
00577     auto_ptr<Xrl> ap_xrl_commit_transaction;
00578     auto_ptr<Xrl> ap_xrl_abort_transaction;
00579     auto_ptr<Xrl> ap_xrl_add_entry4;
00580     auto_ptr<Xrl> ap_xrl_replace_entry4;
00581     auto_ptr<Xrl> ap_xrl_delete_entry4;
00582     auto_ptr<Xrl> ap_xrl_delete_all_entries4;
00583     auto_ptr<Xrl> ap_xrl_get_entry_list_start4;
00584     auto_ptr<Xrl> ap_xrl_get_entry_list_next4;
00585     auto_ptr<Xrl> ap_xrl_add_entry6;
00586     auto_ptr<Xrl> ap_xrl_replace_entry6;
00587     auto_ptr<Xrl> ap_xrl_delete_entry6;
00588     auto_ptr<Xrl> ap_xrl_delete_all_entries6;
00589     auto_ptr<Xrl> ap_xrl_get_entry_list_start6;
00590     auto_ptr<Xrl> ap_xrl_get_entry_list_next6;
00591     auto_ptr<Xrl> ap_xrl_startup_firewall;
00592 };
00593 
00594 #endif /* __XRL_INTERFACES_FEA_FIREWALL_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations