[IPV6]: Generalise the tcp_v6_lookup routines
[safe/jmp/linux-2.6] / include / net / inet6_hashtables.h
1 /*
2  * INET         An implementation of the TCP/IP protocol suite for the LINUX
3  *              operating system.  INET is implemented using the BSD Socket
4  *              interface as the means of communication with the user level.
5  *
6  * Authors:     Lotsa people, from code originally in tcp
7  *
8  *      This program is free software; you can redistribute it and/or
9  *      modify it under the terms of the GNU General Public License
10  *      as published by the Free Software Foundation; either version
11  *      2 of the License, or (at your option) any later version.
12  */
13
14 #ifndef _INET6_HASHTABLES_H
15 #define _INET6_HASHTABLES_H
16
17 #include <linux/types.h>
18
19 struct in6_addr;
20 struct inet_hashinfo;
21
22 extern struct sock *inet6_lookup(struct inet_hashinfo *hashinfo,
23                                  const struct in6_addr *saddr, const u16 sport,
24                                  const struct in6_addr *daddr, const u16 dport,
25                                  const int dif);
26 #endif /* _INET6_HASHTABLES_H */