9front - general discussion about 9front
 help / color / mirror / Atom feed
From: k0ga <k0ga@shike2.com>
To: 9front@9front.org
Subject: Add swap server support in dhcpd
Date: Tue, 6 Nov 2018 08:00:43 +0000	[thread overview]
Message-ID: <20181106080043.GA93742@u.2f30.org> (raw)

--- a/sys/src/cmd/ip/dhcpd/dhcpd.c	Mon Oct 22 00:16:04 2018 +0200
+++ b/sys/src/cmd/ip/dhcpd/dhcpd.c	Tue Nov 06 07:11:54 2018 +0000
@@ -1186,6 +1186,9 @@
 		case OBnetbiosns:
 			a[na++] = "@wins";
 			break;
+		case OBswapserver:
+			a[na++] = "@swap";
+			break;
 		case OBsmtpserver:
 			a[na++] = "@smtp";
 			break;
@@ -1256,6 +1259,10 @@
 			j = lookupserver("www", addrs, nelem(addrs), t);
 			addrsopt(rp, OBwwwserver, addrs, j);
 			break;
+		case OBswapserver:
+			j = lookupserver("swap", addrs, nelem(addrs), t);
+			addrsopt(rp, OBswapserver, addrs, j);
+			break;
 		case OBntpserver:
 			j = lookupserver("ntp", addrs, nelem(addrs), t);
 			addrsopt(rp, OBntpserver, addrs, j);
--- a/sys/man/8/dhcpd	Mon Oct 22 00:16:04 2018 +0200
+++ b/sys/man/8/dhcpd	Tue Nov 06 07:56:00 2018 +0000
@@ -159,6 +159,9 @@
 the default boot file;
 see
 .IR ndb (6)
+.TP
+.B swap
+used by Unix machines for boot NFS server
 .PD
 .PP
 .I Dhcpd


                 reply	other threads:[~2018-11-06  8:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181106080043.GA93742@u.2f30.org \
    --to=k0ga@shike2.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).