svn commit: r311762 - head/usr.bin/netstat

2017-01-08 Thread Xin LI
Author: delphij Date: Mon Jan 9 07:36:31 2017 New Revision: 311762 URL: https://svnweb.freebsd.org/changeset/base/311762 Log: Fix typo. MFC after:3 days Modified: head/usr.bin/netstat/route.c Modified: head/usr.bin/netstat/route.c

svn commit: r311761 - head/usr.sbin/bsnmpd/modules/snmp_netgraph

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 06:36:17 2017 New Revision: 311761 URL: https://svnweb.freebsd.org/changeset/base/311761 Log: Add a REVISION section to track changes for the BEGEMOT-NETGRAPH MIB file This change also documents the modification harti made to a handful of objects in r122758

svn commit: r311760 - head/contrib/bsnmp/snmpd

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 06:27:30 2017 New Revision: 311760 URL: https://svnweb.freebsd.org/changeset/base/311760 Log: Add a REVISION section to track changes for the BEGEMOT-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the

svn commit: r311759 - head/contrib/bsnmp/snmpd

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 06:24:28 2017 New Revision: 311759 URL: https://svnweb.freebsd.org/changeset/base/311759 Log: Add a REVISION section to track changes for the FOKUS-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the

svn commit: r311758 - head/usr.sbin/bsnmpd/modules/snmp_atm

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 06:19:20 2017 New Revision: 311758 URL: https://svnweb.freebsd.org/changeset/base/311758 Log: Add a REVISION section to track changes for the BEGEMOT-ATM-FREEBSD-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains

svn commit: r311757 - head/contrib/bsnmp/gensnmpdef

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 06:13:27 2017 New Revision: 311757 URL: https://svnweb.freebsd.org/changeset/base/311757 Log: Similar to r311750, check for the result from smiGetModule to avoid a segfault when dereferencing a NULL pointer later on. Choose to just check for the NULL pointer

svn commit: r311754 - head/contrib/bsnmp/gensnmpdef

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 06:03:49 2017 New Revision: 311754 URL: https://svnweb.freebsd.org/changeset/base/311754 Log: Use calloc instead of malloc + memset(.., 0, ..) MFC after:5 days Modified: head/contrib/bsnmp/gensnmpdef/gensnmpdef.c Modified:

svn commit: r311750 - head/contrib/bsnmp/gensnmpdef

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 05:51:38 2017 New Revision: 311750 URL: https://svnweb.freebsd.org/changeset/base/311750 Log: Check result from smiGetFirstNode and smiGetNodeByOID This avoids a segfault with malformed or unanticipated files, like IPV6-TC.txt (a file containing just

svn commit: r311748 - head/tools/tools/gensnmpdef

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 05:46:41 2017 New Revision: 311748 URL: https://svnweb.freebsd.org/changeset/base/311748 Log: Bump WARNS up from 0 to 6 MFC after:5 days Modified: head/tools/tools/gensnmpdef/Makefile Modified: head/tools/tools/gensnmpdef/Makefile

svn commit: r311744 - head/share/mk

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 04:35:55 2017 New Revision: 311744 URL: https://svnweb.freebsd.org/changeset/base/311744 Log: Document bsd.snmpmod.mk from a high-level MFC after:2 weeks Modified: head/share/mk/bsd.README Modified: head/share/mk/bsd.README

svn commit: r311743 - in head/sys/dev/hyperv: include utilities vmbus vmbus/amd64

2017-01-08 Thread Sepherosa Ziehau
Author: sephe Date: Mon Jan 9 03:38:41 2017 New Revision: 311743 URL: https://svnweb.freebsd.org/changeset/base/311743 Log: hyperv: Add method to read 64bit Hyper-V specific time value. MFC after:1 week Sponsored by: Microsoft Differential Revision:

svn commit: r311742 - head/contrib/bsnmp/snmp_mibII

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 03:21:21 2017 New Revision: 311742 URL: https://svnweb.freebsd.org/changeset/base/311742 Log: Add a REVISION section to track changes for the BEGEMOT-IP-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the

svn commit: r311741 - head/usr.sbin/bsnmpd/modules/snmp_hostres

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 03:18:19 2017 New Revision: 311741 URL: https://svnweb.freebsd.org/changeset/base/311741 Log: Add a REVISION section to track changes for the hostres module There haven't been any changes to the MIB definition, so the REVISION remains static at the version

svn commit: r311740 - in head/usr.sbin/bsnmpd/modules: snmp_hostres snmp_mibII

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 03:14:04 2017 New Revision: 311740 URL: https://svnweb.freebsd.org/changeset/base/311740 Log: Improve the smilint target in the hostres and mibII modules - Mark the smilint target .PHONY so it's always executed when requested - Leverage .PATH for BMIBS

