Up to [local] / src / usr.sbin / switchd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.11, Thu Nov 11 09:59:19 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Retire switchd and switchctl. While interesting they never managed to really get into a usable state. The OpenFlow API is mostly superseeded by P4 and so this is a bit of a dead end. OK akoshibe@ yasuoka@ deraadt@ kn@ patrick@ sthen@
Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 22 15:31:43 2016 UTC (7 years, 5 months ago) by rzalamena
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)
Learn remote switch flow tables properties to find out where to install the default table-miss flow for OpenFlow 1.3.5. This is enough to make switchd(8) to work with switch(4) and HP 3800 switch out-of-the-box. ok reyk@
Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 2 14:39:46 2016 UTC (7 years, 6 months ago) by rzalamena
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)
Implement the connection state machine for OpenFlow 1.0 and 1.3 to detect invalid state transitions and invalid protocol version switching after the hello messages exchange. ok reyk@
Revision 1.8 / (download) - annotate - [select for diffs], Thu Nov 17 16:24:00 2016 UTC (7 years, 6 months ago) by rzalamena
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)
Fix some styles issues: break big lines and remove some useless spaces.
Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 11 16:59:33 2016 UTC (7 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.6: +14 -94 lines
Diff to previous 1.6 (colored)
Remove "workarounds" for the read and write path that were needed to handle /dev/switch connections that didn't quite behave like TCP connections (no support for writev, no partial reads). With rzalamena's changes to switch(4), it now works as expected and doesn't need any special treatment anymore. OK rzalamena@
Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 12 19:07:42 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)
Start reworking the "device" support in switchd: Once connected, a device is just an fd that is connected to a switch, either via TCP or via /dev/switch. Change the switchctl from "device add" to "connect" etc. This change is an intermediate step towards other changes, including the configuration grammar, so a few things will be left undocumented for now. switchctl(8) examples, switchctl connect /dev/switch0 switchctl connect /dev/switch0 forward-to 10.1.1.1 switchctl connect 127.0.0.1 switchctl connect 127.0.0.1 forward-to 10.1.1.1 switchctl disconnect /dev/switch0 Discussed with rzalamena@
Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 7 08:31:08 2016 UTC (7 years, 7 months ago) by rzalamena
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)
Add support for multipart replies and implement a simple ofp 1.3.5 error message sending function. ok reyk@
Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 5 15:28:15 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.3: +7 -6 lines
Diff to previous 1.3 (colored)
I added a second buffer as fix for the fact that /dev/switch doesn't act like a socket. Unfortunately, this broke handling of jumbo buffers in the adjusted version of ofrelay. Don't abort the connection until there is no more data to read or the connection has been closed. Problem out by rzalamena@
Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 5 12:01:15 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)
More debugging
Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 30 12:33:43 2016 UTC (7 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.1: +20 -7 lines
Diff to previous 1.1 (colored)
Disable write events if there is nothing to write.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 30 11:57:57 2016 UTC (7 years, 8 months ago) by reyk
Branch: MAIN
Implement socket server code that properly handles async I/O, partial messages, multiple messages per buffer and important things like connection limits and file descriptor accounting. It works with TCP connections as well as switch(4). The ofrelay.c part replaces networking that was in ofp.c and will soon handle all socket connections of switchd. It is called "ofrelay" because it will be used as client, server, and forwarder. OK rzalamena@