lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20100307.152639.174332774.davem@davemloft.net> Date: Sun, 07 Mar 2010 15:26:39 -0800 (PST) From: David Miller <davem@...emloft.net> To: yoshfuji@...ux-ipv6.org Cc: netdev@...r.kernel.org Subject: Re: [PATCH net-next-2.6] ipv6: Optmize translation between IPV6_PREFER_SRC_xxx and RT6_LOOKUP_F_xxx. From: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org> Date: Sun, 7 Mar 2010 19:14:44 +0900 > IPV6_PREFER_SRC_xxx definitions: > | #define IPV6_PREFER_SRC_TMP 0x0001 > | #define IPV6_PREFER_SRC_PUBLIC 0x0002 > | #define IPV6_PREFER_SRC_COA 0x0004 > > RT6_LOOKUP_F_xxx definitions: > | #define RT6_LOOKUP_F_SRCPREF_TMP 0x00000008 > | #define RT6_LOOKUP_F_SRCPREF_PUBLIC 0x00000010 > | #define RT6_LOOKUP_F_SRCPREF_COA 0x00000020 > > So, we can translate between these two groups by shift operation > instead of multiple 'if's. > > Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists