sys/net/pfvar.h: zap duplicate signatures

2018-12-08 Thread Klemens Nanni
These are identical (see increased context) since introduction: revision 1.240 date: 2006/10/27 13:56:51; author: mcbride; state: Exp; lines: +26 -8; Split ruleset manipulation functions out into pf_ruleset.c to allow them to be imported into pfctl. This is a precursor to separating ruleset

Re: Importing FreeBSD eMMC code

2018-12-08 Thread Heppler, J. Scott
I'm not sure this is a bug so much as new technology being implemented inconsistently. I suspect the problem is due to an Replay Protected Memory Block https://superuser.com/questions/1039508/installing-linux-onto-emmc My HP stream has an RPMB dmesg | grep mmc [2.191192] mmc0: CQHCI

SGI O2 mec(4) cold boot issue (and workaround)

2018-12-08 Thread Miod Vallat
I have noticed, for a while, that my O2 systems were horribly slow during installs or upgrades, when fetching sets from the network (28 *minutes* to fetch base64.tgz). At first, I thought this was a bsd.rd specific bug, but couldn't find anything obvious. After gathering enough data, I found out

pcap_dispatch() returning zero

2018-12-08 Thread Jan Stary
The return value of pcap_dispatch() is described in pcap.3 as follows: The number of packets read is returned. Zero is returned when EOF is reached in a savefile. A return of -1 indicates an error in which case ... It will also return zero on the last short read (as "EOF is reached"). So

add velocity sensor type, change distance unit

2018-12-08 Thread Landry Breuil
Hi, followup on a diff from last month, updated to -current: - adds SENSOR_VELOCITY, internal unit um/s, display unit m/s - changes SENSOR_DISTANCE to display as meters, with 3 decimals which gives: hw.sensors.nmea0.distance0=335.600 m (Altitude), OK hw.sensors.nmea0.velocity0=18.337 m/s

Re: sed(1) make -i behave a little nicer

2018-12-08 Thread Martijn van Duren
On 12/7/18 4:13 PM, patrick keshishian wrote: > On Fri, Dec 07, 2018 at 08:41:21AM +0100, Martijn van Duren wrote: >> I ran into a few minor nuisances with sed's -i mode, which are mostly >> compatible with gnu sed, but I reckon we should address. >> >> The problem is sed works by writing the

[ksh] Fix kill -s SIGNAME

2018-12-08 Thread Jeremie Courreges-Anglas
kill, whether implemented as a builtin or an external command, supports signal numbers and signal names. As an extension to POSIX, signal names may be prefixed with "SIG". Both /bin/kill and the kill ksh builtin attempt to do that, but the test in ksh is flawed. The minimal diff below fixes

libpcap: add basic MPLS support

2018-12-08 Thread Denis Fondras
Add basic MPLS support in libpcap. Index: gencode.c === RCS file: /cvs/src/lib/libpcap/gencode.c,v retrieving revision 1.51 diff -u -p -r1.51 gencode.c --- gencode.c 10 Nov 2018 10:17:37 - 1.51 +++ gencode.c 14 Nov 2018

vmd: set dhcp hostname option during netboot

2018-12-08 Thread Anton Lindqvist
Hi, I've been trying out the new fake netboot feature in vmd. Overall, a great addition that removed the need for me to run dhcpd/rebound locally to achieve auto install. It would be convenient if the DHCP lease included a hostname inferred from the VM name in order to use dedicated response files

sys/net/pf*.[ch]: remove useless macros

2018-12-08 Thread Klemens Nanni
All they do is case conversion^Wconfusion, so remove them. Relevant pfvar.h diff at the top, all other hunks were done with sed(1). Feedback? Objections? OK? Index: net/pfvar.h === RCS file: /cvs/src/sys/net/pfvar.h,v retrieving