Addressing refcount issues in ip6_setdstifaddr and ip6_getdstifaddr routines.
Andrey V. Elsukov
bu7cher at yandex.ru
Wed Oct 1 04:07:30 UTC 2014
On 30.09.2014 19:24, Vedant Mathur wrote:
> *Solution 2:*
>
> In ip6_setdstifaddr() routine we can access the struct ifa using
> ia6->ia_ifa and retrieve the IP address from the ifa and then push it
> into the m_tag instead of the struct in6_ifaddr pointer. Then we will
> not require a refcnt increment and in the ip6_getdstifaddr() we can
> use the ifa_withifaddr() routines to retrieve the ia by basically
> looping through the list of ifaddrs.
>
Hi,
*Solution 3:*
Remove this code :)
What you think about this?
https://svnweb.freebsd.org/base?view=revision&revision=256673
--
WBR, Andrey V. Elsukov
More information about the freebsd-net
mailing list