?? debugging.hh
字號:
#ifndef CLICK_DEBUGGING_HH#define CLICK_DEBUGGING_HH#include <click/element.hh>#include "elements/standard/print.hh"#include <click/string.hh>CLICK_DECLS/*=cDebugging([TAG, NBYTES, I<KEYWORDS>])=s debuggingprints packet contents=dPrints up to NBYTES bytes of data from each packet, in hex, preceded by theTAG text. Default NBYTES is 24.Keyword arguments are:=over 8=item NBYTESNumber of bytes to print. Default is 24.=item TIMESTAMPBoolean. Determines whether to print each packet's timestamp in seconds since1970. Default is false.=item PRINTANNOBoolean. Determines whether to print each packet's user annotation bytes. Default is false.=item CPUBoolean; available only in the Linux kernel module. Determines whether toprint the current CPU ID for every packet. Default is false.=back=aIPPrint */class Debugging : public Print { public: Debugging(); ~Debugging(); const char *class_name() const { return "Debugging"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } Packet *simple_action(Packet *); private: String _label; unsigned _bytes; // How many bytes of a packet to print bool _timestamp : 1;#ifdef CLICK_LINUXMODULE bool _cpu : 1;#endif bool _print_anno;};CLICK_ENDDECLS#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -