sortediplookup.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 50 行
HH
50 行
// -*- 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 + =
减小字号Ctrl + -
显示快捷键?