Skip to content

Commit

Permalink
Merge pull request jonstout#35 from 3d0c/master
Browse files Browse the repository at this point in the history
Wrong offset for Uint32 fix
  • Loading branch information
jonstout committed Sep 16, 2015
2 parents e5b3f3c + 50396c9 commit 0e9ae86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/ofp10/flowmod.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// ofp_flow_mod
type FlowMod struct {
ofpxx.Header
Match Match
Match Match
Cookie uint64

Command uint16
Expand Down Expand Up @@ -76,7 +76,7 @@ func (f *FlowMod) MarshalBinary() (data []byte, err error) {
binary.BigEndian.PutUint16(bytes[n:], f.Priority)
n += 2
binary.BigEndian.PutUint32(bytes[n:], f.BufferId)
n += 2
n += 4
binary.BigEndian.PutUint16(bytes[n:], f.OutPort)
n += 2
binary.BigEndian.PutUint16(bytes[n:], f.Flags)
Expand Down Expand Up @@ -140,7 +140,7 @@ const (
// BEGIN: ofp10 - 5.4.2
type FlowRemoved struct {
ofpxx.Header
Match Match
Match Match
Cookie uint64
Priority uint16
Reason uint8
Expand Down

0 comments on commit 0e9ae86

Please sign in to comment.