Skip to content

Commit

Permalink
Merge branch 'develop' into feature/packet_in_dpid_setter
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Jul 1, 2015
2 parents 302f65b + 519c1f6 commit 7fd97cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

## develop (unreleased)
### Bugs fixed
* [#188](https://github.com/trema/pio/pull/188): Add PacketIn#in_port (OpenFlow1.3).
* [#189](https://github.com/trema/pio/pull/189): Add PacketIn#datapath_id= (OpenFlow1.3).


Expand Down
1 change: 1 addition & 0 deletions features/open_flow13/packet_in.feature
Expand Up @@ -70,6 +70,7 @@ Feature: Pio::PacketIn
| xid | 123 |
| buffer_id.to_hex | 0xcafebabe |
| total_len | 60 |
| in_port | 1 |
| reason | :no_match |
| table_id | 0 |
| cookie | 0 |
Expand Down
4 changes: 4 additions & 0 deletions lib/pio/open_flow13/packet_in.rb
Expand Up @@ -49,6 +49,10 @@ def data
@data ||= Pio::Parser.read(raw_data)
end

def in_port
match.in_port
end

def method_missing(method, *args)
data.__send__(method, *args).snapshot
end
Expand Down

0 comments on commit 7fd97cc

Please sign in to comment.