📄 sortediplookup.hh
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_SORTEDIPLOOKUP_HH#define CLICK_SORTEDIPLOOKUP_HH#include "lineariplookup.hh"CLICK_DECLS/*=cSortedIPLookup(ADDR1/MASK1 [GW1] OUT1, ADDR2/MASK2 [GW2] OUT2, ...)=s IP, classificationsimple IP routing table=deprecated LinearIPLookup=dSortedIPLookup is a version of LinearIPLookup that sorts the routing table.In practice, however, it performs worse than LinearIPLookup, which itselfperforms terribly, so it is deprecated.=a LinearIPLookup */class SortedIPLookup : public LinearIPLookup { public: SortedIPLookup(); ~SortedIPLookup(); const char *class_name() const { return "SortedIPLookup"; } int configure(Vector<String> &, ErrorHandler *); void push(int port, Packet *p); int add_route(const IPRoute&, bool, IPRoute*, ErrorHandler *); int remove_route(const IPRoute&, IPRoute*, ErrorHandler *); bool check() const; protected: inline int lookup_entry(IPAddress) const; void sort_table();};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -