Re: [PATCH 9/9] tproxy: use the interface primary IP address as a default value for --on-ip

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Thursday, October 21, 2010 - 2:12 am

On Wednesday 2010-10-20 13:21, KOVACS Krisztian wrote:

Per our realworld discussion, I believe we should add checks for
some conditions (RFC 4862 section 2):

1. ignore tentative addresses

	if (ifa->ifa_flags & IFA_F_TENTATIVE)
		continue;

2. tests for when the interface's ifa->preferred_lft == 0/deprecatedness:

	if (ctinfo == IP_CT_NEW/RELATED && (ifa->ifa_flags & IFA_F_DEPRECATED))
		continue;

3. check for invalid addresses
(There might be a flag like tentative..)

	if (ifa->valid_lft == 0)
		continue;

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/9] tproxy: added tproxy sockopt interface in the ..., KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 5/9] tproxy: allow non-local binds of IPv6 sockets ..., KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 8/9] tproxy: added IPv6 support to the socket match, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 7/9] tproxy: added IPv6 support to the TPROXY target, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 3/9] tproxy: added udp6_lib_lookup function, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 0/9] tproxy: add IPv6 support, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sock ..., YOSHIFUJI Hideaki, (Wed Oct 20, 5:45 am)
Re: [PATCH 4/9] tproxy: added tproxy sockopt interface in ..., KOVACS Krisztian, (Thu Oct 21, 1:46 am)
Re: [PATCH 9/9] tproxy: use the interface primary IP addre ..., Jan Engelhardt, (Thu Oct 21, 2:12 am)
Re: [PATCH 6/9] tproxy: added IPv6 socket lookup function ..., KOVACS Krisztian, (Thu Oct 21, 2:48 am)
Re: [PATCH 4/9] tproxy: added tproxy sockopt interface in ..., YOSHIFUJI Hideaki, (Thu Oct 21, 2:09 pm)
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sock ..., YOSHIFUJI Hideaki, (Thu Oct 21, 2:24 pm)
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sock ..., YOSHIFUJI Hideaki, (Sat Oct 23, 10:03 pm)