aggregatelen.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 65 行
HH
65 行
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_AGGREGATELEN_HH#define CLICK_AGGREGATELEN_HH#include <click/element.hh>/*=cAggregateLength(I<KEYWORDS>)=s analysissets aggregate annotation based on packet length=dAggregateLength sets the aggregate annotation on every passing packet to thepacket's length, plus any length stored in the extra length annotation.Keyword arguments are:=over 8=item IPBoolean. If true, then only include length starting at the IP header. Defaultis false.=back=nIf IP is true, then packets without a network header are pushed onto output 1,or dropped if there is no output 1.=aAggregateIP, AggregateCounter*/class AggregateLength : public Element { public: AggregateLength(); ~AggregateLength(); const char *class_name() const { return "AggregateLength"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); void push(int, Packet *); Packet *pull(int); private: bool _ip; Packet *handle_packet(Packet *); Packet *bad_packet(Packet *); };#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?