Ben Pfaff
9dc896a69c
Factor common SNAT code into new functions.
2008-11-13 12:44:04 -08:00
Ben Pfaff
490098aa4d
Make snat_skb() skb argument const.
...
After all, it doesn't modify it.
2008-11-13 12:38:45 -08:00
Ben Pfaff
aad1311495
Don't process packets in NAT that aren't destined for us.
...
This time for sure!
2008-11-13 12:38:45 -08:00
Ben Pfaff
c8833cd642
Orphan and clone packets transmitted on dp_dev (proper fix for bug #478 ).
...
We need to orphan packets transmitted on dp_dev so that any socket that
the packets came from is no longer charged for them. If we don't do
this, then the sk_buff will be destructed eventually, but it is
harder to predict when.
We need to clone packets because we are sticking them on
&dp_dev->xmit_queue, which is done by modifying the sk_buff, which we
can only do if it is not shared.
2008-11-13 12:38:44 -08:00
Ben Pfaff
28bbd8e364
Always compile openflow modules with debug information.
2008-11-13 12:38:44 -08:00
Ben Pfaff
2371dd3d67
Check kmalloc() return value.
2008-11-11 12:31:26 -08:00
Ben Pfaff
3a5cc3f9e7
Fix typo: = should be ==
2008-11-11 12:31:26 -08:00
Ben Pfaff
f7e9953b8d
Stopgap fix for bug #478 , where kernel panics on SNAT to input port.
2008-11-10 17:45:23 -08:00
Ben Pfaff
8d19e7aebf
Fix " is running" and " is not running" messages from openflow-switch init.d
...
With the "secchan" name in there it makes a lot more sense!
2008-11-10 13:56:11 -08:00
Ben Pfaff
d1a5df56c0
Make openflow-switch depend on dmidecode, procps instead of acpi-support.
...
acpi-support pulls in a lot of stuff we really don't want or need, such
as various X11-related stuff. Being more specific reduces our
dependencies.
2008-11-10 10:43:18 -08:00
Ben Pfaff
81c64138e7
Add build number to kernel modules built via Debian packaging.
2008-11-10 10:10:02 -08:00
Ben Pfaff
9c13939e18
Add --with-build-number configure argument and support in debian/rules.
2008-11-07 09:22:05 -08:00
Justin Pettit
7b8a8c509f
Add --monitor flag to default init scripts for secchan.
2008-11-06 12:42:07 -08:00
Ben Pfaff
67e15579a7
New package openflow-dbg for debugging symbols for the rest of OpenFlow.
2008-11-06 10:25:08 -08:00
Ben Pfaff
40840f6a54
Fix typo in code to set core limit that broke the openflow-switch init script.
2008-11-06 10:07:41 -08:00
Ben Pfaff
91bdbe0c01
Add openflow-switch settings for the limit on core files.
2008-11-05 15:48:59 -08:00
Ben Pfaff
08ce9884b9
Add new Debian package "corekeeper" to centralize and reap core files.
2008-11-05 15:48:59 -08:00
Justin Pettit
1b557ee56c
Rename switchmon to switchui.
2008-11-05 15:24:29 -08:00
Ben Pfaff
623db5c2ca
Ignore openflow-monitor and openflow-wdt build directories.
2008-11-05 14:07:15 -08:00
Justin Pettit
243fd1721d
Add dist_sbin_SCRIPTS make target.
2008-11-05 13:01:05 -08:00
Justin Pettit
f25e41f017
Have git ignore the monitor and wdt packaging links.
2008-11-05 13:00:45 -08:00
Ben Pfaff
0e061502c9
When a new OpenFlow kernel module package is installed, restart the switch.
...
This helps to ensure that the secchan and the kernel module are exactly
the same version.
2008-11-05 10:22:41 -08:00
Ben Pfaff
8798af6e81
Unload kernel module when stopping switch, in Debian init scripts.
...
This way, we have a better chance at ensuring that the secchan and the
kernel module are exactly the same version.
2008-11-05 10:20:04 -08:00
Ben Pfaff
a4d3f61b0a
Add required "subst" script to EXTRA_DIST.
2008-11-05 10:08:47 -08:00
Ben Pfaff
9953943475
Move "update" remote command from base secchan into Debian packaging.
...
The update command only works with Debian anyway, so there's no point
in installing it elsewhere.
2008-11-05 10:04:31 -08:00
Ben Pfaff
45fd544a07
New switch remote command for setting configuration parameters.
2008-11-05 10:03:49 -08:00
Ben Pfaff
ce2ff80d67
Make ofp-switch-setup preserve config variables that it does not set itself.
...
Before, it would delete them. This probably kept ofp-switch-setup from
working at all given the changes in openflow-switch.default. Now, it
should do better (but it has not been tested).
2008-11-05 10:03:07 -08:00
Ben Pfaff
f2c6ec1f77
Add "execute" to dpctl usage message.
2008-11-04 16:45:21 -08:00
Ben Pfaff
7f33221139
Fix openflow-switch log rotation.
...
The vlogconf command syntax was wrong. The pidfile also didn't contain
the right pid (which was fixed in the previous commit).
2008-11-04 16:14:00 -08:00
Ben Pfaff
fe6988251d
Create vlog sockets after daemonizing, so that pidfiles can be used.
...
Otherwise, pidfiles contain the process ID of the process that forked
and exited, so that "vlogconf --target <program.pid>" will fail.
2008-11-04 16:14:00 -08:00
Justin Pettit
efffd49643
Dump more detailed information about system state from get-logs.
2008-11-04 15:02:04 -08:00
Ben Pfaff
70ebdff4f8
Use "set -e" command instead of "#! /bin/sh -e" magic.
...
Otherwise, running the script through an explicit shell invocation, such
as "sh -x <script>" for debugging, will fail to set -e and therefore the
script's behavior will change.
2008-11-04 14:26:38 -08:00
Ben Pfaff
67d31bee42
Add missing dependency on openssl to openflow-pki.
...
Otherwise the ofp-pki script cannot execute it.
2008-11-04 14:24:18 -08:00
Ben Pfaff
af26d107aa
Add build number to datapath version and --version output from programs.
2008-11-04 14:10:00 -08:00
Ben Pfaff
a660f93e18
In reboot script, send SIGUSR1 to ofp-switchmon to make it display "Rebooting".
2008-11-04 09:34:26 -08:00
Ben Pfaff
0202d2c761
Call VLOG_WARN before send_child_message(), to get correct errno value.
...
Otherwise we end up with nonsense like "failed to stat...: Success" in
the log.
2008-11-03 17:04:22 -08:00
Ben Pfaff
72c1cf8277
Fix location of installed commands.
2008-11-03 17:03:22 -08:00
Ben Pfaff
3eeebb50aa
Pass --enable-snat to configure for datapath module also.
2008-11-03 16:26:51 -08:00
Ben Pfaff
8872d86328
Make COMMANDS option in openflow-switch defaults file work.
...
The setting was being accidentally ignored, so commands like "reboot", etc.
would not work at all.
2008-11-03 10:45:38 -08:00
Ben Pfaff
f314a833ae
Add libncurses5-dev as build dependency for openflow.
2008-10-31 14:14:22 -07:00
Ben Pfaff
b5a4509474
Implement log rotation in openflow-switch.
2008-10-31 14:09:53 -07:00
Ben Pfaff
02074909ec
Make secchan log to file by default.
2008-10-31 14:09:53 -07:00
Ben Pfaff
77d9bc9026
Add /var/log/openflow directory to openflow-common.
...
This ensures that every system with OpenFlow packages will have this
directory available for logging.
2008-10-31 14:09:53 -07:00
Ben Pfaff
ca7265a956
Send openssl output to logfile on "ofp-pki self-sign" also.
2008-10-31 14:09:53 -07:00
Ben Pfaff
bceb2c3912
Don't make ofp-pki --log option relative to log directory.
...
That behavior may have made sense, but it was too surprising.
2008-10-31 14:09:53 -07:00
Ben Pfaff
8dee5029d8
Put ofp-pki logfile in log directory instead of in pki directory.
...
This should fix problems with trying to log on a machine that doesn't have
openflow-pki installed (because such machines didn't have the pki
directory). Every machine needs the log directory.
2008-10-31 14:09:53 -07:00
Ben Pfaff
2e424547ff
Fix openflow-datapath-source bugs added in "Simplify debian/rules..." commit.
2008-10-31 14:09:53 -07:00
Ben Pfaff
aaab8d4cf0
Add settings for switch netmask and gateway for in-band mode to init script.
...
Previously we supported setting a switch IP address but not those
parameters, which are obviously required also.
2008-10-31 14:09:53 -07:00
Ben Pfaff
4f76bd3121
Add extension hooks to debian/rules.
2008-10-31 14:09:53 -07:00
Ben Pfaff
480d4a9a7b
Move ofp-switch-config into new package openflow-switch-config.
...
This reduces the openflow-switch package's number of dependencies, making
it easier to install.
2008-10-31 14:09:53 -07:00