Module Name: src Committed By: yamt Date: Fri Apr 13 15:35:57 UTC 2012
Modified Files: src/sys/netinet: tcp_input.c Log Message: comment To generate a diff of this commit: cvs rdiff -u -r1.322 -r1.323 src/sys/netinet/tcp_input.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet/tcp_input.c diff -u src/sys/netinet/tcp_input.c:1.322 src/sys/netinet/tcp_input.c:1.323 --- src/sys/netinet/tcp_input.c:1.322 Thu Mar 22 20:34:39 2012 +++ src/sys/netinet/tcp_input.c Fri Apr 13 15:35:57 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_input.c,v 1.322 2012/03/22 20:34:39 drochner Exp $ */ +/* $NetBSD: tcp_input.c,v 1.323 2012/04/13 15:35:57 yamt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -148,7 +148,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.322 2012/03/22 20:34:39 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.323 2012/04/13 15:35:57 yamt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -4531,6 +4531,12 @@ syn_cache_add(struct sockaddr *src, stru return (1); } +/* + * syn_cache_respond: (re)send SYN+ACK. + * + * returns 0 on success. otherwise returns an errno, typically ENOBUFS. + */ + int syn_cache_respond(struct syn_cache *sc, struct mbuf *m) {