Up to [local] / src / usr.sbin / switchd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.16, Thu Nov 11 09:59:19 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +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.15 / (download) - annotate - [select for diffs], Tue Apr 20 21:11:56 2021 UTC (3 years, 1 month ago) by dv
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)
Move TAILQ initialization to files where they are used. These priv-sep daemons all follow a similar design and use TAILQs for tracking control process connections. In most cases, the TAILQs are initialized separate from where they are used. Since the scope of use is generally confined to a specific control process file, this commit also removes any extern definitions and exposing the TAILQ structures to other compilation units. ok bluhm@, tb@
Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 10 13:21:39 2018 UTC (5 years, 9 months ago) by akoshibe
Branch: MAIN
CVS Tags: 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
Changes since 1.13: +16 -5 lines
Diff to previous 1.13 (colored)
Mirror bluhm's fixes for proc.c daemons to dup /dev/null for child processes in switchd(8). OK henning@ bluhm@
Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 5 08:16:24 2018 UTC (5 years, 10 months ago) by mestre
Branch: MAIN
Changes since 1.12: +1 -4 lines
Diff to previous 1.12 (colored)
Remove cpath pledge(2) promise. We decided that not deleting the unix control sockets cause no harm and this way we close another attack surface by not allowing the daemon to create/delete any more files. OK akoshibe@ florian@
Revision 1.12 / (download) - annotate - [select for diffs], Mon May 29 12:56:26 2017 UTC (7 years ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)
sync proc.c changes from relayd/httpd
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 17 22:10:56 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)
Nuke some whitespace that keeps poking me in the eye as I try to steal code.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 9 14:49:22 2017 UTC (7 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
Stop accessing verbose and debug variables from log.c directly. This replaces log_verbose() and "extern int verbose" with the two functions log_setverbose() and log_getverbose(). Pointed out by benno@ OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 16 15:32:42 2016 UTC (7 years, 6 months ago) by rzalamena
Branch: MAIN
Changes since 1.8: +25 -6 lines
Diff to previous 1.8 (colored)
Sync switchd(8) and vmd(8) with the latest proc.c changes. This sync basically imports the imsg_flush() fix from reyk@ in httpd(8). ok reyk@
Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 11 07:45:26 2016 UTC (7 years, 8 months ago) by rzalamena
Branch: MAIN
Changes since 1.7: +91 -79 lines
Diff to previous 1.7 (colored)
Sync proc.c file vmd(8) and switchd(8). New changes: * Fix msgbuf_write() usage idiom; * Add context (function name) that fatal()ed; * Use less fds on startup; ok mlarkin@, reyk@
Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 5 17:31:28 2016 UTC (7 years, 8 months ago) by rzalamena
Branch: MAIN
Changes since 1.6: +8 -2 lines
Diff to previous 1.6 (colored)
Sync with httpd(8) proc file. Check for dup2() usage to avoid oldd == newd and remove the CLOEXEC with fcntl() if necessary. ok reyk@
Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 5 17:09:59 2016 UTC (7 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.5: +5 -1 lines
Diff to previous 1.5 (colored)
Call setsid() to create a new session for the executed processes. From deraadt@ OK rzalamena@
Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 5 16:58:19 2016 UTC (7 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.4: +9 -3 lines
Diff to previous 1.4 (colored)
sync proc.c with vmd: add p_pw to specify a non-standard user for a process. OK rzalamena@
Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 19 09:14:38 2016 UTC (7 years, 8 months ago) by rzalamena
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
Fix 'const char *' qualifier removal warning by casting it out with uintptr_t. It is safe here to pass a 'const' to exec*(). improved by and ok millert@
Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 18 13:17:40 2016 UTC (7 years, 8 months ago) by rzalamena
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)
Kill p_env from proc.c. The p_env variable was not being used seriously and it was always a copy of ps->ps_env. You might access the env variable now with: p->p_ps->ps_env. ok reyk@
Revision 1.2 / (download) - annotate - [select for diffs], Wed Sep 14 13:46:51 2016 UTC (7 years, 8 months ago) by rzalamena
Branch: MAIN
Changes since 1.1: +334 -186 lines
Diff to previous 1.1 (colored)
Teach switchd(8) how to fork+exec. 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@
Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 19 16:54:26 2016 UTC (7 years, 10 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0
Import switchd(8), a basic WIP OpenFlow implementation for OpenBSD. 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@