ipv6: fold sockcm_cookie into ipcm6_cookie
ipcm_cookie includes sockcm_cookie. Do the same for ipcm6_cookie. This reduces the number of arguments that need to be passed around, applies ipcm6_init to all cookie fields at once and reduces code differentiation between ipv4 and ipv6. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
@@ -489,7 +489,6 @@ sticky_done:
|
||||
struct ipv6_txoptions *opt = NULL;
|
||||
struct msghdr msg;
|
||||
struct flowi6 fl6;
|
||||
struct sockcm_cookie sockc_junk;
|
||||
struct ipcm6_cookie ipc6;
|
||||
|
||||
memset(&fl6, 0, sizeof(fl6));
|
||||
@@ -522,7 +521,7 @@ sticky_done:
|
||||
msg.msg_control = (void *)(opt+1);
|
||||
ipc6.opt = opt;
|
||||
|
||||
retv = ip6_datagram_send_ctl(net, sk, &msg, &fl6, &ipc6, &sockc_junk);
|
||||
retv = ip6_datagram_send_ctl(net, sk, &msg, &fl6, &ipc6);
|
||||
if (retv)
|
||||
goto done;
|
||||
update:
|
||||
|
在新工单中引用
屏蔽一个用户