Inspired by satosin(), use inline functions to convert sockaddr dl.
authorbluhm <bluhm@openbsd.org>
Thu, 22 Oct 2015 15:37:47 +0000 (15:37 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 22 Oct 2015 15:37:47 +0000 (15:37 +0000)
commitc7b7b779a1a65d391467ec9504adbab88ccea96d
tree2fd4870ad35da77bf29098637713164b2a6380e8
parent1ff40150be10da28802b7d486105ee35ebcfc0da
Inspired by satosin(), use inline functions to convert sockaddr dl.
Instead of casts they check wether the incoming object has the
expected type.  So introduce satosdl() and sdltosa() in the kernel.
OK mpi@
14 files changed:
sys/net/if.c
sys/net/if_dl.h
sys/net/if_enc.c
sys/net/if_ethersubr.c
sys/net/if_mpe.c
sys/net/if_mpw.c
sys/net/route.c
sys/net/rtsock.c
sys/netinet/if_ether.c
sys/netinet6/icmp6.c
sys/netinet6/in6_ifattach.c
sys/netinet6/nd6.c
sys/netinet6/nd6_nbr.c
sys/netinet6/nd6_rtr.c