lookupiproute.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 52 行
HH
52 行
// -*- c-basic-offset: 4 -*-#ifndef CLICK_STATICIPLOOKUP_HH#define CLICK_STATICIPLOOKUP_HH#include "lineariplookup.hh"CLICK_DECLS/*=cStaticIPLookup(ADDR1/MASK1 [GW1] OUT1, ADDR2/MASK2 [GW2] OUT2, ...)=s IP, classificationsimple static IP routing table=dB<Note:> Lookups and table updates with StaticIPLookup are extremely slow; theRadixIPLookup, DirectIPLookup, and RangeIPLookup elements should be preferredin almost all cases. See IPRouteTable for a performance comparison. Weprovide StaticIPLookup nevertheless for its simplicity.This element acts like LinearIPLookup, but does not allow dynamic adding anddeleting of routes.=h table read-onlyOutputs a human-readable version of the current routing table.=h lookup read-onlyReports the OUTput port and GW corresponding to an address.=a RadixIPLookup, DirectIPLookup, RangeIPLookup, LinearIPLookup,SortedIPLookup, LinuxIPLookup, IPRouteTable */class StaticIPLookup : public LinearIPLookup { public: StaticIPLookup(); ~StaticIPLookup(); const char *class_name() const { return "StaticIPLookup"; } void add_handlers(); int add_route(const IPRoute&, bool, IPRoute*, ErrorHandler *); int remove_route(const IPRoute&, IPRoute*, ErrorHandler *);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?