Skip to content

Commit

Permalink
add netem
Browse files Browse the repository at this point in the history
Signed-off-by: Lehner Florian <[email protected]>
  • Loading branch information
florianl committed Jan 8, 2020
1 parent 354cd50 commit c3c406e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions attributeTcMsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ func extractTCAOptions(data []byte, tc *Attribute, kind string) error {
return err
}
tc.Flow = info
case "netem":
info := &Netem{}
if err := unmarshalNetem(data, info); err != nil {
return err
}
tc.Netem = info
default:
return fmt.Errorf("extractTCAOptions(): unsupported kind: %s", kind)
}
Expand Down

0 comments on commit c3c406e

Please sign in to comment.