trema 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 281c9abb37b075014c1ffa114fe1e690c6fd0746
4
- data.tar.gz: a26c7d9a54f2f6227908f274201378dab82e8116
3
+ metadata.gz: 7a766e638ef31efd626005c5459901d9e0e5c7df
4
+ data.tar.gz: 5f136d6cacc764e8b55ed06727b08e100bca3baf
5
5
  SHA512:
6
- metadata.gz: dc0908793e0d3d726737149c733b184c5e1f5e3505b26e66ef56d2044fd62c693719e973c18618da8d3531109dffca63aa24ef07df46755e820349be29edf6a1
7
- data.tar.gz: 5d8f2e991f868011274e0735400e86be8be3b3eeda0820a9090ccbdef2edae4a2e30b045839e4eb5e9c6d154a173fec9cee9b11be1bf6c3562e9f2bc389d7e7f
6
+ metadata.gz: c905422655133ca3a741a6d71f45561b94c7997466f9a5fa066b1db7b063ea307b25c0aed00620f071f14fad772c84d8771e0c3dcc987d5f94954b1ac62198e9
7
+ data.tar.gz: 337f159d2325e2115003391322e1986c79a58ca13f8046ec1620607fa78c7baf550380a884e886f1d99ea6944e43b7d76f494ad37a38b425149512acf3665167
data/README.md CHANGED
@@ -31,7 +31,7 @@ Trema supports GNU/Linux only. And it has been tested on the following environme
31
31
  * RubyGems 1.3.6 or higher
32
32
  * Ubuntu 13.04, 12.10, 12.04, 11.10, and 10.04 (i386/amd64, Desktop Edition)
33
33
  * Debian GNU/Linux 7.0 and 6.0 (i386/amd64)
34
- * Fedora 16 (i386/x86_64)
34
+ * Fedora 16-19 (i386/x86_64)
35
35
 
36
36
  It may also run on other GNU/Linux distributions but is not tested and
37
37
  NOT SUPPORTED at this moment.
@@ -53,10 +53,10 @@ Getting Started
53
53
 
54
54
  (In Ubuntu 10.04)
55
55
  $ sudo apt-get install gcc make ruby rubygems ruby-dev libopenssl-ruby libpcap-dev libsqlite3-dev libglib2.0-dev
56
- $ sudo gem install rubygems-update --version 2.0.8
56
+ $ sudo gem install rubygems-update
57
57
  $ sudo /var/lib/gems/1.8/bin/update_rubygems
58
58
 
59
- (In Fedora 16)
59
+ (In Fedora 16-19)
60
60
  $ sudo yum install gcc make ruby rubygems ruby-devel libpcap-devel libsqlite3x-devel glib2-devel
61
61
 
62
62
  2.Install Trema at the command prompt:
@@ -94,12 +94,12 @@ class MyController < Controller
94
94
  def packet_in datapath_id, message
95
95
  # ...
96
96
  end
97
-
97
+
98
98
  # handle Flow-Removed messages here.
99
99
  def flow_removed datapath_id, message
100
100
  # ...
101
101
  end
102
-
102
+
103
103
  # ...
104
104
  end
105
105
  ```
@@ -131,7 +131,7 @@ class MyController < Controller
131
131
  send_flow_mod_add( datapath_id, ... )
132
132
  send_packet_out( datapath_id, ... )
133
133
  end
134
-
134
+
135
135
  # ...
136
136
  end
137
137
  ```
@@ -152,11 +152,11 @@ class MyController < Controller
152
152
  # send a FeaturesRequest message
153
153
  send_message datapath_id, FeaturesRequest.new
154
154
  end
155
-
155
+
156
156
  def features_reply datapath_id, message
157
157
  # ...
158
158
  end
159
-
159
+
160
160
  # ...
161
161
  end
162
162
  ```
@@ -194,7 +194,7 @@ def packet_in datapath_id, message
194
194
  :match => Match.new( :in_port => message.in_port, ...)
195
195
  # ...
196
196
  )
197
-
197
+
198
198
  # ...
199
199
  end
200
200
  ```
@@ -212,7 +212,7 @@ def packet_in datapath_id, message
212
212
  :match => ExactMatch.from( message )
213
213
  # ...
214
214
  )
215
-
215
+
216
216
  # ...
217
217
  end
218
218
  ```
@@ -16,7 +16,7 @@
16
16
  #
17
17
 
18
18
  module Trema
19
- class Queue
19
+ class PacketQueues
20
20
  class << self
21
21
  #
22
22
  # The {PacketQueue} to append to the list.
@@ -161,7 +161,7 @@ module Trema
161
161
  super property, len
162
162
  @rate = rate
163
163
  packet_queue.append self
164
- Trema::Queue.append packet_queue
164
+ Trema::PacketQueues.append packet_queue
165
165
  end
166
166
 
167
167
 
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
  module Trema
20
- VERSION = "0.4.2"
20
+ VERSION = "0.4.3"
21
21
  end
22
22
 
23
23
 
@@ -24,6 +24,7 @@ require "rubygems"
24
24
 
25
25
  require "rspec"
26
26
  require "rspec/autorun"
27
+ require "pio"
27
28
  require "trema"
28
29
  require "trema/dsl/configuration"
29
30
  require "trema/dsl/context"
@@ -29,7 +29,7 @@ describe QueueGetConfigReply, ".new( VALID OPTIONS )" do
29
29
  QueueGetConfigReply.new( :datapath_id => 0xabc,
30
30
  :transaction_id => 123,
31
31
  :port => 1,
32
- :queues => Trema::Queue.queues
32
+ :queues => Trema::PacketQueues.queues
33
33
  )
34
34
  end
35
35
  its( "queues.length" ) { should == 2 }
@@ -2268,7 +2268,7 @@ validate_port_mod( const buffer *message ) {
2268
2268
  if ( ( ntohl( port_mod->mask ) & ( uint32_t ) ~PORT_CONFIG ) != 0 ) {
2269
2269
  return ERROR_INVALID_PORT_MASK;
2270
2270
  }
2271
- if ( ( ntohl( port_mod->advertise ) & ( uint32_t ) ~PORT_CONFIG ) != 0 ) {
2271
+ if ( ( ntohl( port_mod->advertise ) & ( uint32_t ) ~PORT_FEATURES ) != 0 ) {
2272
2272
  return ERROR_INVALID_PORT_FEATURES;
2273
2273
  }
2274
2274
 
@@ -16,7 +16,6 @@ Gem::Specification.new do | gem |
16
16
  gem.email = [ "yasuhito@gmail.com" ]
17
17
  gem.homepage = "http://github.com/trema/trema"
18
18
 
19
- gem.bindir = "."
20
19
  gem.executables = [ "trema", "trema-config" ]
21
20
  gem.files = `git ls-files`.split( "\n" )
22
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhito Takamiya
8
8
  autorequire:
9
- bindir: .
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -794,8 +794,6 @@ files:
794
794
  - vendor/ruby-ifconfig-1.2/test/unit/tc_netbsd.rb
795
795
  - vendor/ruby-ifconfig-1.2/test/unit/tc_openbsd.rb
796
796
  - vendor/ruby-ifconfig-1.2/test/unit/tc_sunos.rb
797
- - ./trema
798
- - ./trema-config
799
797
  homepage: http://github.com/trema/trema
800
798
  licenses:
801
799
  - GPL2