Skip to content

Commit

Permalink
More work towards GPL compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
MurphyMc committed Sep 20, 2011
1 parent 8deee35 commit 6b27d66
Show file tree
Hide file tree
Showing 10 changed files with 832 additions and 1 deletion.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions pox-log.py
@@ -1,4 +1,23 @@
#!/usr/bin/env python #!/usr/bin/env python

# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.


import json import json
import sys import sys
import socket import socket
Expand Down
17 changes: 17 additions & 0 deletions pox.py
@@ -1,5 +1,22 @@
#!/bin/bash - #!/bin/bash -


# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

# If you have PyPy 1.6+ in a directory called pypy alongside pox.py, we # If you have PyPy 1.6+ in a directory called pypy alongside pox.py, we
# use it. # use it.
# Otherwise, we try to use a Python interpreter called python2.7, which # Otherwise, we try to use a Python interpreter called python2.7, which
Expand Down
17 changes: 17 additions & 0 deletions pox/__init__.py
@@ -1,3 +1,20 @@
# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

""" """
This is the POX network controller framework. This is the POX network controller framework.
Expand Down
17 changes: 17 additions & 0 deletions pox/core.py
@@ -1,3 +1,20 @@
# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

""" """
Some of POX's core API and functionality is here, largely in the POXCore Some of POX's core API and functionality is here, largely in the POXCore
class (an instance of which is available as pox.core.core). class (an instance of which is available as pox.core.core).
Expand Down
17 changes: 17 additions & 0 deletions pox/log.py
@@ -1,3 +1,20 @@
# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

""" """
Allows configuring log levels from the commandline. Allows configuring log levels from the commandline.
Expand Down
19 changes: 18 additions & 1 deletion pox/misc/dnsspy.py
@@ -1,3 +1,20 @@
# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

""" """
This is a port of NOX's DNSSpy component. This is a port of NOX's DNSSpy component.
""" """
Expand All @@ -16,7 +33,7 @@ def __init__ (self):


self.listenTo(core.openflow) self.listenTo(core.openflow)


def _handle_ConnectionUpx (self, event): def _handle_ConnectionUp (self, event):
msg = of.ofp_flow_mod() msg = of.ofp_flow_mod()
msg.match = of.ofp_match() msg.match = of.ofp_match()
msg.match.dl_type = ethernet.ethernet.IP_TYPE msg.match.dl_type = ethernet.ethernet.IP_TYPE
Expand Down
17 changes: 17 additions & 0 deletions pox/web/webcore.py
@@ -1,3 +1,20 @@
# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

""" """
Webcore is a basic web server framework based on the SocketServer-based Webcore is a basic web server framework based on the SocketServer-based
BaseHTTPServer that comes with Python. The big difference is that this BaseHTTPServer that comes with Python. The big difference is that this
Expand Down
17 changes: 17 additions & 0 deletions pox/web/webmessenger.py
@@ -1,3 +1,20 @@
# Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# POX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with POX. If not, see <http://www.gnu.org/licenses/>.

""" """
Connects the POX messenger bus to HTTP. Connects the POX messenger bus to HTTP.
Requires the "webserver" component. Requires the "webserver" component.
Expand Down
19 changes: 19 additions & 0 deletions pox/web/www_root/webmessenger.js
@@ -1,3 +1,22 @@
/*************************************************************************
Copyright 2011 James McCauley
This file is part of POX.
POX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
POX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with POX. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/

// This class communicates with POX's webmessenger component. // This class communicates with POX's webmessenger component.
// It could be improved (especially with some tweaks to // It could be improved (especially with some tweaks to
// webmessenger. Feel free to contribute improvements. :) // webmessenger. Feel free to contribute improvements. :)
Expand Down

0 comments on commit 6b27d66

Please sign in to comment.