svn commit: r311739 - in head/usr.sbin/bsnmpd/modules: snmp_atm snmp_hast snmp_hostres snmp_mibII snmp_target snmp_usm snmp_vacm

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 03:08:21 2017 New Revision: 311739 URL: https://svnweb.freebsd.org/changeset/base/311739 Log: Use SRCTOP instead of spelling out the full path with .CURDIR This helps condense the output for CFLAGS and .PATH MFC after:3 days Modified:

Re: svn commit: r311667 - in head/sys/contrib/dev/acpica: components/namespace components/tables include

2017-01-08 Thread Ngie Cooper (yaneurabeya)
> On Jan 8, 2017, at 18:24, Jan Beich wrote: > > "Conrad E. Meyer" writes: > >> +++ head/sys/contrib/dev/acpica/components/tables/tbxface.c Sun Jan 8 >> 06:26:33 2017(r311667) >> @@ -314,11 +314,12 @@ ACPI_EXPORT_SYMBOL (AcpiGetTableHeader) >>

Re: svn commit: r311667 - in head/sys/contrib/dev/acpica: components/namespace components/tables include

2017-01-08 Thread Jan Beich
"Conrad E. Meyer" writes: > +++ head/sys/contrib/dev/acpica/components/tables/tbxface.c Sun Jan 8 > 06:26:33 2017(r311667) > @@ -314,11 +314,12 @@ ACPI_EXPORT_SYMBOL (AcpiGetTableHeader) > > >

svn commit: r311736 - head/sys/dev/sdhci

2017-01-08 Thread Ian Lepore
Author: ian Date: Mon Jan 9 02:04:54 2017 New Revision: 311736 URL: https://svnweb.freebsd.org/changeset/base/311736 Log: Use the new sdhci_fdt_gpio helper functions to add full support for FDT gpio pins for detecting card insert/remove and write protect. Modified:

svn commit: r311735 - head/sys/arm/ti

2017-01-08 Thread Ian Lepore
Author: ian Date: Mon Jan 9 01:57:51 2017 New Revision: 311735 URL: https://svnweb.freebsd.org/changeset/base/311735 Log: Use the new sdhci_fdt_gpio helper functions to add full support for FDT gpio pins for detecting card insert/remove and write protect. Modified:

svn commit: r311734 - in head/sys: conf dev/sdhci

2017-01-08 Thread Ian Lepore
Author: ian Date: Mon Jan 9 01:54:36 2017 New Revision: 311734 URL: https://svnweb.freebsd.org/changeset/base/311734 Log: Add new helper routines for sdhci bridge drivers that use gpio pins for card presence and write protect switch detection. A bridge driver just needs to call the

svn commit: r311733 - head/contrib/bsnmp/snmp_mibII

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 01:47:00 2017 New Revision: 311733 URL: https://svnweb.freebsd.org/changeset/base/311733 Log: Use nitems(mib) instead of hardcoding mib's length when calling sysctl(3) MFC after:3 days Modified: head/contrib/bsnmp/snmp_mibII/mibII.c Modified:

svn commit: r311727 - head/sys/dev/sdhci

2017-01-08 Thread Ian Lepore
Author: ian Date: Mon Jan 9 01:15:18 2017 New Revision: 311727 URL: https://svnweb.freebsd.org/changeset/base/311727 Log: Add support for non-removable media, and a quirk to use polling to detect card insert/remove events on controllers that don't implement the insert and remove

Re: svn commit: r311715 - head/lib/libprocstat

2017-01-08 Thread Ngie Cooper (yaneurabeya)
> On Jan 8, 2017, at 16:54, Ngie Cooper wrote: > > Author: ngie > Date: Mon Jan 9 00:54:18 2017 > New Revision: 311715 > URL: https://svnweb.freebsd.org/changeset/base/311715 > > Log: > Use nitems({mib,name}) instead of hardcoding their value *value -> length

svn commit: r311715 - head/lib/libprocstat

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:54:18 2017 New Revision: 311715 URL: https://svnweb.freebsd.org/changeset/base/311715 Log: Use nitems({mib,name}) instead of hardcoding their value MFC after:3 days Modified: head/lib/libprocstat/libprocstat.c Modified:

svn commit: r311714 - head/lib/libutil

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:47:23 2017 New Revision: 311714 URL: https://svnweb.freebsd.org/changeset/base/311714 Log: lib/libutil/kinfo_*: style cleanup - Use nitems(mib) instead of hardcoding mib's length - Sort sys/ #includes MFC after:3 days Modified:

svn commit: r311713 - head/usr.sbin/route6d

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:38:19 2017 New Revision: 311713 URL: https://svnweb.freebsd.org/changeset/base/311713 Log: Use nitems(mib) instead of hardcoding mib's length MFC after:3 days Modified: head/usr.sbin/route6d/route6d.c Modified: head/usr.sbin/route6d/route6d.c

svn commit: r311712 - head/usr.sbin/route6d

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:37:09 2017 New Revision: 311712 URL: https://svnweb.freebsd.org/changeset/base/311712 Log: Sort #includes MFC after:3 days Modified: head/usr.sbin/route6d/route6d.c Modified: head/usr.sbin/route6d/route6d.c

svn commit: r311711 - head/usr.sbin/route6d

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:33:27 2017 New Revision: 311711 URL: https://svnweb.freebsd.org/changeset/base/311711 Log: Clean up trailing whitespace MFC after:3 days Modified: head/usr.sbin/route6d/route6d.c Modified: head/usr.sbin/route6d/route6d.c

svn commit: r311710 - head/usr.bin/top

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:29:23 2017 New Revision: 311710 URL: https://svnweb.freebsd.org/changeset/base/311710 Log: Style fixes - Delete trailing whitespace - Use nitems(mib) instead of hardcoding the mib length MFC after:3 days Modified: head/usr.bin/top/machine.c

svn commit: r311709 - head/usr.sbin/rwhod

2017-01-08 Thread Ngie Cooper
Author: ngie Date: Mon Jan 9 00:25:33 2017 New Revision: 311709 URL: https://svnweb.freebsd.org/changeset/base/311709 Log: Style(9) fixes - Sort sys/ #includes - Use nitems instead of hardcoding the length of `mib` MFC after:3 days Modified: head/usr.sbin/rwhod/rwhod.c

Re: svn commit: r311659 - head/lib/libstand

2017-01-08 Thread Kamil Czekirda
Thanks. 2017-01-08 0:42 GMT+01:00 Baptiste Daroussin : > Author: bapt > Date: Sat Jan 7 23:42:17 2017 > New Revision: 311659 > URL: https://svnweb.freebsd.org/changeset/base/311659 > > Log: > remove network mask calculation for Classful network > > Nowadays it's not

svn commit: r311703 - head/sys/powerpc/include

2017-01-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 8 21:12:46 2017 New Revision: 311703 URL: https://svnweb.freebsd.org/changeset/base/311703 Log: Knock a page off VM_MAX_KERNEL_ADDRESS There are places where checks are made against VM_MAX_KERNEL_ADDRESS, or virtual_end (set to VM_MAX_KERNEL_ADDRESS).

svn commit: r311702 - head/usr.sbin/bhyve

2017-01-08 Thread Peter Grehan
Author: grehan Date: Sun Jan 8 20:58:58 2017 New Revision: 311702 URL: https://svnweb.freebsd.org/changeset/base/311702 Log: Use correct PCI device id for virtio-rng. This prevented the device from attaching with a Windows guest (most other guests use the device type for matching)

Re: svn commit: r311225 - head/sys/netinet

2017-01-08 Thread Mark Johnston
On Sat, Jan 07, 2017 at 02:31:28PM -0500, George Neville-Neil wrote: > > > On 7 Jan 2017, at 14:23, George Neville-Neil wrote: > > > On 4 Jan 2017, at 13:26, Mark Johnston wrote: > > > >> On Wed, Jan 04, 2017 at 02:19:13AM +, George V. Neville-Neil > >> wrote: > >>> Author: gnn > >>> Date:

svn commit: r311701 - head/sys/dev/gpio

2017-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Sun Jan 8 20:41:32 2017 New Revision: 311701 URL: https://svnweb.freebsd.org/changeset/base/311701 Log: Convert gpioc to use the make_dev_s(9) KPI. This fix a possible race where si_drv1 can be accessed before it gets set. This is inspired on r311700. MFC after:

svn commit: r311700 - head/sys/dev/etherswitch

2017-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Sun Jan 8 20:37:41 2017 New Revision: 311700 URL: https://svnweb.freebsd.org/changeset/base/311700 Log: Convert etherswitch to use the make_dev_s(9) KPI. This fix a possible race where si_drv1 can be accessed before it gets set. MFC after:3 days Suggested by:

svn commit: r311699 - head/usr.sbin/bhyve

2017-01-08 Thread Peter Grehan
Author: grehan Date: Sun Jan 8 20:29:35 2017 New Revision: 311699 URL: https://svnweb.freebsd.org/changeset/base/311699 Log: Make sure the 'Always-one' bit is always set to one, in the first byte of the 3-byte mouse data report. Plan9/9front requires this. Switch over to using

svn commit: r311695 - head/sys/netinet6

2017-01-08 Thread Mark Johnston
Author: markj Date: Sun Jan 8 18:46:00 2017 New Revision: 311695 URL: https://svnweb.freebsd.org/changeset/base/311695 Log: Release the ND6 list lock before making a prefix off-link in nd6_timer(). Reported by: Jim X-MFC With:

svn commit: r311693 - head/sys/dev/sdhci

2017-01-08 Thread Ian Lepore
Author: ian Date: Sun Jan 8 18:28:06 2017 New Revision: 311693 URL: https://svnweb.freebsd.org/changeset/base/311693 Log: Now that the PRESENT_STATE register is only used for the inhibit bits loop in this function, eliminate the state variable and restructure the loop to read the register

svn commit: r311688 - head/sys/geom/vinum

2017-01-08 Thread Dimitry Andric
Author: dim Date: Sun Jan 8 17:56:54 2017 New Revision: 311688 URL: https://svnweb.freebsd.org/changeset/base/311688 Log: Fix logic error in gvinum's gv_set_sd_state() With clang 4.0.0, I'm getting the following warnings: sys/geom/vinum/geom_vinum_state.c:186:7: error: logical

svn commit: r311680 - head/sys/cam/ctl

2017-01-08 Thread Alexander Motin
Author: mav Date: Sun Jan 8 13:26:34 2017 New Revision: 311680 URL: https://svnweb.freebsd.org/changeset/base/311680 Log: Make CTL_GETSTATS ioctl return partial data if buffer is small. MFC after:2 weeks Modified: head/sys/cam/ctl/ctl.c Modified: head/sys/cam/ctl/ctl.c

svn commit: r311679 - head/sys/netipsec

2017-01-08 Thread Andrey V. Elsukov
Author: ae Date: Sun Jan 8 12:40:07 2017 New Revision: 311679 URL: https://svnweb.freebsd.org/changeset/base/311679 Log: Add direction argument to ipsec_setspidx_inpcb() function. This function is used only by ipsec_getpolicybysock() to fill security policy index selector for locally

svn commit: r311678 - head/sys/net80211

2017-01-08 Thread Adrian Chadd
Author: adrian Date: Sun Jan 8 10:13:05 2017 New Revision: 311678 URL: https://svnweb.freebsd.org/changeset/base/311678 Log: [net80211] add roaming parameters for 11ac. These are mostly placeholders for now. Modified: head/sys/net80211/ieee80211_scan.c Modified:

svn commit: r311677 - head/sys/net80211

2017-01-08 Thread Adrian Chadd
Author: adrian Date: Sun Jan 8 10:07:54 2017 New Revision: 311677 URL: https://svnweb.freebsd.org/changeset/base/311677 Log: [net80211] use the correct freq2 field when populating VHT operation element. Whilst here, leave a TODO comment so I revisit this routine in the context of hostap

Re: svn commit: r311665 - head/sys/fs/cd9660

2017-01-08 Thread Konstantin Belousov
On Sun, Jan 08, 2017 at 06:21:49AM +, Conrad E. Meyer wrote: > +/* > + * When ino_t becomes 64-bit, we can remove this definition in favor of > ino_t. > + */ > +#define cd_ino_t uint64_t > + Why the type is defined and not typedef-ed ? Also, I do not think that it is good idea to rely

svn commit: r311675 - head/sys/fs/cd9660

2017-01-08 Thread Conrad E. Meyer
Author: cem Date: Sun Jan 8 09:16:07 2017 New Revision: 311675 URL: https://svnweb.freebsd.org/changeset/base/311675 Log: iso_rrip.h: Hide kernel definitions from makefs(8) Reported by: O. Hartmann Modified: head/sys/fs/cd9660/iso_rrip.h Modified: head/sys/fs/cd9660/iso_rrip.h

svn commit: r311671 - head/lib/libprocstat

2017-01-08 Thread Conrad E. Meyer
Author: cem Date: Sun Jan 8 08:36:37 2017 New Revision: 311671 URL: https://svnweb.freebsd.org/changeset/base/311671 Log: libprocstat: Include cd9660 headers in the same order as the kernel Fix userspace build after r311665. Modified: head/lib/libprocstat/cd9660.c Modified:

Re: svn commit: r311665 - head/sys/fs/cd9660

2017-01-08 Thread Ngie Cooper
> On Jan 7, 2017, at 22:21, Conrad E. Meyer wrote: > > Author: cem > Date: Sun Jan 8 06:21:49 2017 > New Revision: 311665 > URL: https://svnweb.freebsd.org/changeset/base/311665 > > Log: > cd9660: Expand internal inum size to 64 bits > > Inums in cd9660 refer to byte