Permalink
Browse files

Initial commit

  • Loading branch information...
toanju committed Aug 13, 2012
0 parents commit 5afa5f185e63642edc5fd1399c2b5157578c49d7
Showing with 55,816 additions and 0 deletions.
  1. +29 −0 .gitignore
  2. +3 −0 COPYRIGHT
  3. +12 −0 Makefile.am
  4. +4 −0 autogen.sh
  5. +2 −0 build/.gitignore
  6. +68 −0 configure.ac
  7. +4 −0 src/Makefile.am
  8. +10 −0 src/rofl/Makefile.am
  9. +10 −0 src/rofl/common/Makefile.am
  10. +347 −0 src/rofl/common/caddress.cc
  11. +282 −0 src/rofl/common/caddress.h
  12. +181 −0 src/rofl/common/cclock.cc
  13. +105 −0 src/rofl/common/cclock.h
  14. +892 −0 src/rofl/common/cctlelem.cc
  15. +707 −0 src/rofl/common/cctlelem.h
  16. +7 −0 src/rofl/common/cerror.cc
  17. +41 −0 src/rofl/common/cerror.h
  18. +68 −0 src/rofl/common/cfibentry.cc
  19. +112 −0 src/rofl/common/cfibentry.h
  20. +44 −0 src/rofl/common/cfsm.cc
  21. +56 −0 src/rofl/common/cfsm.h
  22. +3,610 −0 src/rofl/common/cfwdelem.cc
  23. +1,990 −0 src/rofl/common/cfwdelem.h
  24. +75 −0 src/rofl/common/cfwdentry.cc
  25. +133 −0 src/rofl/common/cfwdentry.h
  26. +295 −0 src/rofl/common/cfwdtable.cc
  27. +122 −0 src/rofl/common/cfwdtable.h
  28. +1,218 −0 src/rofl/common/ciosrv.cc
  29. +540 −0 src/rofl/common/ciosrv.h
  30. +157 −0 src/rofl/common/cmacaddr.cc
  31. +121 −0 src/rofl/common/cmacaddr.h
  32. +378 −0 src/rofl/common/cmemory.cc
  33. +212 −0 src/rofl/common/cmemory.h
  34. +328 −0 src/rofl/common/cmempool.cc
  35. +235 −0 src/rofl/common/cmempool.h
  36. +186 −0 src/rofl/common/coflist.cc
  37. +114 −0 src/rofl/common/coflist.h
  38. +2,505 −0 src/rofl/common/cpacket.cc
  39. +830 −0 src/rofl/common/cpacket.h
  40. +675 −0 src/rofl/common/cport.cc
  41. +531 −0 src/rofl/common/cport.h
  42. +65 −0 src/rofl/common/croflexp.cc
  43. +118 −0 src/rofl/common/croflexp.h
  44. +416 −0 src/rofl/common/csocket.cc
  45. +307 −0 src/rofl/common/csocket.h
  46. +65 −0 src/rofl/common/cutbase.cc
  47. +96 −0 src/rofl/common/cutbase.h
  48. +59 −0 src/rofl/common/cvastring.h
  49. +47 −0 src/rofl/common/endian_conversion.h
  50. +129 −0 src/rofl/common/fframe.cc
  51. +184 −0 src/rofl/common/fframe.h
  52. +10 −0 src/rofl/common/openflow/Makefile.am
  53. +476 −0 src/rofl/common/openflow/cflowentry.cc
  54. +253 −0 src/rofl/common/openflow/cflowentry.h
  55. +792 −0 src/rofl/common/openflow/cftentry.cc
  56. +359 −0 src/rofl/common/openflow/cftentry.h
  57. +942 −0 src/rofl/common/openflow/cfttable.cc
  58. +331 −0 src/rofl/common/openflow/cfttable.h
  59. +214 −0 src/rofl/common/openflow/cgroupentry.cc
  60. +91 −0 src/rofl/common/openflow/cgroupentry.h
  61. +171 −0 src/rofl/common/openflow/cgtentry.cc
  62. +158 −0 src/rofl/common/openflow/cgtentry.h
  63. +198 −0 src/rofl/common/openflow/cgttable.cc
  64. +178 −0 src/rofl/common/openflow/cgttable.h
  65. +154 −0 src/rofl/common/openflow/cofaclist.cc
  66. +113 −0 src/rofl/common/openflow/cofaclist.h
  67. +562 −0 src/rofl/common/openflow/cofaction.cc
  68. +624 −0 src/rofl/common/openflow/cofaction.h
  69. +161 −0 src/rofl/common/openflow/cofactionset.cc
  70. +107 −0 src/rofl/common/openflow/cofactionset.h
  71. +264 −0 src/rofl/common/openflow/cofbase.cc
  72. +571 −0 src/rofl/common/openflow/cofbase.h
  73. +108 −0 src/rofl/common/openflow/cofbclist.cc
  74. +101 −0 src/rofl/common/openflow/cofbclist.h
  75. +146 −0 src/rofl/common/openflow/cofbucket.cc
  76. +115 −0 src/rofl/common/openflow/cofbucket.h
  77. +568 −0 src/rofl/common/openflow/cofctrl.cc
  78. +194 −0 src/rofl/common/openflow/cofctrl.h
  79. +737 −0 src/rofl/common/openflow/cofdpath.cc
  80. +371 −0 src/rofl/common/openflow/cofdpath.h
  81. +155 −0 src/rofl/common/openflow/cofinlist.cc
  82. +98 −0 src/rofl/common/openflow/cofinlist.h
  83. +290 −0 src/rofl/common/openflow/cofinst.cc
  84. +270 −0 src/rofl/common/openflow/cofinst.h
  85. +356 −0 src/rofl/common/openflow/cofmatch.cc
  86. +273 −0 src/rofl/common/openflow/cofmatch.h
  87. +1,313 −0 src/rofl/common/openflow/cofpacket.cc
  88. +1,778 −0 src/rofl/common/openflow/cofpacket.h
  89. +489 −0 src/rofl/common/openflow/cofport.cc
  90. +323 −0 src/rofl/common/openflow/cofport.h
  91. +191 −0 src/rofl/common/openflow/cofportlist.cc
  92. +99 −0 src/rofl/common/openflow/cofportlist.h
  93. +1,129 −0 src/rofl/common/openflow/cofrpc.cc
  94. +650 −0 src/rofl/common/openflow/cofrpc.h
  95. +601 −0 src/rofl/common/openflow/coxmatch.cc
  96. +1,605 −0 src/rofl/common/openflow/coxmatch.h
  97. +578 −0 src/rofl/common/openflow/coxmlist.cc
  98. +232 −0 src/rofl/common/openflow/coxmlist.h
  99. +5 −0 src/rofl/common/openflow/extensions/Makefile.am
  100. +61 −0 src/rofl/common/openflow/extensions/cfspentry.cc
  101. +86 −0 src/rofl/common/openflow/extensions/cfspentry.h
  102. +222 −0 src/rofl/common/openflow/extensions/cfsptable.cc
  103. +166 −0 src/rofl/common/openflow/extensions/cfsptable.h
  104. +1,532 −0 src/rofl/common/openflow/openflow11.h
  105. +1,656 −0 src/rofl/common/openflow/openflow12.h
  106. +152 −0 src/rofl/common/openflow/openflow_rofl.h
  107. +7 −0 src/rofl/common/protocols/Makefile.am
  108. +232 −0 src/rofl/common/protocols/clldplist.cc
  109. +92 −0 src/rofl/common/protocols/clldplist.h
  110. +132 −0 src/rofl/common/protocols/clldptlv.cc
  111. +591 −0 src/rofl/common/protocols/clldptlv.h
  112. +236 −0 src/rofl/common/protocols/cpppoelist.cc
  113. +92 −0 src/rofl/common/protocols/cpppoelist.h
  114. +181 −0 src/rofl/common/protocols/cpppoetlv.cc
  115. +451 −0 src/rofl/common/protocols/cpppoetlv.h
  116. +275 −0 src/rofl/common/protocols/farpv4frame.cc
  117. +284 −0 src/rofl/common/protocols/farpv4frame.h
  118. +227 −0 src/rofl/common/protocols/fetherframe.cc
  119. +180 −0 src/rofl/common/protocols/fetherframe.h
  120. +205 −0 src/rofl/common/protocols/ficmpv4frame.cc
  121. +189 −0 src/rofl/common/protocols/ficmpv4frame.h
  122. +423 −0 src/rofl/common/protocols/fipv4frame.cc
  123. +364 −0 src/rofl/common/protocols/fipv4frame.h
  124. +173 −0 src/rofl/common/protocols/flldpframe.cc
  125. +159 −0 src/rofl/common/protocols/flldpframe.h
  126. +195 −0 src/rofl/common/protocols/fmplsframe.cc
  127. +212 −0 src/rofl/common/protocols/fmplsframe.h
  128. +809 −0 src/rofl/common/protocols/fpppframe.cc
  129. +329 −0 src/rofl/common/protocols/fpppframe.h
  130. +695 −0 src/rofl/common/protocols/fpppoeframe.cc
  131. +338 −0 src/rofl/common/protocols/fpppoeframe.h
  132. +235 −0 src/rofl/common/protocols/ftcpframe.cc
  133. +196 −0 src/rofl/common/protocols/ftcpframe.h
  134. +269 −0 src/rofl/common/protocols/fudpframe.cc
  135. +188 −0 src/rofl/common/protocols/fudpframe.h
  136. +188 −0 src/rofl/common/protocols/fvlanframe.cc
  137. +197 −0 src/rofl/common/protocols/fvlanframe.h
  138. +119 −0 src/rofl/common/protocols/lldp.h
  139. +18 −0 src/rofl/common/rofcommon.h
  140. +163 −0 src/rofl/common/thread_helper.h
  141. +7 −0 src/rofl/config/Makefile.am
  142. +360 −0 src/rofl/config/ccli.cc
  143. +74 −0 src/rofl/config/ccli.h
  144. +45 −0 src/rofl/config/cconfigfwdelem.cc
  145. +36 −0 src/rofl/config/cconfigfwdelem.h
  146. +98 −0 src/rofl/config/cconfigport.cc
  147. +53 −0 src/rofl/config/cconfigport.h
  148. +6 −0 src/rofl/experimental/Makefile.am
  149. +337 −0 src/rofl/experimental/cgraph.cc
  150. +187 −0 src/rofl/experimental/cgraph.h
  151. +84 −0 src/rofl/experimental/cofipv4port.cc
  152. +97 −0 src/rofl/experimental/cofipv4port.h
  153. +414 −0 src/rofl/experimental/crib.cc
  154. +118 −0 src/rofl/experimental/crib.h
  155. +8 −0 src/rofl/platform/Makefile.am
  156. +7 −0 src/rofl/platform/unix/Makefile.am
  157. +134 −0 src/rofl/platform/unix/cethport.cc
  158. +122 −0 src/rofl/platform/unix/cethport.h
  159. +167 −0 src/rofl/platform/unix/clinuxport.cc
  160. +77 −0 src/rofl/platform/unix/clinuxport.h
  161. +698 −0 src/rofl/platform/unix/cmmapport.cc
  162. +205 −0 src/rofl/platform/unix/cmmapport.h
  163. +177 −0 src/rofl/platform/unix/cnetmapport.cc
  164. +145 −0 src/rofl/platform/unix/cnetmapport.h
  165. +118 −0 src/rofl/platform/unix/cpipe.cc
  166. +67 −0 src/rofl/platform/unix/cpipe.h
  167. +92 −0 src/rofl/platform/unix/crandom.cc
  168. +77 −0 src/rofl/platform/unix/crandom.h
  169. +179 −0 src/rofl/platform/unix/csyslog.cc
  170. +187 −0 src/rofl/platform/unix/csyslog.h
  171. +196 −0 src/rofl/platform/unix/ctapport.cc
  172. +116 −0 src/rofl/platform/unix/ctapport.h
  173. +149 −0 src/rofl/platform/unix/cunixenv.cc
  174. +57 −0 src/rofl/platform/unix/cunixenv.h
  175. +86 −0 src/rofl/platform/unix/cunixport.cc
  176. +87 −0 src/rofl/platform/unix/cunixport.h
  177. +1 −0 src/rofl/rofl.h
  178. 0 test/.empty
@@ -0,0 +1,29 @@
.*
*.o
*.lo
*.la
*.a
*.log
*.tmp
*.dis
*~
*.orig
*.swp
*.swo
*.m4
Makefile.in
Makefile
.deps
.libs
autom4te.cache
config.*
configure
install-sh
ltmain.sh
missing
depcomp
libtool
m4
!.gitignore
@@ -0,0 +1,3 @@
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -0,0 +1,12 @@
MAINTAINERCLEANFILES = aclocal.m4 config.guess config.sub configure \
depcomp install-sh ltmain.sh Makefile.in missing
SUBDIRS = src
install-exec-hook:
@echo "Install"
uninstall-hook:
@echo "Uninstall"
maintainer-clean-local:
rm -rf m4
@@ -0,0 +1,4 @@
#!/bin/sh
export AUTOMAKE="automake --foreign -a"
autoreconf -f -i
@@ -0,0 +1,2 @@
*
!.gitignore
@@ -0,0 +1,68 @@
AC_INIT(ROFL, 0.1, rofl@bisdn.de, rofl)
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_GNU_SOURCE
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LD
AUTOCONF_ENV="SHELL=/bin/sh"
LT_INIT
AC_ENABLE_STATIC
# Check for debug mode - MUST BE THE FIRST CHECK
AC_MSG_CHECKING(whether to enable debug mode)
debug_default="no"
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [turn on debug mode [default=no]])
, , enable_debug=$debug_default)
if test "$enable_debug" = "yes"; then
CFLAGS="-g -O0"
CXXFLAGS="-g -O0 -fno-inline"
AC_DEFINE(DEBUG)
AC_MSG_RESULT(yes)
else
CXXFLAGS="-O3 -fomit-frame-pointer"
CFLAGS="-O3 --compiler-options -fno-strict-aliasing --compiler-options -fno-inline --compiler-bindir=/usr/bin/g++-4.3"
AC_MSG_RESULT(no)
fi
# Check for profiling mode
AC_MSG_CHECKING(whether to enable profiling mode)
profile_default="no"
AC_ARG_ENABLE(profile,
AS_HELP_STRING([--enable-profile], [turn on profile mode [default=no]])
, , enable_profile=$profile_default)
if test "$enable_profile" = "yes"; then
CFLAGS="$( echo $CFLAGS | sed s/-fomit-frame-pointer//g )"
CXXFLAGS="$( echo $CXXFLAGS | sed s/-fomit-frame-pointer//g )"
CXXFLAGS="$CXXFLAGS -pg"
LDFLAGS="$LDFLAGS -pg"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
#Check libs used
#AC_CHECK_LIB(pthread, pthread_create)
#AC_CHECK_LIB(rt, shm_open)
#AC_CHECK_LIB(cli, ???)
# AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/rofl/platform/Makefile
src/rofl/platform/unix/Makefile
src/rofl/experimental/Makefile
src/rofl/common/protocols/Makefile
src/rofl/common/openflow/extensions/Makefile
src/rofl/common/openflow/Makefile
src/rofl/common/Makefile
src/rofl/Makefile
src/rofl/config/Makefile
])
AC_OUTPUT
@@ -0,0 +1,4 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = rofl
@@ -0,0 +1,10 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = common config platform experimental
export INCLUDES += -I$(abs_srcdir) -I$(abs_builddir)
lib_LTLIBRARIES = librofl.la
librofl_la_SOURCES = rofl.h
librofl_la_LIBADD = common/libcommon.la config/libconfig.la platform/libplatform.la experimental/libexperimental.la
@@ -0,0 +1,10 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = openflow protocols
noinst_LTLIBRARIES = libcommon.la
libcommon_la_SOURCES = caddress.h cctlelem.h cfibentry.h cfwdelem.h cfwdtable.h cmacaddr.h cmempool.h cpacket.h croflexp.h cutbase.h endian_conversion.h rofcommon.h cclock.h cerror.h cfsm.h cfwdentry.h ciosrv.h cmemory.h coflist.h cport.h csocket.h cvastring.h fframe.h thread_helper.h \
caddress.cc cclock.cc cctlelem.cc cerror.cc cfibentry.cc cfsm.cc cfwdelem.cc cfwdentry.cc cfwdtable.cc ciosrv.cc cmacaddr.cc cmemory.cc cmempool.cc coflist.cc cpacket.cc cport.cc croflexp.cc csocket.cc cutbase.cc fframe.cc
libcommon_la_LIBADD= openflow/libopenflow.la protocols/libprotocols.la -lrt
Oops, something went wrong.

0 comments on commit 5afa5f1

Please sign in to comment.