mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[IPV6]: Generalise the tcp_v6_lookup routines
In the same way as was done with the v4 counterparts, this will be moved to inet6_hashtables.c. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b766b305d3
commit
505cbfc577
5 changed files with 122 additions and 91 deletions
26
include/net/inet6_hashtables.h
Normal file
26
include/net/inet6_hashtables.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* INET An implementation of the TCP/IP protocol suite for the LINUX
|
||||
* operating system. INET is implemented using the BSD Socket
|
||||
* interface as the means of communication with the user level.
|
||||
*
|
||||
* Authors: Lotsa people, from code originally in tcp
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _INET6_HASHTABLES_H
|
||||
#define _INET6_HASHTABLES_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct in6_addr;
|
||||
struct inet_hashinfo;
|
||||
|
||||
extern struct sock *inet6_lookup(struct inet_hashinfo *hashinfo,
|
||||
const struct in6_addr *saddr, const u16 sport,
|
||||
const struct in6_addr *daddr, const u16 dport,
|
||||
const int dif);
|
||||
#endif /* _INET6_HASHTABLES_H */
|
Loading…
Add table
Add a link
Reference in a new issue