summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd/util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a socket_setport() util function, in addition to socket_getport(),reyk2016-11-151-1/+19
| | | | | and use it in switchctl to set a default port for "dump". No functional change for switchd itself.
* Implement socket server code that properly handles async I/O, partialreyk2016-09-301-1/+22
| | | | | | | | | | | 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@
* Add print_hex() for debugging of received packets (from iked)reyk2016-09-291-1/+22
|
* handle AF_UNIX sockaddrsreyk2016-09-291-2/+7
|
* Import switchd(8), a basic WIP OpenFlow implementation for OpenBSD.reyk2016-07-191-0/+334
switchd consists of two parts: 1. switchd(8) and switchctl(8), an OpenFlow controller or "vswitch". 2. switch(4), an OpenFlow-aware kernel "bridge". This the 1st part, the driver will be imported later. The code will remain disabled for a while, but it helps development to have it in the tree. switchd currently supports partial OpenFlow 1.0, but the goal is to use OpenFlow 1.3.5 instead (switch(4) already does 1.3.5). For more background information see: http://www.openbsd.org/papers/bsdcan2016-switchd.pdf https://youtu.be/Cuo0qT-lqig With help from yasuoka@ goda@ Import discussed with deraadt@