- OFPT_* messages
- /* Immutable messages. */
- OFPT_HELLO ... TEST, DOC (とりあえず完了)
- OFPT_ERROR ... TEST, DOC (とりあえず完了)
- OFPT_ECHO_REQUEST ... TEST, DOC (とりあえず完了)
- OFPT_ECHO_REPLY ... TEST, DOC (とりあえず完了)
- OFPT_VENDOR ... TEST, DOC (とりあえず完了)
- /* Switch configuration messages. */
- OFPT_FEATURES_REQUEST ... TEST, DOC (とりあえず完了)
- OFPT_FEATURES_REPLY ... TEST, DOC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/flow_dumper/flow-dumper.rb b/flow_dumper/flow-dumper.rbindex 40d677c..fdfe0e5 100644--- a/flow_dumper/flow-dumper.rb | |
+++ b/flow_dumper/flow-dumper.rb | |
@@ -27,7 +27,7 @@ module Trema | |
"cookie = #{ cookie }, " + | |
"idle_timeout = #{ idle_timeout }, " + | |
"hard_timeout = #{ hard_timeout }, " + | |
- "duration = #{ duration }, " + | |
+ "duration = #{ duration_sec }, " + | |
"packet_count = #{ packet_count }, " + | |
"byte_count = #{ byte_count }, " + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key "\C-cc" 'org-capture) | |
(setq org-capture-templates | |
(quote | |
(("f" | |
"独りFacebook" | |
entry | |
(file "~/Dropbox/org/facebook.org") | |
"* %U\n %?\n - [ ] いいね!" | |
:prepend t | |
:unnarrowed t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/INSTALL.KVM b/INSTALL.KVM | |
index 09a8d67..61620e5 100644 | |
--- a/INSTALL.KVM | |
+++ b/INSTALL.KVM | |
@@ -58,7 +58,7 @@ Please refer to ovs-vsctl(8) for more details. | |
Next, we'll start a guest that will use our ifup and ifdown scripts. | |
- % kvm -m 512 -net nic,maddr=00:11:22:EE:EE:EE -net \ | |
+ % kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:EE -net \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ruby/extconf.rb b/ruby/extconf.rb | |
index cda078f..2343ba6 100644 | |
--- a/ruby/extconf.rb | |
+++ b/ruby/extconf.rb | |
@@ -45,6 +45,10 @@ EOF | |
end | |
+unless find_library( "pthread", "pthread_create" ) | |
+ error_exit error_lib_missing( "libpthread", "libc6-dev" ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MinimumSwitch < Switch | |
def start | |
info "Started (datapath_id=#{ datapath_id.to_hex })." | |
end | |
def controller_connected | |
info "Connected to a controller." | |
send_message Hello.new | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 行末の空白を表示 | |
(setq-default show-trailing-whitespace t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-load-path "~/.emacs.d/yasuhito/gist.el") | |
(require 'gist) | |
(setq gist-authenticate-function 'gist-basic-authentication) | |
(global-set-key (kbd "<f8>") 'gist-region-or-buffer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// たとえばこういうシグニチャの関数があったとして、 | |
// こいつをテストの実行時に mock 関数に置き換えたいとする | |
void die( const char *format, ... ); | |
// die.h では関数ポインタを公開する (extern)。 | |
extern void ( *die )( const char *format, ... ); | |
// die.c では関数ポインタを定義してて、 | |
// 同時にデフォルトの実装 _die() を代入してやる |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ruby -n | |
p eval'"#{$`%1$s+$&%1$s}"%1$s'%".reverse.to_i"if/ .+/ |