Class: IPAddr

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/node_modules/openflow_controller.rb

Instance Method Summary collapse

Instance Method Details

#to_shortObject



10
11
12
# File 'lib/dcmgr/node_modules/openflow_controller.rb', line 10

def to_short
  [(@addr >> 24) & 0xff, (@addr >> 16) & 0xff, (@addr >> 8) & 0xff, @addr & 0xff]
end