Contents

PacketOut

@open_flow10

Scenario: new

  • When I create an OpenFlow message with:
    arp_request = Pio::Arp::Request.new(
      source_mac: 'fa:ce:b0:00:00:cc',
      sender_protocol_address: '192.168.0.1',
      target_protocol_address: '192.168.0.2'
    )
    
    Pio::PacketOut.new(
      transaction_id: 0x16,
      buffer_id: 0xffffffff,
      in_port: 0xffff,
      actions: Pio::SendOutPort.new(2),
      raw_data: arp_request.to_binary
    )
  • Then the message has the following fields and values:
    fieldvalue
    transaction_id22
    xid22
    buffer_id.to_hex0xffffffff
    in_port.to_hex0xffff
    actions.length1
    actions[0].classPio::OpenFlow10::SendOutPort
    actions[0].port2
    actions[0].max_length65535
    raw_data.length64

Source: features/open_flow10/packet_out.feature at commit 40dd0fb6, Pio (GPL license).