Class: Fluent::TextParser::NetflowParser::MplsLabel

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/fluent/plugin/parser_netflow.rb

Instance Method Summary collapse

Instance Method Details

#getObject



294
295
296
# File 'lib/fluent/plugin/parser_netflow.rb', line 294

def get
  self.label
end

#set(val) ⇒ Object



289
290
291
292
293
# File 'lib/fluent/plugin/parser_netflow.rb', line 289

def set(val)
  self.label = val >> 4
  self.exp = (val & 0b1111) >> 1
  self.bottom = val & 0b1
end