- add const
- remove bogus casts - avoid nested variables
This commit is contained in:
parent
00c7362be7
commit
ea2d4204b6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: in_gif.c,v 1.41 2005/02/26 22:45:12 perry Exp $ */
|
||||
/* $NetBSD: in_gif.c,v 1.42 2005/05/29 21:41:23 christos Exp $ */
|
||||
/* $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.41 2005/02/26 22:45:12 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.42 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_iso.h"
|
||||
|
@ -266,18 +266,18 @@ in_gif_input(struct mbuf *m, ...)
|
|||
#ifdef INET
|
||||
case IPPROTO_IPV4:
|
||||
{
|
||||
struct ip *ip;
|
||||
struct ip *xip;
|
||||
af = AF_INET;
|
||||
if (m->m_len < sizeof(*ip)) {
|
||||
m = m_pullup(m, sizeof(*ip));
|
||||
if (m->m_len < sizeof(*xip)) {
|
||||
m = m_pullup(m, sizeof(*xip));
|
||||
if (!m)
|
||||
return;
|
||||
}
|
||||
ip = mtod(m, struct ip *);
|
||||
xip = mtod(m, struct ip *);
|
||||
if (gifp->if_flags & IFF_LINK1)
|
||||
ip_ecn_egress(ECN_ALLOWED, &otos, &ip->ip_tos);
|
||||
ip_ecn_egress(ECN_ALLOWED, &otos, &xip->ip_tos);
|
||||
else
|
||||
ip_ecn_egress(ECN_NOCARE, &otos, &ip->ip_tos);
|
||||
ip_ecn_egress(ECN_NOCARE, &otos, &xip->ip_tos);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
@ -417,7 +417,7 @@ in_gif_attach(struct gif_softc *sc)
|
|||
return EINVAL;
|
||||
sc->encap_cookie4 = encap_attach(AF_INET, -1, sc->gif_psrc,
|
||||
(struct sockaddr *)&mask4, sc->gif_pdst, (struct sockaddr *)&mask4,
|
||||
(struct protosw *)&in_gif_protosw, sc);
|
||||
(const struct protosw *)&in_gif_protosw, sc);
|
||||
#else
|
||||
sc->encap_cookie4 = encap_attach_func(AF_INET, -1, gif_encapcheck,
|
||||
&in_gif_protosw, sc);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: in_pcb.c,v 1.99 2005/05/07 17:42:09 christos Exp $ */
|
||||
/* $NetBSD: in_pcb.c,v 1.100 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -98,7 +98,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.99 2005/05/07 17:42:09 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.100 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -302,7 +302,7 @@ in_pcbbind(void *v, struct mbuf *nam, struct proc *p)
|
|||
noname:
|
||||
if (lport == 0) {
|
||||
int cnt;
|
||||
u_int16_t min, max;
|
||||
u_int16_t mymin, mymax;
|
||||
u_int16_t *lastport;
|
||||
|
||||
if (inp->inp_flags & INP_LOWPORT) {
|
||||
|
@ -310,26 +310,26 @@ noname:
|
|||
if (p == 0 || suser(p->p_ucred, &p->p_acflag))
|
||||
return (EACCES);
|
||||
#endif
|
||||
min = lowportmin;
|
||||
max = lowportmax;
|
||||
mymin = lowportmin;
|
||||
mymax = lowportmax;
|
||||
lastport = &table->inpt_lastlow;
|
||||
} else {
|
||||
min = anonportmin;
|
||||
max = anonportmax;
|
||||
mymin = anonportmin;
|
||||
mymax = anonportmax;
|
||||
lastport = &table->inpt_lastport;
|
||||
}
|
||||
if (min > max) { /* sanity check */
|
||||
if (mymin > mymax) { /* sanity check */
|
||||
u_int16_t swp;
|
||||
|
||||
swp = min;
|
||||
min = max;
|
||||
max = swp;
|
||||
swp = mymin;
|
||||
mymin = mymax;
|
||||
mymax = swp;
|
||||
}
|
||||
|
||||
lport = *lastport - 1;
|
||||
for (cnt = max - min + 1; cnt; cnt--, lport--) {
|
||||
if (lport < min || lport > max)
|
||||
lport = max;
|
||||
for (cnt = mymax - mymin + 1; cnt; cnt--, lport--) {
|
||||
if (lport < mymin || lport > mymax)
|
||||
lport = mymax;
|
||||
if (!in_pcblookup_port(table, inp->inp_laddr,
|
||||
htons(lport), 1))
|
||||
goto found;
|
||||
|
@ -409,13 +409,13 @@ in_pcbconnect(void *v, struct mbuf *nam)
|
|||
* destinations.
|
||||
*/
|
||||
if (in_nullhost(inp->inp_laddr)) {
|
||||
int error;
|
||||
int xerror;
|
||||
ifaddr = in_selectsrc(sin, &inp->inp_route,
|
||||
inp->inp_socket->so_options, inp->inp_moptions, &error);
|
||||
inp->inp_socket->so_options, inp->inp_moptions, &xerror);
|
||||
if (ifaddr == NULL) {
|
||||
if (error == 0)
|
||||
error = EADDRNOTAVAIL;
|
||||
return error;
|
||||
if (xerror == 0)
|
||||
xerror = EADDRNOTAVAIL;
|
||||
return xerror;
|
||||
}
|
||||
INADDR_TO_IA(ifaddr->sin_addr, ia);
|
||||
if (ia == NULL)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ip6.h,v 1.18 2004/07/09 09:15:02 itojun Exp $ */
|
||||
/* $NetBSD: ip6.h,v 1.19 2005/05/29 21:41:23 christos Exp $ */
|
||||
/* $KAME: ip6.h,v 1.45 2003/06/05 04:46:38 keiichi Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -280,16 +280,16 @@ struct ip6_frag {
|
|||
*/
|
||||
#define IP6_EXTHDR_GET(val, typ, m, off, len) \
|
||||
do { \
|
||||
struct mbuf *t; \
|
||||
int tmp; \
|
||||
struct mbuf *_t; \
|
||||
int _tmp; \
|
||||
if ((m)->m_len >= (off) + (len)) \
|
||||
(val) = (typ)(mtod((m), caddr_t) + (off)); \
|
||||
else { \
|
||||
t = m_pulldown((m), (off), (len), &tmp); \
|
||||
if (t) { \
|
||||
if (t->m_len < tmp + (len)) \
|
||||
_t = m_pulldown((m), (off), (len), &_tmp); \
|
||||
if (_t) { \
|
||||
if (_t->m_len < _tmp + (len)) \
|
||||
panic("m_pulldown malfunction"); \
|
||||
(val) = (typ)(mtod(t, caddr_t) + tmp); \
|
||||
(val) = (typ)(mtod(_t, caddr_t) + _tmp); \
|
||||
} else { \
|
||||
(val) = (typ)NULL; \
|
||||
(m) = NULL; \
|
||||
|
@ -299,15 +299,15 @@ do { \
|
|||
|
||||
#define IP6_EXTHDR_GET0(val, typ, m, off, len) \
|
||||
do { \
|
||||
struct mbuf *t; \
|
||||
struct mbuf *_t; \
|
||||
if ((off) == 0 && (m)->m_len >= len) \
|
||||
(val) = (typ)mtod((m), caddr_t); \
|
||||
else { \
|
||||
t = m_pulldown((m), (off), (len), NULL); \
|
||||
if (t) { \
|
||||
if (t->m_len < (len)) \
|
||||
_t = m_pulldown((m), (off), (len), NULL); \
|
||||
if (_t) { \
|
||||
if (_t->m_len < (len)) \
|
||||
panic("m_pulldown malfunction"); \
|
||||
(val) = (typ)mtod(t, caddr_t); \
|
||||
(val) = (typ)mtod(_t, caddr_t); \
|
||||
} else { \
|
||||
(val) = (typ)NULL; \
|
||||
(m) = NULL; \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ip_output.c,v 1.152 2005/04/18 22:06:28 yamt Exp $ */
|
||||
/* $NetBSD: ip_output.c,v 1.153 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -98,7 +98,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.152 2005/04/18 22:06:28 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.153 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_pfil_hooks.h"
|
||||
#include "opt_inet.h"
|
||||
|
@ -412,14 +412,14 @@ ip_output(struct mbuf *m0, ...)
|
|||
* of outgoing interface.
|
||||
*/
|
||||
if (in_nullhost(ip->ip_src)) {
|
||||
struct in_ifaddr *ia;
|
||||
struct in_ifaddr *xia;
|
||||
|
||||
IFP_TO_IA(ifp, ia);
|
||||
if (!ia) {
|
||||
IFP_TO_IA(ifp, xia);
|
||||
if (!xia) {
|
||||
error = EADDRNOTAVAIL;
|
||||
goto bad;
|
||||
}
|
||||
ip->ip_src = ia->ia_addr.sin_addr;
|
||||
ip->ip_src = xia->ia_addr.sin_addr;
|
||||
}
|
||||
|
||||
IN_LOOKUP_MULTI(ip->ip_dst, ifp, inm);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_input.c,v 1.227 2005/04/26 05:37:45 manu Exp $ */
|
||||
/* $NetBSD: tcp_input.c,v 1.228 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -150,7 +150,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.227 2005/04/26 05:37:45 manu Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.228 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -3176,9 +3176,9 @@ u_int32_t syn_hash1, syn_hash2;
|
|||
#ifndef INET6
|
||||
#define SYN_HASHALL(hash, src, dst) \
|
||||
do { \
|
||||
hash = SYN_HASH(&((struct sockaddr_in *)(src))->sin_addr, \
|
||||
((struct sockaddr_in *)(src))->sin_port, \
|
||||
((struct sockaddr_in *)(dst))->sin_port); \
|
||||
hash = SYN_HASH(&((const struct sockaddr_in *)(src))->sin_addr, \
|
||||
((const struct sockaddr_in *)(src))->sin_port, \
|
||||
((const struct sockaddr_in *)(dst))->sin_port); \
|
||||
} while (/*CONSTCOND*/ 0)
|
||||
#else
|
||||
#define SYN_HASH6(sa, sp, dp) \
|
||||
|
@ -3190,14 +3190,14 @@ do { \
|
|||
do { \
|
||||
switch ((src)->sa_family) { \
|
||||
case AF_INET: \
|
||||
hash = SYN_HASH(&((struct sockaddr_in *)(src))->sin_addr, \
|
||||
((struct sockaddr_in *)(src))->sin_port, \
|
||||
((struct sockaddr_in *)(dst))->sin_port); \
|
||||
hash = SYN_HASH(&((const struct sockaddr_in *)(src))->sin_addr, \
|
||||
((const struct sockaddr_in *)(src))->sin_port, \
|
||||
((const struct sockaddr_in *)(dst))->sin_port); \
|
||||
break; \
|
||||
case AF_INET6: \
|
||||
hash = SYN_HASH6(&((struct sockaddr_in6 *)(src))->sin6_addr, \
|
||||
((struct sockaddr_in6 *)(src))->sin6_port, \
|
||||
((struct sockaddr_in6 *)(dst))->sin6_port); \
|
||||
hash = SYN_HASH6(&((const struct sockaddr_in6 *)(src))->sin6_addr, \
|
||||
((const struct sockaddr_in6 *)(src))->sin6_port, \
|
||||
((const struct sockaddr_in6 *)(dst))->sin6_port); \
|
||||
break; \
|
||||
default: \
|
||||
hash = 0; \
|
||||
|
@ -3437,7 +3437,7 @@ syn_cache_cleanup(struct tcpcb *tp)
|
|||
* Find an entry in the syn cache.
|
||||
*/
|
||||
struct syn_cache *
|
||||
syn_cache_lookup(struct sockaddr *src, struct sockaddr *dst,
|
||||
syn_cache_lookup(const struct sockaddr *src, const struct sockaddr *dst,
|
||||
struct syn_cache_head **headp)
|
||||
{
|
||||
struct syn_cache *sc;
|
||||
|
@ -3812,7 +3812,7 @@ syn_cache_reset(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th)
|
|||
}
|
||||
|
||||
void
|
||||
syn_cache_unreach(struct sockaddr *src, struct sockaddr *dst,
|
||||
syn_cache_unreach(const struct sockaddr *src, const struct sockaddr *dst,
|
||||
struct tcphdr *th)
|
||||
{
|
||||
struct syn_cache *sc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_output.c,v 1.134 2005/05/08 04:52:05 yamt Exp $ */
|
||||
/* $NetBSD: tcp_output.c,v 1.135 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -140,7 +140,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.134 2005/05/08 04:52:05 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.135 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -1064,12 +1064,12 @@ send:
|
|||
optlen += 4;
|
||||
}
|
||||
if (tcp_do_sack) {
|
||||
u_int8_t *p = (u_int8_t *)(opt + optlen);
|
||||
u_int8_t *cp = (u_int8_t *)(opt + optlen);
|
||||
|
||||
p[0] = TCPOPT_SACK_PERMITTED;
|
||||
p[1] = 2;
|
||||
p[2] = TCPOPT_NOP;
|
||||
p[3] = TCPOPT_NOP;
|
||||
cp[0] = TCPOPT_SACK_PERMITTED;
|
||||
cp[1] = 2;
|
||||
cp[2] = TCPOPT_NOP;
|
||||
cp[3] = TCPOPT_NOP;
|
||||
optlen += 4;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_subr.c,v 1.190 2005/04/18 21:50:25 yamt Exp $ */
|
||||
/* $NetBSD: tcp_subr.c,v 1.191 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -98,7 +98,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.190 2005/04/18 21:50:25 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.191 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -1421,7 +1421,7 @@ tcp6_ctlinput(int cmd, struct sockaddr *sa, void *d)
|
|||
* payload.
|
||||
*/
|
||||
if (in6_pcblookup_connect(&tcbtable, &sa6->sin6_addr,
|
||||
th.th_dport, (struct in6_addr *)&sa6_src->sin6_addr,
|
||||
th.th_dport, (const struct in6_addr *)&sa6_src->sin6_addr,
|
||||
th.th_sport, 0))
|
||||
valid++;
|
||||
|
||||
|
@ -1442,16 +1442,16 @@ tcp6_ctlinput(int cmd, struct sockaddr *sa, void *d)
|
|||
}
|
||||
|
||||
nmatch = in6_pcbnotify(&tcbtable, sa, th.th_dport,
|
||||
(struct sockaddr *)sa6_src, th.th_sport, cmd, NULL, notify);
|
||||
(const struct sockaddr *)sa6_src, th.th_sport, cmd, NULL, notify);
|
||||
if (nmatch == 0 && syn_cache_count &&
|
||||
(inet6ctlerrmap[cmd] == EHOSTUNREACH ||
|
||||
inet6ctlerrmap[cmd] == ENETUNREACH ||
|
||||
inet6ctlerrmap[cmd] == EHOSTDOWN))
|
||||
syn_cache_unreach((struct sockaddr *)sa6_src,
|
||||
syn_cache_unreach((const struct sockaddr *)sa6_src,
|
||||
sa, &th);
|
||||
} else {
|
||||
(void) in6_pcbnotify(&tcbtable, sa, 0,
|
||||
(struct sockaddr *)sa6_src, 0, cmd, NULL, notify);
|
||||
(const struct sockaddr *)sa6_src, 0, cmd, NULL, notify);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -1653,7 +1653,7 @@ tcp6_mtudisc_callback(struct in6_addr *faddr)
|
|||
sin6.sin6_len = sizeof(struct sockaddr_in6);
|
||||
sin6.sin6_addr = *faddr;
|
||||
(void) in6_pcbnotify(&tcbtable, (struct sockaddr *)&sin6, 0,
|
||||
(struct sockaddr *)&sa6_any, 0, PRC_MSGSIZE, NULL, tcp6_mtudisc);
|
||||
(const struct sockaddr *)&sa6_any, 0, PRC_MSGSIZE, NULL, tcp6_mtudisc);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_usrreq.c,v 1.103 2005/05/07 17:42:09 christos Exp $ */
|
||||
/* $NetBSD: tcp_usrreq.c,v 1.104 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -100,7 +100,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.103 2005/05/07 17:42:09 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.104 2005/05/29 21:41:23 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -1190,14 +1190,14 @@ sysctl_inpcblist(SYSCTLFN_ARGS)
|
|||
{
|
||||
#ifdef INET
|
||||
struct sockaddr_in *in;
|
||||
struct inpcb *inp;
|
||||
const struct inpcb *inp;
|
||||
#endif
|
||||
#ifdef INET6
|
||||
struct sockaddr_in6 *in6;
|
||||
struct in6pcb *in6p;
|
||||
const struct in6pcb *in6p;
|
||||
#endif
|
||||
const struct inpcbtable *pcbtbl = rnode->sysctl_data;
|
||||
struct inpcb_hdr *inph;
|
||||
struct inpcbtable *pcbtbl = __UNCONST(rnode->sysctl_data);
|
||||
const struct inpcb_hdr *inph;
|
||||
struct tcpcb *tp;
|
||||
struct kinfo_pcb pcb;
|
||||
char *dp;
|
||||
|
@ -1222,7 +1222,7 @@ sysctl_inpcblist(SYSCTLFN_ARGS)
|
|||
elem_size = out_size = sizeof(pcb);
|
||||
|
||||
if (namelen == 1 && name[0] == CTL_QUERY)
|
||||
return (sysctl_query(SYSCTLFN_CALL(rnode)));
|
||||
return (sysctl_query(SYSCTLFN_CALL(__UNCONST(rnode))));
|
||||
|
||||
if (name - oname != 4)
|
||||
return (EINVAL);
|
||||
|
@ -1233,10 +1233,10 @@ sysctl_inpcblist(SYSCTLFN_ARGS)
|
|||
|
||||
CIRCLEQ_FOREACH(inph, &pcbtbl->inpt_queue, inph_queue) {
|
||||
#ifdef INET
|
||||
inp = (struct inpcb *)inph;
|
||||
inp = (const struct inpcb *)inph;
|
||||
#endif
|
||||
#ifdef INET6
|
||||
in6p = (struct in6pcb *)inph;
|
||||
in6p = (const struct in6pcb *)inph;
|
||||
#endif
|
||||
|
||||
if (inph->inph_af != pf)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_var.h,v 1.125 2005/04/05 01:07:17 kurahone Exp $ */
|
||||
/* $NetBSD: tcp_var.h,v 1.126 2005/05/29 21:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -862,14 +862,14 @@ int tcp_sack_numblks(const struct tcpcb *);
|
|||
int syn_cache_add(struct sockaddr *, struct sockaddr *,
|
||||
struct tcphdr *, unsigned int, struct socket *,
|
||||
struct mbuf *, u_char *, int, struct tcp_opt_info *);
|
||||
void syn_cache_unreach(struct sockaddr *, struct sockaddr *,
|
||||
void syn_cache_unreach(const struct sockaddr *, const struct sockaddr *,
|
||||
struct tcphdr *);
|
||||
struct socket *syn_cache_get(struct sockaddr *, struct sockaddr *,
|
||||
struct tcphdr *, unsigned int, unsigned int,
|
||||
struct socket *so, struct mbuf *);
|
||||
void syn_cache_init(void);
|
||||
void syn_cache_insert(struct syn_cache *, struct tcpcb *);
|
||||
struct syn_cache *syn_cache_lookup(struct sockaddr *, struct sockaddr *,
|
||||
struct syn_cache *syn_cache_lookup(const struct sockaddr *, const struct sockaddr *,
|
||||
struct syn_cache_head **);
|
||||
void syn_cache_reset(struct sockaddr *, struct sockaddr *,
|
||||
struct tcphdr *);
|
||||
|
|
Loading…
Reference in New Issue