diff options
author | dg <dg@FreeBSD.org> | 1996-10-07 19:06:12 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-10-07 19:06:12 +0000 |
commit | 00503a161c79ade0719914a9a6702edb1b8cf4ce (patch) | |
tree | dae846038cd15c3157337180a5522bad5b374630 /sys/netinet/in_pcb.h | |
parent | 1d8ea9950b98ea0cc0979fcc4630afb5ba994f6e (diff) | |
download | FreeBSD-src-00503a161c79ade0719914a9a6702edb1b8cf4ce.zip FreeBSD-src-00503a161c79ade0719914a9a6702edb1b8cf4ce.tar.gz |
Improved in_pcblookuphash() to support wildcarding, and changed relavent
callers of it to take advantage of this. This reduces new connection
request overhead in the face of a large number of PCBs in the system.
Thanks to David Filo <filo@yahoo.com> for suggesting this and providing
a sample implementation (which wasn't used, but showed that it could be
done).
Reviewed by: wollman
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 072d884..685c66d 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 - * $Id: in_pcb.h,v 1.11 1996/02/22 21:32:22 peter Exp $ + * $Id: in_pcb.h,v 1.12 1996/08/23 18:59:07 phk Exp $ */ #ifndef _NETINET_IN_PCB_H_ @@ -96,11 +96,11 @@ void in_pcbdisconnect __P((struct inpcb *)); int in_pcbladdr __P((struct inpcb *, struct mbuf *, struct sockaddr_in **)); struct inpcb * - in_pcblookup __P((struct inpcbhead *, + in_pcblookup __P((struct inpcbinfo *, struct in_addr, u_int, struct in_addr, u_int, int)); struct inpcb * in_pcblookuphash __P((struct inpcbinfo *, - struct in_addr, u_int, struct in_addr, u_int)); + struct in_addr, u_int, struct in_addr, u_int, int)); void in_pcbnotify __P((struct inpcbhead *, struct sockaddr *, u_int, struct in_addr, u_int, int, void (*)(struct inpcb *, int))); void in_pcbrehash __P((struct inpcb *)); |