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 +4 -4
- data/README.md +10 -10
- data/ruby/trema/packet-queue.rb +2 -2
- data/ruby/trema/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/trema/queue-get-config-reply_spec.rb +1 -1
- data/src/lib/openflow_message.c +1 -1
- data/trema.gemspec +0 -1
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a766e638ef31efd626005c5459901d9e0e5c7df
|
4
|
+
data.tar.gz: 5f136d6cacc764e8b55ed06727b08e100bca3baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
```
|
data/ruby/trema/packet-queue.rb
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
#
|
17
17
|
|
18
18
|
module Trema
|
19
|
-
class
|
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::
|
164
|
+
Trema::PacketQueues.append packet_queue
|
165
165
|
end
|
166
166
|
|
167
167
|
|
data/ruby/trema/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -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::
|
32
|
+
:queues => Trema::PacketQueues.queues
|
33
33
|
)
|
34
34
|
end
|
35
35
|
its( "queues.length" ) { should == 2 }
|
data/src/lib/openflow_message.c
CHANGED
@@ -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 ) ~
|
2271
|
+
if ( ( ntohl( port_mod->advertise ) & ( uint32_t ) ~PORT_FEATURES ) != 0 ) {
|
2272
2272
|
return ERROR_INVALID_PORT_FEATURES;
|
2273
2273
|
}
|
2274
2274
|
|
data/trema.gemspec
CHANGED
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.
|
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-
|
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
|