aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/inetpeer.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h
index d7e60792d76e..834f0456c87e 100644
--- a/include/net/inetpeer.h
+++ b/include/net/inetpeer.h
@@ -50,7 +50,16 @@ struct inet_peer {
50void inet_initpeers(void) __init; 50void inet_initpeers(void) __init;
51 51
52/* can be called with or without local BH being disabled */ 52/* can be called with or without local BH being disabled */
53struct inet_peer *inet_getpeer(__be32 daddr, int create); 53struct inet_peer *inet_getpeer(inet_peer_address_t *daddr, int create);
54
55static inline struct inet_peer *inet_getpeer_v4(__be32 v4daddr, int create)
56{
57 inet_peer_address_t daddr;
58
59 daddr.a4 = v4daddr;
60 daddr.family = AF_INET;
61 return inet_getpeer(&daddr, create);
62}
54 63
55/* can be called from BH context or outside */ 64/* can be called from BH context or outside */
56extern void inet_putpeer(struct inet_peer *p); 65extern void inet_putpeer(struct inet_peer *p);