📄 lookupiproute.hh
字号:
// -*- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -