summaryrefslogtreecommitdiffstats
path: root/crypto/poly1305_generic.c
diff options
context:
space:
mode:
authorR. Parameswaran2017-04-06 01:50:35 +0200
committerDavid S. Miller2017-04-06 22:43:31 +0200
commit113c3075931a334f899008f6c753abe70a3a9323 (patch)
treea0f7e868672699b451a5053824eea0df16ce07cc /crypto/poly1305_generic.c
parentnet: ethernet: wiznet: avoid format string exposure (diff)
downloadkernel-qcow2-linux-113c3075931a334f899008f6c753abe70a3a9323.tar.gz
kernel-qcow2-linux-113c3075931a334f899008f6c753abe70a3a9323.tar.xz
kernel-qcow2-linux-113c3075931a334f899008f6c753abe70a3a9323.zip
New kernel function to get IP overhead on a socket.
A new function, kernel_sock_ip_overhead(), is provided to calculate the cumulative overhead imposed by the IP Header and IP options, if any, on a socket's payload. The new function returns an overhead of zero for sockets that do not belong to the IPv4 or IPv6 address families. This is used in the L2TP code path to compute the total outer IP overhead on the L2TP tunnel socket when calculating the default MTU for Ethernet pseudowires. Signed-off-by: R. Parameswaran <rparames@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/poly1305_generic.c')
0 files changed, 0 insertions, 0 deletions