diff options
author | Wei Wang <weiwan@google.com> | 2016-05-03 06:40:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-03 22:08:14 +0200 |
commit | 26879da58711aa604a1b866cbeedd7e0f78f90ad (patch) | |
tree | 579b56b3b42598c5db664ef276979ce37b7c6416 /net/ipv4/inet_hashtables.c | |
parent | net: add __sock_wfree() helper (diff) | |
download | linux-26879da58711aa604a1b866cbeedd7e0f78f90ad.tar.xz linux-26879da58711aa604a1b866cbeedd7e0f78f90ad.zip |
ipv6: add new struct ipcm6_cookie
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@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_hashtables.c')
0 files changed, 0 insertions, 0 deletions