CVS commit: src/sys/arch/amd64/amd64

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jan 20 07:43:28 UTC 2018

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Improve two comments and a KASSERT.


To generate a diff of this commit:
cvs rdiff -u -r1.291 -r1.292 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2018-01-19 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Sat Jan 20 03:50:29 UTC 2018

Modified Files:
src/sys/arch/powerpc/include: spr.h

Log Message:
Add a copyright (approx 16.5 years later).


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/powerpc/include/spr.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/raidframe

2018-01-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jan 20 01:32:45 UTC 2018

Modified Files:
src/sys/dev/raidframe: raidframeio.h rf_compat32.h rf_compat80.c
rf_compat80.h rf_netbsdkintf.c

Log Message:
fixes for the previous, noted by nakayama@.

- RAIDFRAME_CONFIGURE needs to be versioned as the rows was removed,
  adding RAIDFRAME_CONFIGURE80, rf_config80() etc.
- RAIDFRAME_CONFIGURE32 changes to match
- rf_get_info80() passed the wrong source to copyout()

some fixes to my original change were independantly made by nakayama@
who confirmed the changes work properly now.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/raidframe/raidframeio.h
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/raidframe/rf_compat32.h \
src/sys/dev/raidframe/rf_compat80.c src/sys/dev/raidframe/rf_compat80.h
cvs rdiff -u -r1.354 -r1.355 src/sys/dev/raidframe/rf_netbsdkintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/netbsd32

2018-01-19 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Jan 19 23:38:56 UTC 2018

Modified Files:
src/sys/compat/netbsd32: netbsd32_ioctl.c netbsd32_ioctl.h

Log Message:
add conversion goop for WSDISPLAYIO_LDFONT and _SFONT
tested on mips64


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/compat/netbsd32/netbsd32_ioctl.c
cvs rdiff -u -r1.57 -r1.58 src/sys/compat/netbsd32/netbsd32_ioctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci/voyager

2018-01-19 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Jan 19 23:37:36 UTC 2018

Modified Files:
src/sys/dev/pci/voyager: voyagerfb.c

Log Message:
enable font loading


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/voyager/voyagerfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/libexec/ld.elf_so/arch/mips

2018-01-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 19 23:17:41 UTC 2018

Modified Files:
src/libexec/ld.elf_so/arch/mips: mips_reloc.c

Log Message:
don't forget to eat the high bits.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/libexec/ld.elf_so/arch/mips/mips_reloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 15:04:29 UTC 2018

Modified Files:
src/sys/net: if_mpls.c

Log Message:
Several changes:

 * Declare TRIM_LABEL as a function.

 * In mpls_unlabel_inet, copy the label locally. It's not incorrect to
   keep a pointer on the mbuf, but it's bug-friendly.

 * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
   just want to make sure that m_copydata won't fail, but if we were
   guaranteed that m has M_PKTHDR set, we could simply check the length
   against m->m_pkthdr.len.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/net/if_mpls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/traceroute

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 14:30:09 UTC 2018

Modified Files:
src/usr.sbin/traceroute: traceroute.c

Log Message:
Fix build failure, the structure is already defined now.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/usr.sbin/traceroute/traceroute.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netmpls

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 14:15:35 UTC 2018

Modified Files:
src/sys/netmpls: mpls_ttl.c

Log Message:
Add XXX.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/netmpls/mpls_ttl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 13:17:29 UTC 2018

Modified Files:
src/sys/netinet: ip_icmp.c

Log Message:
Fix a buffer overflow in icmp_error. We create in 'm' a packet that must
contain:

  IPv4 header | Fixed part of ICMP header | Variable part of ICMP header

But we perform length checks on 'totlen', which does not count the IPv4
header.

So now, add sizeof(struct ip) in totlen, and stop doing this m_data
nonsense, just get the pointers as usual.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/netinet/ip_icmp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 12:50:27 UTC 2018

Modified Files:
src/sys/netinet: ip_icmp.c

Log Message:
Clarify icmp_error:

 * Rename (and constify) oiplen -> oiphlen.

 * Rename icmplen -> datalen, it's the size of the variable part of
   the ICMP header, not the total size of the ICMP header itself.

 * Introduce totlen, this is the total size of the ICMP header (icmp_ip
   included).

No real functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sys/netinet/ip_icmp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sparc64/sparc64

2018-01-19 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri Jan 19 12:47:42 UTC 2018

Modified Files:
src/sys/arch/sparc64/sparc64: cpu.c

Log Message:
sun4v doesn't have %ver register.


To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 src/sys/arch/sparc64/sparc64/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2018-01-19 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri Jan 19 12:31:28 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Fix inverted logic.


To generate a diff of this commit:
cvs rdiff -u -r1.256 -r1.257 src/sys/net/if_ethersubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 10:54:31 UTC 2018

Modified Files:
src/sys/netinet: ip_icmp.h
src/sys/netmpls: mpls_ttl.c

Log Message:
Move the ICMP Extension structures from mpls_ttl.c to ip_icmp.h; that's
part of the ICMP protocol (per RFC4884), and not specific to MPLS. Also
add ih_exthdr in struct icmp, the 'length' field appeared.

While here, style in MPLS.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/netinet/ip_icmp.h
cvs rdiff -u -r1.9 -r1.10 src/sys/netmpls/mpls_ttl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2018-01-19 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jan 19 10:21:24 UTC 2018

Modified Files:
src/sys/netinet: ip_icmp.h

Log Message:
Style, explain a bit, and fix icmp_radv, it should be icmp_dun.id_radv.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/netinet/ip_icmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/raidframe

2018-01-19 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Jan 19 09:04:24 UTC 2018

Modified Files:
src/sys/dev/raidframe: rf_netbsdkintf.c

Log Message:
Fix some ARM kernel builds.  ARM abuses compat32 for ABI compatibility and
this means some ioctls overlap.


To generate a diff of this commit:
cvs rdiff -u -r1.353 -r1.354 src/sys/dev/raidframe/rf_netbsdkintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2018-01-19 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Jan 19 08:01:05 UTC 2018

Modified Files:
src/sys/net: route.c
src/sys/netinet: in.c
src/sys/netinet6: in6.c

Log Message:
Suppress noisy debugging outputs

Even if DEBUG they are too noisy under load.


To generate a diff of this commit:
cvs rdiff -u -r1.203 -r1.204 src/sys/net/route.c
cvs rdiff -u -r1.215 -r1.216 src/sys/netinet/in.c
cvs rdiff -u -r1.258 -r1.259 src/sys/netinet6/in6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.