scroot / gopacket

Automatically exported from code.google.com/p/gopacket
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

openflow support #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How the best add openflow support to gopacket?

I can create decoder for openflow that cat switch based on header version to 
next decoder specific to header openflow version. Does it right?

Original issue reported on code.google.com by v...@selfip.ru on 26 Jan 2015 at 11:46

GoogleCodeExporter commented 9 years ago
I think that sounds like a good approach, yes.  Feel free to send me some code, 
and I can review it and let you know.

Original comment by gconnell@google.com on 26 Jan 2015 at 5:53

GoogleCodeExporter commented 9 years ago
Thanks. I'm write some code (prepare for all stuff, copy/paste from 
specification).
https://github.com/vtolstov/gopacket-openflow/blob/master/layers/openflow.go

Firstly type Openflow struct {...} 
Each openflow message can contains some actions and messages, But each Action 
have distinc payload. All action have only header that contains type and len, 
all other fields determine by action type. How can i deal with this?

I need to create ActionOutput, ActionEnqueue and so types, that have 
ActionHeader type? or i need to create Action like interface and each Action 
type need to satisfy this interface... ?

Original comment by v...@selfip.ru on 26 Jan 2015 at 9:23