Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-13 | Implement simple feature request/reply support so we can get more | Rafael Zalamena | |
information about the target switch and its datapath id. Also I commented out some requests that are not currently being used, like table properties, flow dump and description. ok reyk@ | |||
2016-10-12 | Start reworking the "device" support in switchd: Once connected, a | Reyk Floeter | |
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@ | |||
2016-10-12 | Teach switchd(8) how to send set_config to the switch so we can be able | Rafael Zalamena | |
to get packet payloads from switch(4). ok reyk@ | |||
2016-10-12 | copy updated log.c from vmd: for correctness, save errno when doing | Reyk Floeter | |
additional actions before printing it. OK rzalamena@ | |||
2016-10-11 | Sync proc.c file vmd(8) and switchd(8). | Rafael Zalamena | |
New changes: * Fix msgbuf_write() usage idiom; * Add context (function name) that fatal()ed; * Use less fds on startup; ok mlarkin@, reyk@ | |||
2016-10-07 | Move some shared code into a new file. | Reyk Floeter | |
Discussed with rzalamena@ | |||
2016-10-07 | Add support for multipart replies and implement a simple ofp 1.3.5 error | Rafael Zalamena | |
message sending function. ok reyk@ | |||
2016-10-06 | Switch switchd to the _switchd user. | Reyk Floeter | |
2016-10-05 | Sync with httpd(8) proc file. Check for dup2() usage to avoid oldd == newd | Rafael Zalamena | |
and remove the CLOEXEC with fcntl() if necessary. ok reyk@ | |||
2016-10-05 | Call setsid() to create a new session for the executed processes. | Reyk Floeter | |
From deraadt@ OK rzalamena@ | |||
2016-10-05 | sync proc.c with vmd: add p_pw to specify a non-standard user for a process. | Reyk Floeter | |
OK rzalamena@ | |||
2016-10-05 | Remove ofp_validate_header() here | Reyk Floeter | |
2016-10-05 | Move ofp_validate_header() to ofp10.c until we have a better place | Reyk Floeter | |
2016-10-05 | I added a second buffer as fix for the fact that /dev/switch doesn't | Reyk Floeter | |
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@ | |||
2016-10-05 | More debugging | Reyk Floeter | |
2016-09-30 | Remove local copy of ofp.h and use net/ofp.h instead | Reyk Floeter | |
2016-09-30 | Disable write events if there is nothing to write. | Reyk Floeter | |
2016-09-30 | Open next available tap(4) device instead of just tap0 | Reyk Floeter | |
2016-09-30 | Implement socket server code that properly handles async I/O, partial | Reyk Floeter | |
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@ | |||
2016-09-29 | Add print_hex() for debugging of received packets (from iked) | Reyk Floeter | |
2016-09-29 | Rename ofp_send to ofp_output | Reyk Floeter | |
2016-09-29 | Teach switchd(8) how to request flow entries and how to validate the | Rafael Zalamena | |
request/reply. With this we get the OXM type/value printing for all directions. | |||
2016-09-29 | handle AF_UNIX sockaddrs | Reyk Floeter | |
2016-09-29 | Replace memset in ibuf_zero with explicit_bzero as done in iked. | Reyk Floeter | |
2016-09-29 | Use the macro OFP_ALIGN() to find alignment instead of rolling my own way. | Rafael Zalamena | |
ok reyk@ | |||
2016-09-29 | Teach switchd(8) how to ask for and debug equipment description | Rafael Zalamena | |
requests / replies. | |||
2016-09-29 | Teach switchd(8) some multipart table properties request/parse code to | Rafael Zalamena | |
handle basic display. | |||
2016-09-28 | Use the packed attribute for every structure that is used in the wire | Rafael Zalamena | |
messages. ok reyk@ | |||
2016-09-28 | Always ask the switch to send the whole packet unbuffered so we can | Rafael Zalamena | |
analyze the content of the packet and not truncate it when sending packet_out. ok reyk@ | |||
2016-09-27 | Fix previous: don't attempt to write a NULL packet to the tap device. | Reyk Floeter | |
Also print a debug message if the packet has been truncated by the switch. | |||
2016-09-27 | OpenFlow PACKET_IN can send truncated packets; this only makes sense | Reyk Floeter | |
if the switch buffers packets, otherwise we might end up forwarding truncated packets to the network with the PACKET_OUT response. So, for now, only close the connection if the packet is not buffered by the switch but truncated. OK rzalamena@ | |||
2016-09-26 | Teach switchd(8) how to create flows for new connections using OpenFlow | Rafael Zalamena | |
1.3.5, implement the OXM filters to use with flow matching and Set-Action, prepare code to receive group management and add dummy flow_removed handler to avoid closing the connection on idle flows. | |||
2016-09-26 | Set pkt_buf variable on incoming packet_in messages. | Rafael Zalamena | |
small style correction and ok reyk@ | |||
2016-09-26 | Fix a memory leak and a loop in the ofp_read() that happens every time a | Rafael Zalamena | |
message is received or a socket is closed. This is just a temporary fix to avoid switchd(8) from hogging the cpu and leaking memory while testing. ok reyk@ | |||
2016-09-26 | Enable more debug messages to help developing flow modification messages. | Rafael Zalamena | |
ok reyk@ | |||
2016-09-25 | Correct the flag listing for switchd(8) and add a files section for the | Jonathan Gray | |
configuration file. Sync usage() with the result. With feedback from and ok jmc@ | |||
2016-09-23 | It is ok to call free() on NULL pointers. | Rafael Zalamena | |
ok reyk@ | |||
2016-09-20 | Unbreak logging for children process in switchd(8). log_init/verbose() | Rafael Zalamena | |
must be called before proc_init() otherwise child process won't have this configured. ok reyk@ | |||
2016-09-19 | Fix 'const char *' qualifier removal warning by casting it out with | Rafael Zalamena | |
uintptr_t. It is safe here to pass a 'const' to exec*(). improved by and ok millert@ | |||
2016-09-18 | Kill p_env from proc.c. The p_env variable was not being used seriously and | Rafael Zalamena | |
it was always a copy of ps->ps_env. You might access the env variable now with: p->p_ps->ps_env. ok reyk@ | |||
2016-09-15 | Teach switchd(8) how to shutdown using close() instead of kill(). | Rafael Zalamena | |
This commit mostly removes the parent SIGCHLD handler, the rest of the code is already in proc.c. ok reyk@ | |||
2016-09-14 | Teach switchd(8) how to fork+exec. | Rafael Zalamena | |
Note: this daemon has the -Wcast-qual compilation flag which trigger a warning that wasn't enable in httpd(8) or relayd(8). This will be fixed in a next diff and then synchronized with other daemons. ok reyk@ | |||
2016-08-30 | does not need sys/param.h | Theo de Raadt | |
2016-08-25 | goda@ contributed most of the OpenFlow 1.3.5 parts in ofp.h (for the | Reyk Floeter | |
"still-unreleased" switch(4) driver), so it is only fair to add his copyright. This header file will eventually move to net/ofp.h. | |||
2016-08-08 | Create socket with SOCK_NONBLOCK instead of using fcntl() without the | Rafael Zalamena | |
proper flag handling. ok reyk@ | |||
2016-08-08 | Handle imsg_read() EAGAIN like the man page code example. | Rafael Zalamena | |
ok reyk@ | |||
2016-08-08 | Fix previous. Obvously the condition is reversed. | YASUOKA Masahiko | |
2016-08-08 | Split ofcconn into switch part and connection part to make the switch | YASUOKA Masahiko | |
part be able to have multiple connections. ok reyk. | |||
2016-07-22 | "wpath" is needed in the parent pledge when using the /dev/switch0 device. | Reyk Floeter | |
2016-07-21 | Add basic support for OpenFlow 1.3 PACKET_IN+PACKET_OUT, | Reyk Floeter | |
no FLOW_MOD yet. |