Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Remove unused argument from tcp_signature_getsav.
details: https://anonhg.NetBSD.org/src/rev/97229edd0b3d
branches: trunk
changeset: 359475:97229edd0b3d
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Feb 12 08:22:26 2018 +0000
description:
Remove unused argument from tcp_signature_getsav.
diffstat:
sys/netinet/tcp_input.c | 14 +++++---------
sys/netinet/tcp_output.c | 7 +++----
sys/netinet/tcp_var.h | 4 ++--
3 files changed, 10 insertions(+), 15 deletions(-)
diffs (95 lines):
diff -r 8a438b0ea260 -r 97229edd0b3d sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Mon Feb 12 08:13:08 2018 +0000
+++ b/sys/netinet/tcp_input.c Mon Feb 12 08:22:26 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.378 2018/02/12 08:13:08 maxv Exp $ */
+/* $NetBSD: tcp_input.c,v 1.379 2018/02/12 08:22:26 maxv 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.378 2018/02/12 08:13:08 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.379 2018/02/12 08:22:26 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -3092,7 +3092,7 @@
}
struct secasvar *
-tcp_signature_getsav(struct mbuf *m, struct tcphdr *th)
+tcp_signature_getsav(struct mbuf *m)
{
struct ip *ip;
struct ip6_hdr *ip6;
@@ -3341,9 +3341,7 @@
return 0;
#else
if (tp->t_flags & TF_SIGNATURE) {
-
- sav = tcp_signature_getsav(m, th);
-
+ sav = tcp_signature_getsav(m);
if (sav == NULL && tp->t_state == TCPS_LISTEN)
return (-1);
}
@@ -4584,9 +4582,7 @@
#ifdef TCP_SIGNATURE
if (sc->sc_flags & SCF_SIGNATURE) {
-
- sav = tcp_signature_getsav(m, th);
-
+ sav = tcp_signature_getsav(m);
if (sav == NULL) {
if (m)
m_freem(m);
diff -r 8a438b0ea260 -r 97229edd0b3d sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c Mon Feb 12 08:13:08 2018 +0000
+++ b/sys/netinet/tcp_output.c Mon Feb 12 08:22:26 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_output.c,v 1.197 2017/08/03 06:32:51 ozaki-r Exp $ */
+/* $NetBSD: tcp_output.c,v 1.198 2018/02/12 08:22:26 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -135,7 +135,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.197 2017/08/03 06:32:51 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.198 2018/02/12 08:22:26 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1492,8 +1492,7 @@
struct secasvar *sav;
u_int8_t *sigp;
- sav = tcp_signature_getsav(m, th);
-
+ sav = tcp_signature_getsav(m);
if (sav == NULL) {
if (m)
m_freem(m);
diff -r 8a438b0ea260 -r 97229edd0b3d sys/netinet/tcp_var.h
--- a/sys/netinet/tcp_var.h Mon Feb 12 08:13:08 2018 +0000
+++ b/sys/netinet/tcp_var.h Mon Feb 12 08:22:26 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_var.h,v 1.183 2018/02/12 08:08:28 maxv Exp $ */
+/* $NetBSD: tcp_var.h,v 1.184 2018/02/12 08:22:26 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -880,7 +880,7 @@
tcp_drop(struct tcpcb *, int);
#ifdef TCP_SIGNATURE
int tcp_signature_apply(void *, void *, u_int);
-struct secasvar *tcp_signature_getsav(struct mbuf *, struct tcphdr *);
+struct secasvar *tcp_signature_getsav(struct mbuf *);
int tcp_signature(struct mbuf *, struct tcphdr *, int, struct secasvar *,
char *);
#endif
Home |
Main Index |
Thread Index |
Old Index