Module Name: src Committed By: bouyer Date: Tue Dec 17 20:58:16 UTC 2013
Modified Files: src/sys/netinet6 [netbsd-5-2]: nd6.c src/usr.sbin/ndp [netbsd-5-2]: ndp.c Log Message: Pull up following revision(s) (requested by martin in ticket #1892): usr.sbin/ndp/ndp.c: revision 1.42 sys/netinet6/nd6.c: revision 1.146 Instead of voodo casts use simple byte pointer arithmetic and memcpy to create the "packed" binary format we pass out to userland when querying the router/prefix list. Simplify code to print the router/prefix list: use memcpy and local structs properly aligned on the stack to decode the binary format passed by the kernel - instead of (bogusly) assuming the format will obey all local alignement requirements. To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.130.14.1 src/sys/netinet6/nd6.c cvs rdiff -u -r1.37 -r1.37.30.1 src/usr.sbin/ndp/ndp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.