]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Constantify lookup key in ifa_ifwith* functions.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Sat, 5 Sep 2015 05:33:20 +0000 (05:33 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Sat, 5 Sep 2015 05:33:20 +0000 (05:33 +0000)
commit441f9243df9fe7f000ca473f6464fa3dda1b0b50
tree88d1ada658609b8fa03977ad48c442d675ce2006
parent39993974aa62283706a60de25120a50b36975854
Constantify lookup key in ifa_ifwith* functions.
Some places in our network stack already have const
arguments (like if_output() routines and LLE functions).

Code using ifa_ifwith (and similar functins) along with
LLE/_output functions is currently bound to use tricks
like __DECONST(). Provide a cleaner way by making sockaddr
lookup key really constant.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3464
sys/net/if.c
sys/net/if_dl.h
sys/net/if_var.h
sys/net/route.c
sys/net/route.h