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
| ||
|
Date: Tue, 03 May 2016 16:20:01 -0400 (EDT) From: David Miller <davem@...emloft.net> To: weiwan@...gle.com Cc: netdev@...r.kernel.org Subject: Re: [PATCH net-next v2] ipv6: add new struct ipcm6_cookie From: Wei Wang <weiwan@...gle.com> Date: Mon, 2 May 2016 21:40:07 -0700 > From: Wei Wang <weiwan@...gle.com> > > In the sendmsg function of UDP, raw, ICMP and l2tp sockets, we use local > variables like hlimits, tclass, opt and dontfrag and pass them to corresponding > functions like ip6_make_skb, ip6_append_data and xxx_push_pending_frames. > This is not a good practice and makes it hard to add new parameters. > This fix introduces a new struct ipcm6_cookie similar to ipcm_cookie in > ipv4 and include the above mentioned variables. And we only pass the > pointer to this structure to corresponding functions. This makes it easier > to add new parameters in the future and makes the function cleaner. > > Signed-off-by: Wei Wang <weiwan@...gle.com> Applied, thanks.
Powered by blists - more mailing lists