trema 0.2.2 → 0.2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -12
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/Rakefile +7 -0
- data/ruby/trema/version.rb +1 -1
- data/src/switch_manager/ofpmsg_send.c +1 -1
- data/trema.gemspec +15 -14
- metadata +8 -10
- data/.rspec +0 -1
- data/.yardopts +0 -4
- data/Gemfile.lock +0 -72
data/.gitignore
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
|
1
|
+
# bundler generated
|
2
2
|
.bundle
|
3
3
|
Gemfile.lock
|
4
|
+
*.gem
|
4
5
|
pkg/*
|
5
6
|
|
6
7
|
# rcov generated
|
@@ -14,6 +15,18 @@ rdoc
|
|
14
15
|
doc
|
15
16
|
.yardoc
|
16
17
|
|
18
|
+
# other generated files
|
19
|
+
*.dependency
|
20
|
+
/tmp
|
21
|
+
GPATH
|
22
|
+
GRTAGS
|
23
|
+
GSYMS
|
24
|
+
GTAGS
|
25
|
+
TAGS
|
26
|
+
callgrind.out.*
|
27
|
+
html
|
28
|
+
objects
|
29
|
+
|
17
30
|
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
18
31
|
#
|
19
32
|
# * Create a file at ~/.gitignore
|
@@ -40,14 +53,3 @@ doc
|
|
40
53
|
|
41
54
|
# For vim:
|
42
55
|
*.swp
|
43
|
-
|
44
|
-
*.dependency
|
45
|
-
/tmp
|
46
|
-
GPATH
|
47
|
-
GRTAGS
|
48
|
-
GSYMS
|
49
|
-
GTAGS
|
50
|
-
TAGS
|
51
|
-
callgrind.out.*
|
52
|
-
html
|
53
|
-
objects
|
data/Gemfile
CHANGED
@@ -9,7 +9,7 @@ gemspec
|
|
9
9
|
# Add dependencies to develop your gem here.
|
10
10
|
# Include everything needed to run rake, tests, features, etc.
|
11
11
|
group :development do
|
12
|
-
gem "bundler", "~> 1.
|
12
|
+
gem "bundler", "~> 1.1.0"
|
13
13
|
gem "cucumber", "~> 1.1.9"
|
14
14
|
gem "flay", "~> 1.4.3"
|
15
15
|
gem "flog", "~> 2.5.3"
|
data/README.md
CHANGED
@@ -18,11 +18,11 @@ Getting Started
|
|
18
18
|
Trema requires several third-party software. You can install the
|
19
19
|
prerequisites as follows:
|
20
20
|
|
21
|
-
|
21
|
+
$ sudo apt-get install gcc make ruby ruby-dev irb file libpcap-dev libsqlite3-dev
|
22
22
|
|
23
23
|
Download Trema source tree then run its build script:
|
24
24
|
|
25
|
-
|
25
|
+
$ ./build.rb
|
26
26
|
|
27
27
|
NOTE: Trema has been tested ONLY on the following environments:
|
28
28
|
|
data/Rakefile
CHANGED
data/ruby/trema/version.rb
CHANGED
@@ -216,7 +216,7 @@ ofpmsg_send_delete_all_flows( struct switch_info *sw_info ) {
|
|
216
216
|
match.wildcards = OFPFW_ALL;
|
217
217
|
|
218
218
|
buf = create_flow_mod( generate_xid(), match, RESERVED_COOKIE,
|
219
|
-
OFPFC_DELETE, 0, 0, 0,
|
219
|
+
OFPFC_DELETE, 0, 0, 0, UINT32_MAX, OFPP_NONE, 0, NULL );
|
220
220
|
|
221
221
|
ret = send_to_secure_channel( sw_info, buf );
|
222
222
|
if ( ret == 0 ) {
|
data/trema.gemspec
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../ruby", __FILE__)
|
2
|
+
$:.push File.expand_path( "../ruby", __FILE__ )
|
3
3
|
require "trema/version"
|
4
4
|
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name
|
7
|
-
s.version
|
8
|
-
s.authors
|
9
|
-
s.email
|
10
|
-
s.homepage
|
11
|
-
s.summary
|
12
|
-
s.description = %q{Trema is a full-stack, easy-to-use framework for developing OpenFlow controllers in Ruby
|
5
|
+
Gem::Specification.new do | s |
|
6
|
+
s.name = "trema"
|
7
|
+
s.version = Trema::VERSION
|
8
|
+
s.authors = [ "Yasuhito Takamiya" ]
|
9
|
+
s.email = [ "yasuhito@gmail.com" ]
|
10
|
+
s.homepage = "http://github.com/trema/trema"
|
11
|
+
s.summary = %q{Full-Stack OpenFlow Framework for Ruby and C}
|
12
|
+
s.description = %q{Trema is a full-stack, easy-to-use framework for developing OpenFlow controllers in Ruby and C}
|
13
13
|
s.license = "GPL2"
|
14
14
|
|
15
|
-
s.files
|
16
|
-
s.test_files
|
17
|
-
s.bindir
|
18
|
-
s.executables
|
19
|
-
s.
|
15
|
+
s.files = `git ls-files`.split( "\n" )
|
16
|
+
s.test_files = `git ls-files -- {spec,features}/*`.split( "\n" )
|
17
|
+
s.bindir = "."
|
18
|
+
s.executables = [ "trema", "trema-config" ]
|
19
|
+
s.require_path = "ruby"
|
20
|
+
s.extensions = [ "Rakefile" ]
|
20
21
|
s.extra_rdoc_files = [ "README.md" ]
|
21
22
|
|
22
23
|
# specify any dependencies here; for example:
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 85
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 2
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.2.2.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Yasuhito Takamiya
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: .
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2012-03-
|
19
|
+
date: 2012-03-09 00:00:00 Z
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rake
|
@@ -31,7 +32,7 @@ dependencies:
|
|
31
32
|
version: "0"
|
32
33
|
type: :runtime
|
33
34
|
version_requirements: *id001
|
34
|
-
description: Trema is a full-stack, easy-to-use framework for developing OpenFlow controllers in Ruby
|
35
|
+
description: Trema is a full-stack, easy-to-use framework for developing OpenFlow controllers in Ruby and C
|
35
36
|
email:
|
36
37
|
- yasuhito@gmail.com
|
37
38
|
executables:
|
@@ -44,12 +45,9 @@ extra_rdoc_files:
|
|
44
45
|
files:
|
45
46
|
- .gitignore
|
46
47
|
- .mono.rant
|
47
|
-
- .rspec
|
48
|
-
- .yardopts
|
49
48
|
- Doxyfile
|
50
49
|
- GPL2
|
51
50
|
- Gemfile
|
52
|
-
- Gemfile.lock
|
53
51
|
- README.md
|
54
52
|
- Rakefile
|
55
53
|
- Rantfile
|
@@ -647,7 +645,7 @@ post_install_message:
|
|
647
645
|
rdoc_options: []
|
648
646
|
|
649
647
|
require_paths:
|
650
|
-
-
|
648
|
+
- ruby
|
651
649
|
required_ruby_version: !ruby/object:Gem::Requirement
|
652
650
|
none: false
|
653
651
|
requirements:
|
@@ -669,10 +667,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
669
667
|
requirements: []
|
670
668
|
|
671
669
|
rubyforge_project:
|
672
|
-
rubygems_version: 1.8.
|
670
|
+
rubygems_version: 1.8.15
|
673
671
|
signing_key:
|
674
672
|
specification_version: 3
|
675
|
-
summary: Full-Stack OpenFlow Framework for Ruby
|
673
|
+
summary: Full-Stack OpenFlow Framework for Ruby and C
|
676
674
|
test_files: []
|
677
675
|
|
678
676
|
has_rdoc:
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color --format documentation --profile
|
data/.yardopts
DELETED
data/Gemfile.lock
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
trema (0.2.2)
|
5
|
-
bundler
|
6
|
-
rake
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
builder (3.0.0)
|
12
|
-
cucumber (1.1.9)
|
13
|
-
builder (>= 2.1.2)
|
14
|
-
diff-lcs (>= 1.1.2)
|
15
|
-
gherkin (~> 2.9.0)
|
16
|
-
json (>= 1.4.6)
|
17
|
-
term-ansicolor (>= 1.0.6)
|
18
|
-
diff-lcs (1.1.3)
|
19
|
-
flay (1.4.3)
|
20
|
-
ruby_parser (~> 2.0)
|
21
|
-
sexp_processor (~> 3.0)
|
22
|
-
flog (2.5.3)
|
23
|
-
ruby_parser (~> 2.0)
|
24
|
-
sexp_processor (~> 3.0)
|
25
|
-
gherkin (2.9.0)
|
26
|
-
json (>= 1.4.6)
|
27
|
-
json (1.6.5)
|
28
|
-
rake (0.9.2.2)
|
29
|
-
rcov (1.0.0)
|
30
|
-
rdoc (3.12)
|
31
|
-
json (~> 1.4)
|
32
|
-
redcarpet (2.1.0)
|
33
|
-
reek (1.2.8)
|
34
|
-
ruby2ruby (~> 1.2)
|
35
|
-
ruby_parser (~> 2.0)
|
36
|
-
sexp_processor (~> 3.0)
|
37
|
-
roodi (2.1.0)
|
38
|
-
ruby_parser
|
39
|
-
rspec (2.8.0)
|
40
|
-
rspec-core (~> 2.8.0)
|
41
|
-
rspec-expectations (~> 2.8.0)
|
42
|
-
rspec-mocks (~> 2.8.0)
|
43
|
-
rspec-core (2.8.0)
|
44
|
-
rspec-expectations (2.8.0)
|
45
|
-
diff-lcs (~> 1.1.2)
|
46
|
-
rspec-mocks (2.8.0)
|
47
|
-
ruby2ruby (1.3.1)
|
48
|
-
ruby_parser (~> 2.0)
|
49
|
-
sexp_processor (~> 3.0)
|
50
|
-
ruby_parser (2.3.1)
|
51
|
-
sexp_processor (~> 3.0)
|
52
|
-
sexp_processor (3.1.0)
|
53
|
-
term-ansicolor (1.0.7)
|
54
|
-
yard (0.7.5)
|
55
|
-
|
56
|
-
PLATFORMS
|
57
|
-
ruby
|
58
|
-
|
59
|
-
DEPENDENCIES
|
60
|
-
bundler (~> 1.0.0)
|
61
|
-
cucumber (~> 1.1.9)
|
62
|
-
flay (~> 1.4.3)
|
63
|
-
flog (~> 2.5.3)
|
64
|
-
rake (~> 0.9.2.2)
|
65
|
-
rcov (~> 1.0.0)
|
66
|
-
rdoc (~> 3.12)
|
67
|
-
redcarpet (~> 2.1.0)
|
68
|
-
reek (~> 1.2.8)
|
69
|
-
roodi (~> 2.1.0)
|
70
|
-
rspec (~> 2.8.0)
|
71
|
-
trema!
|
72
|
-
yard (~> 0.7)
|