diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2013-01-21 02:00:03 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-21 14:17:05 -0500 |
commit | 8141ed9fcedb278f4a3a78680591bef1e55f75fb (patch) | |
tree | d18c4a6ae41663fcb4ef4bc6e607b46aceaa5dbb /net/ipv4/udp.c | |
parent | 9cb3a50c5f63ed745702972f66eaee8767659acd (diff) | |
download | linux-stable-8141ed9fcedb278f4a3a78680591bef1e55f75fb.tar.gz linux-stable-8141ed9fcedb278f4a3a78680591bef1e55f75fb.tar.bz2 linux-stable-8141ed9fcedb278f4a3a78680591bef1e55f75fb.zip |
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>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 79c8dbe59b54..1f4d405eafba 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1952,6 +1952,7 @@ struct proto udp_prot = { .recvmsg = udp_recvmsg, .sendpage = udp_sendpage, .backlog_rcv = __udp_queue_rcv_skb, + .release_cb = ip4_datagram_release_cb, .hash = udp_lib_hash, .unhash = udp_lib_unhash, .rehash = udp_v4_rehash, |