Ben Pfaff
fe867d8d71
Add --detach and --pidfile options to daemons.
2008-06-13 13:03:51 -07:00
Ben Pfaff
7b351ea076
Factor learning switch out of controller into library.
...
This prepares for adding "fail-open" support to the secchan, which
will require the secchan to act as a learning switch.
2008-06-09 10:27:49 -07:00
Ben Pfaff
b2f43905ea
Make in-band communication work.
2008-05-28 10:46:54 -07:00
Ben Pfaff
59ba307325
Make the OFPP_LOCAL port work in the kernel OpenFlow implementation.
2008-05-28 10:46:54 -07:00
Ben Pfaff
711c48de9d
Break MAC learning out of controller into library.
...
This is preparation for use of MAC learning in the secure channel.
2008-05-28 10:46:54 -07:00
Ben Pfaff
23e054dcb6
New functions for getting and setting network device flags.
...
This allows us to open network devices without bringing them up
and setting them for promiscuous mode, which will be useful in the
secchan for in-band communication.
2008-05-28 10:46:54 -07:00
Ben Pfaff
6b8436f66b
Expose device IP addresses through netdev.
...
This will be useful for the secure channel later.
2008-05-28 10:46:54 -07:00
Ben Pfaff
735683ac61
Move netdev from switch to lib.
...
This is in preparation for the secure channel wanting to access
network devices.
2008-05-28 10:46:54 -07:00
Justin Pettit
f8704c4470
Mark the "vlan_eth_header" struct as packed, because it's getting padded on some architectures.
...
-- Reported by GigaFin --
2008-05-06 22:20:58 -07:00
Justin Pettit
2f009daf82
Clean-up OpenFlow main header a bit.
2008-05-04 21:05:51 -07:00
Ben Pfaff
f7bf3916ff
Implement aggregate flow statistics in kernel and userspace switches.
2008-05-02 16:58:33 -07:00
Ben Pfaff
4f5b4efc54
Send actions as part of flow statistics messages.
2008-05-02 10:58:53 -07:00
Ben Pfaff
2e12784892
Add max_idle field to flow stats messages.
2008-05-02 10:58:52 -07:00
Justin Pettit
917160e384
- Add priority to flow expiration messages.
...
- Clear contents of "pad" field port status messages.
2008-05-01 17:11:29 -07:00
Ben Pfaff
3b9c97ee01
Implement new statistics format in kernel and userspace switches.
...
This change really cuts the muster!
2008-05-01 17:04:44 -07:00
Ben Pfaff
9e6949d69f
Drop prototype for function that does not exist.
2008-05-01 17:02:31 -07:00
Ben Pfaff
4c411bcb40
New utility function xmemdup().
2008-05-01 17:02:31 -07:00
Justin Pettit
66b5c90376
- Add support for OpenFlow error message type.
...
- Ensure OpenFlow messages fit in 16-bit length field.
2008-04-30 17:38:03 -07:00
Justin Pettit
d1d2f3f321
- On flow entries with wildcards, match priority field when doing a "strict" delete.
...
- Remove group_id from flow entries.
- Show priority when print flow mod messages.
2008-04-29 15:00:28 -07:00
Ben Pfaff
3ee68a5b11
Fix openflow.h compilation with GCC 2.95.
...
Necessary because older Linux 2.4 releases will only compile with GCC 2.95.
2008-04-29 10:19:36 -07:00
Ben Pfaff
b73abcfdc3
Add missing NLM_F flags constants (oops).
2008-04-28 14:16:57 -07:00
Ben Pfaff
9b97611f42
Fix typo in comment.
2008-04-28 13:52:27 -07:00
Justin Pettit
44e9d4f5fc
Clean-up related to supporting priorities...mostly suggestions from Ben.
2008-04-26 14:27:32 -07:00
Justin Pettit
bfe3b4df89
- Add support for flow entry priorities.
...
- Fix "flow-add" action for dpctl.
2008-04-26 14:08:41 -07:00
Ben Pfaff
9b45107fb7
Improve list traversal macros.
...
Make LIST_FOR_EACH[_SAFE] variable take logically correct value upon loop termination.
Also, add regression tests for linked list routines, to ensure that this
change does not break code.
Also, add new macro LIST_FOR_EACH_REVERSE.
2008-04-26 14:03:16 -07:00
Ben Pfaff
a3505dd08f
Add missing header to Makefile.am.
2008-04-26 09:13:31 -07:00
Ben Pfaff
c5f976a78f
Get rid of build dependency on netlink-related headers from Linux 2.6.
...
This fixes userspace program build problems on top of systems with
Linux 2.4 headers.
2008-04-24 16:29:53 -07:00
Justin Pettit
fc2925fecf
Add priority field to flow_mod...code to support this forthcoming.
2008-04-21 18:13:42 -07:00
Justin Pettit
95a73db4c2
Mark structures as packed that cause alignment problems on architectures like ARM.
2008-04-21 13:46:36 -07:00
Justin Pettit
0d3a0643c4
Switch from "stat" to "stats" everywhere.
2008-04-16 15:38:25 -07:00
Justin Pettit
541d0fee0d
- Keep datapath config in host-byte order (and fix a couple of bugs related to this).
...
- Fix type for "get config" replies.
2008-04-16 14:09:27 -07:00
Justin Pettit
17c21631d5
Use new OpenFlow protocol versioning scheme.
2008-04-16 10:39:21 -07:00
Justin Pettit
d485c3f0ce
Finish removing references to the MAC table.
2008-04-15 13:42:35 -07:00
Ben Pfaff
6f8d45bf7d
Merge remote branch 'repo/master' into stats
...
Conflicts:
datapath/table-mac.c
2008-04-15 09:57:38 -07:00
Ben Pfaff
d2552c15f3
Make table_id in OpenFlow messages 8 bits, since 255 should be enough.
...
Suggested by Justin.
2008-04-15 09:56:46 -07:00
Ben Pfaff
0a1a667973
Make duration in ofp_flow_stats a 32-bit quantity (instead of 16).
...
Otherwise duration is capped at under 24 hours.
Suggested by Justin.
2008-04-15 09:56:41 -07:00
Justin Pettit
e28564c5fa
Add support for OFPP_TABLE virtual port.
2008-04-11 17:40:05 -07:00
Justin Pettit
0a9024a2d7
Changes based on feedback from GigaFin.
2008-04-10 15:50:25 -07:00
Ben Pfaff
f6cae73ec3
Implement OpenFlow statistics in switches and in dpctl.
...
This has two notable omissions. First, only at most 4k of flow statistics
are reported. Second, aggregate statistics are not yet supported. Both
of these are fairly easily fixable, just not fixed yet.
2008-04-04 16:22:40 -07:00
Ben Pfaff
f30d8168a7
Factor out parsing vconn-ssl options.
2008-04-04 16:22:23 -07:00
Ben Pfaff
a14c841f32
Factor out printing the list of available vconns.
2008-04-04 16:22:23 -07:00
Ben Pfaff
60a87c9b00
Break data_hello and control_hello messages into multiple messages.
...
We want to allow multiple OpenFlow connections to a switch, so that
dpctl and other management tools can also connect to a switch that
is connecte to the controller. These tools will want to fetch the
information in the data_hello message, but currently this can only
be done by sending a control_hello message, which changes the
switch configuration state. So breaking the hello messages up into
multiple different messages, only some of which affect configuration
state, cures the problem.
Also, clean up the kernel datapath a bit, by adding helper functions
for allocating and resizing Generic Netlink messages that encapsulate
OpenFlow messages.
2008-04-04 16:22:21 -07:00
Ben Pfaff
14da11884d
Rename controller_connection to rconn and use it in secchan also.
...
Also, clean up code and add comments.
2008-04-04 16:20:55 -07:00
Ben Pfaff
c2fa32706e
Add new functions for pretty-printing an OpenFlow message to a string.
...
This makes it possible to send pretty-printed versions of OpenFlow
messages to vlog.
2008-04-04 16:20:55 -07:00
Ben Pfaff
0a0a1dbe4c
Add vlog functions and macros for testing whether a module and level are enabled.
2008-04-04 16:20:54 -07:00
Ben Pfaff
d819180e3d
Add comments to queue module.
2008-04-01 09:52:59 -07:00
Ben Pfaff
327a6be24f
Clean up and comment poll-loop module.
2008-04-01 09:52:59 -07:00
Ben Pfaff
57ed58bca4
Get rid of ip.h, migrating its users to packets.h.
2008-04-01 09:52:59 -07:00
Ben Pfaff
d927b51cb4
Get rid of mac.h, migrating its users to packets.h.
...
As a consequence, this fixes tests for multicast and local Ethernet
addresses, which formerly tested for the high bits but should
have tested for the low bits of the first octet.
2008-04-01 09:52:59 -07:00
casado
3f0201adb5
Update copyright on all non-GPL files
2008-03-27 20:12:18 -07:00