ipv4: Add a socket release callback for datagram sockets
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 21 Jan 2013 02:00:03 +0000 (02:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 19:17:05 +0000 (14:17 -0500)
commit8141ed9fcedb278f4a3a78680591bef1e55f75fb
treed18c4a6ae41663fcb4ef4bc6e607b46aceaa5dbb
parent9cb3a50c5f63ed745702972f66eaee8767659acd
ipv4: Add a socket release callback for datagram sockets

This implements a socket release callback function to check
if the socket cached route got invalid during the time
we owned the socket. The function is used from udp, raw
and ping sockets.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/datagram.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c