wifiseq.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 75 行
HH
75 行
#ifndef CLICK_WIFISEQ_HH#define CLICK_WIFISEQ_HH#include <click/element.hh>#include <clicknet/ether.h>#include <click/etheraddress.hh>CLICK_DECLS/*=cWifiSeq()=s WifiSets the 802.11 sequence number in a packet.=dArguments are:=over 8=item OFFSETHow many bytes in the packet to put the seuqnce number. Default is 22.=item BYTESHow many bytes the sequence number should use. Values can be 2 or 4. Default is 2.=item SHIFTHow many bits to shift the sequence number before setting the value in the packet.Default is 4.=back 8=h seq read/writeSets or reads the next sequence number=a WifiEncap */class WifiSeq : public Element { public: WifiSeq(); ~WifiSeq(); const char *class_name() const { return "WifiSeq"; } const char *processing() const { return AGNOSTIC; } void notify_noutpus(int n) { set_noutputs(n); } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } Packet *simple_action(Packet *); void add_handlers(); static String read_param(Element *, void *); static int write_param(const String &in_s, Element *e, void *vparam, ErrorHandler *errh); Packet *apply_seq(Packet *); void reset(); bool _debug; u_int32_t _seq; u_int32_t _offset; u_int32_t _shift; u_int32_t _bytes;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?