summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2013-01-21 02:00:03 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-21 14:17:05 -0500
commit8141ed9fcedb278f4a3a78680591bef1e55f75fb (patch)
treed18c4a6ae41663fcb4ef4bc6e607b46aceaa5dbb /include
parent9cb3a50c5f63ed745702972f66eaee8767659acd (diff)
downloadlinux-3.10-8141ed9fcedb278f4a3a78680591bef1e55f75fb.tar.gz
linux-3.10-8141ed9fcedb278f4a3a78680591bef1e55f75fb.tar.bz2
linux-3.10-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 'include')
-rw-r--r--include/net/ip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 0707fb9551a..a68f838a132 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -143,6 +143,8 @@ static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4)
extern int ip4_datagram_connect(struct sock *sk,
struct sockaddr *uaddr, int addr_len);
+extern void ip4_datagram_release_cb(struct sock *sk);
+
struct ip_reply_arg {
struct kvec iov[1];
int flags;