Re: [patch] Skip DHCP responsefile if no interface is given

2016-12-07 Thread Matthew Martin
ping On Sat, Nov 26, 2016 at 11:28:55PM -0600, Matthew Martin wrote: > Don't force the user to pick an interface if the responsefile is on > a disk. > > - Matthew Martin > > > Index: install.sub > === > RCS file: /cvs/src/distrib/m

dev/rnd.c comment typo

2016-12-07 Thread Michael W. Bombardieri
Hi, Two typos in comments & explicit return at end of function returning void. I am a little confused by mixture of memset and explicit_bzero in rnd.c for clearing data. I understand explicit_bzero is meant for clearing sensitive data. Would it be harmful for use only explicit_bzero here? - Mich

Re: dhcrelay(8): simplify get_interface()

2016-12-07 Thread Jeremie Courreges-Anglas
Rafael Zalamena writes: > On Wed, Dec 07, 2016 at 05:34:05PM +0100, Rafael Zalamena wrote: >> This diff simplifies the get_interface function and makes it more >> straightforward, it also makes dhcrelay(8) throw a more informative error >> message when running layer 3 mode (default) on interfaces

Re: Looking for Xen blkfront driver xbf(4) tests

2016-12-07 Thread Mike Belopuhov
On Wed, Dec 07, 2016 at 19:30 +0100, Mike Belopuhov wrote: > Hi, > > I've committed today a driver for the Xen paravirtualized disk > interface also known as Blkfront. Despite being pretty stable > for me so far, it's not enabled by default at the moment. > Therefore I'm looking for additional te

Re: dhcrelay(8): clean up function prototypes

2016-12-07 Thread Jeremie Courreges-Anglas
Rafael Zalamena writes: > I'm implementing some features for dhcrelay and to make them fit I need > some clean ups in the dhcrelay(8) first. This diff changes most of the > input/output functions prototypes to take one parameter with all addresses > instead of passing multiple parameters. > > Bas

Looking for Xen blkfront driver xbf(4) tests

2016-12-07 Thread Mike Belopuhov
Hi, I've committed today a driver for the Xen paravirtualized disk interface also known as Blkfront. Despite being pretty stable for me so far, it's not enabled by default at the moment. Therefore I'm looking for additional tests on different Xen versions and EC2 instances to ensure robustness an

Re: dhcrelay(8): simplify get_interface()

2016-12-07 Thread Rafael Zalamena
On Wed, Dec 07, 2016 at 05:34:05PM +0100, Rafael Zalamena wrote: > This diff simplifies the get_interface function and makes it more > straightforward, it also makes dhcrelay(8) throw a more informative error > message when running layer 3 mode (default) on interfaces without an > address. > > I'l

Re: Stop watchdog timer during DDB session

2016-12-07 Thread Christian Ludwig
> Deliberately breaking into DDB, e.g. via serial console BREAK, can lead > to an abrupt end of the debugging session once the hardware watchdog > reboots the machine. This is because all CPUs are IPL_HIGH. None of them > tickles the watchdog anymore. > > The same is true on panic, when the system

Modify disklabel(8) manual about possible units

2016-12-07 Thread Jérôme FRGACIC
Hello tech, While reading disklabel(8) man page I remark that the two possibles units '%' (percent of total) and '&' (percent of free) are only mentioned in the description of the 'p' option but not in the section which list available units. I would suggest to move the '%' and '&' units descripti

dhcrelay(8): simplify get_interface()

2016-12-07 Thread Rafael Zalamena
This diff simplifies the get_interface function and makes it more straightforward, it also makes dhcrelay(8) throw a more informative error message when running layer 3 mode (default) on interfaces without an address. I'll use this code later to be able to get_interfaces() without an IP address.

Re: [PATCH] softraid.4 move wd(4) examples to sd(4)

2016-12-07 Thread Reyk Floeter
On Wed, Dec 07, 2016 at 06:42:51AM -0800, Bryan Vyhmeister wrote: > On Wed, Dec 07, 2016 at 10:46:44AM +0100, Reyk Floeter wrote: > > > > > Am 05.12.2016 um 23:05 schrieb Bryan Vyhmeister : > > > > > > In responding to a post on misc@, I noticed that bioctl(8) uses all sd(4) > > > devices in the

Re: dhcrelay: pledge(2)

2016-12-07 Thread Rafael Zalamena
On Wed, Dec 07, 2016 at 02:47:25PM +0100, Reyk Floeter wrote: > Hi, > > dhcrelay drops privs but isn't pledged yet - here it is. > > It is simpler than dhclient: it only needs stdio and route because it > pre-opens all file descriptors (UDP, bpf), does the bpf ioctls before, > and only needs "rou

Re: dhcrelay(8): clean up function prototypes

2016-12-07 Thread Rafael Zalamena
On Wed, Dec 07, 2016 at 02:49:55PM +0100, Rafael Zalamena wrote: > ---snipped--- > Actually the code below is not wrong, there are some scenarios where you need this to make relayed DHCP to work. I'm not touching the part I noted before. The diff that I sent before still stands and has nothing t

Re: [PATCH] softraid.4 move wd(4) examples to sd(4)

2016-12-07 Thread Bryan Vyhmeister
On Wed, Dec 07, 2016 at 10:46:44AM +0100, Reyk Floeter wrote: > > > Am 05.12.2016 um 23:05 schrieb Bryan Vyhmeister : > > > > In responding to a post on misc@, I noticed that bioctl(8) uses all sd(4) > > devices in the examples sections while softraid(4) uses wd(4) devices > > for the chunks. Thi

dhcrelay(8): clean up function prototypes

2016-12-07 Thread Rafael Zalamena
I'm implementing some features for dhcrelay and to make them fit I need some clean ups in the dhcrelay(8) first. This diff changes most of the input/output functions prototypes to take one parameter with all addresses instead of passing multiple parameters. Basically this will make input functions

dhcrelay: pledge(2)

2016-12-07 Thread Reyk Floeter
Hi, dhcrelay drops privs but isn't pledged yet - here it is. It is simpler than dhclient: it only needs stdio and route because it pre-opens all file descriptors (UDP, bpf), does the bpf ioctls before, and only needs "route" for interface status ioctls on runtime. OK? Reyk Index: usr.sbin/dhcr

Re: [PATCH] softraid.4 move wd(4) examples to sd(4)

2016-12-07 Thread Reyk Floeter
> Am 05.12.2016 um 23:05 schrieb Bryan Vyhmeister : > > In responding to a post on misc@, I noticed that bioctl(8) uses all sd(4) > devices in the examples sections while softraid(4) uses wd(4) devices > for the chunks. This patch updates softraid.4 to use sd(4) devices as > well. I have not used