⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 printgrid.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef PRINTGRID_HH#define PRINTGRID_HH#include <click/element.hh>#include <click/string.hh>#include "grid.hh"CLICK_DECLS/* * =c * PrintGrid([TAG] [, KEYWORDS]) * =s Grid * =d * Assumes input packets have Ethernet headers enclosing Grid * packets, as described by grid_hdr in grid.hh. Prints out * a description of the Grid payload. * * Keyword arguments are: * * =over 8 * * =item SHOW_ROUTES * * Boolean.  Default false.  If true, print all the entries in each route advertisement. * * =item SHOW_PROBE_CONTENTS * * Boolean. Default false.  If true, print all the entries in each link probe.  * * =item VERBOSE * * Boolean.  Default true.  If false, leave out some details such as location info, etc. * * =item TIMESTAMP * * Boolean.  Default false.  If true, print the packet timestamp. * * =item PRINT_ETH * * Boolean.  Default false.  If true, print the ethernet header. *  * =a * Print */class PrintGrid : public Element {    String _label;   public:    PrintGrid();  ~PrintGrid();    const char *class_name() const		{ return "PrintGrid"; }  const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);    Packet *simple_action(Packet *);private:  String encap_to_string(const grid_nbr_encap *) const;    bool _print_routes;  String get_entries(const grid_hello *) const;  bool _print_probe_entries;  String get_probe_entries(const grid_link_probe *) const;  void print_ether_linkstat(Packet *) const;  bool _verbose;    bool _timestamp;  bool _print_eth;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -