CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2019/08/31 07:46:14
Modified files: sbin/route : route.c show.h usr.sbin/arp : arp.c usr.sbin/ndp : ndp.c Log message: The algorithm creating the routing addresses in route(8) and arp(6) were still not correct. While the values written to the kernel are fine, the bytes for padding were taken from memory after the sockaddr structs. In route(8) the union of sockaddrs can be made larger, so that the padding is taken from there. In arp(8) the size of the struct is known. Copy only the struct and advance over the padding. The memory has been zeroed before. Merge all address size fixes from arp(8) into ndp(8). OK claudio@