gridgatewayinfo.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 63 行
HH
63 行
#ifndef GRIDGATEWAYINFO_HH#define GRIDGATEWAYINFO_HH#include <click/element.hh>#include "grid.hh"#include "gridgenericrt.hh"CLICK_DECLS/* * =c * GridGatewayInfo(GridGenericRouteTable, IS_GATEWAY) * =s Grid * Manage grid node gateway info. * * =d * * GridGatewayInfo performs two functions [probably indicating a bad * design!]: first, it determines whether this particular node is a * gateway (IS_GATEWAY argument); second, it sets the destinination IP * address annotation of incoming packets to be the best current * gateway known by the node's routing table (GridGenericRouteTable * argument). * * GridGenericRouteTable is this node's route table. * * IS_GATEWAY is a boolean representing whether or not this node * should advertise itself as a gateway. * * * =h is_gateway read/write * Returns or sets boolean value of whether or not this node is a * gateway. * * =a DSDVRouteTable, SetIPAddress */class GridGatewayInfo : public Element { public: GridGatewayInfo(); ~GridGatewayInfo(); const char *class_name() const { return "GridGatewayInfo"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } void add_handlers(); bool is_gateway (); static String print_best_gateway(Element *f, void *); Packet *simple_action(Packet *); class GridGenericRouteTable *_rt;protected: bool _is_gateway;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?