class Pio::Arp::Format
ARP parser.
Public Instance Methods
to_binary()
click to toggle source
rubocop:enable MethodLength
# File lib/pio/arp/format.rb, line 48 def to_binary to_binary_s + "\000" * (64 - num_bytes) end
to_exact_match(in_port)
click to toggle source
rubocop:disable MethodLength
# File lib/pio/arp/format.rb, line 29 def to_exact_match(in_port) match_options = { in_port: in_port, source_mac_address: source_mac, destination_mac_address: destination_mac, vlan_vid: 0xffff, vlan_priority: vlan_pcp, ether_type: ether_type, tos: 0, ip_protocol: operation, source_ip_address: sender_protocol_address, destination_ip_address: target_protocol_address, transport_source_port: 0, transport_destination_port: 0 } Pio::OpenFlow10::Match.new(match_options) end