We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As the following code (spec/repeater_hub.rb), one form of send_packet_out works, but the other one using packet_in does not. FYI.
require File.join(File.dirname(__FILE__), "spec_helper") class RepeaterHub < Trema::Controller def packet_in datapath_id, message send_flow_mod_add(datapath_id, :match => ExactMatch.from(message), :actions => ActionOutput.new(OFPP_FLOOD)) ##THIS DOES NOT WORK... # send_packet_out(datapath_id, # :packet_in => message, # :actions => Trema::ActionOutput.new(OFPP_FLOOD)) ##But this works! send_packet_out(datapath_id, :data => message.buffered? ? nil : message.data, :in_port => message.in_port, :buffer_id => message.buffer_id, :actions => Trema::ActionOutput.new(OFPP_FLOOD) ) end end describe RepeaterHub do it "should flood incoming packets to every other port" do network { vswitch("switch") { dpid "0xabc" } vhost ("host1") { promisc "on" } vhost ("host2") { promisc "on" } vhost ("host3") { promisc "on" } link "switch", "host1" link "switch", "host2" link "switch", "host3" }.run(RepeaterHub) { vhost("host1").send_packet "host2" vhost("host2").stats(:rx).should have(1).packets vhost("host3").stats(:rx).should have(1).packets } end end
The text was updated successfully, but these errors were encountered:
We will try to reproduce that then apply sugyo-san's patch later.
Sorry, something went wrong.
Seems already fixed.
Merge pull request trema#46 from axsh/fix-missing-namespace
2e0cf53
Fixed ambiguous use of namespace in the C code and namespace collision issue with Timer
yasuhito
No branches or pull requests
As the following code (spec/repeater_hub.rb), one form of send_packet_out works, but the other one using packet_in does not. FYI.
The text was updated successfully, but these errors were encountered: