diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2013-01-21 03:00:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-21 20:17:05 +0100 |
commit | 8141ed9fcedb278f4a3a78680591bef1e55f75fb (patch) | |
tree | d18c4a6ae41663fcb4ef4bc6e607b46aceaa5dbb /net/ipv4/raw.c | |
parent | ipv4: Invalidate the socket cached route on pmtu events if possible (diff) | |
download | linux-8141ed9fcedb278f4a3a78680591bef1e55f75fb.tar.xz linux-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/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 73d1e4df4bf6..6f08991409c3 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -894,6 +894,7 @@ struct proto raw_prot = { .recvmsg = raw_recvmsg, .bind = raw_bind, .backlog_rcv = raw_rcv_skb, + .release_cb = ip4_datagram_release_cb, .hash = raw_hash_sk, .unhash = raw_unhash_sk, .obj_size = sizeof(struct raw_sock), |