Skip to content

Commit

Permalink
s/ipsec_deepcopy_pcbpolicy/ipsec_copy_pcbpolicy/
Browse files Browse the repository at this point in the history
(deep copy is made as necessary in ipsec.c)
  • Loading branch information
itojun committed Jun 11, 2002
1 parent 90a9203 commit 304adb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion freebsd3/sys/netinet/tcp_input.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ tcp_input(m, off, proto)
inp->inp_options = ip_srcroute(); inp->inp_options = ip_srcroute();
#ifdef IPSEC #ifdef IPSEC
/* copy old policy into new socket's */ /* copy old policy into new socket's */
if (ipsec_deepcopy_pcbpolicy(sotoinpcb(oso)->inp_sp, if (ipsec_copy_pcbpolicy(sotoinpcb(oso)->inp_sp,
inp->inp_sp)) inp->inp_sp))
printf("tcp_input: could not copy policy\n"); printf("tcp_input: could not copy policy\n");
#endif #endif
Expand Down
2 changes: 1 addition & 1 deletion freebsd4/sys/netinet/tcp_syncache.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ syncache_socket(sc, lso)
} }
#ifdef IPSEC #ifdef IPSEC
/* copy old policy into new socket's */ /* copy old policy into new socket's */
if (ipsec_deepcopy_pcbpolicy(sotoinpcb(lso)->inp_sp, inp->inp_sp)) if (ipsec_copy_pcbpolicy(sotoinpcb(lso)->inp_sp, inp->inp_sp))
printf("syncache_expand: could not copy policy\n"); printf("syncache_expand: could not copy policy\n");
#endif #endif
#ifdef INET6 #ifdef INET6
Expand Down
6 changes: 3 additions & 3 deletions kame/sys/netinet6/tcp6_input.c
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: tcp6_input.c,v 1.57 2002/06/11 17:54:30 itojun Exp $ */ /* $KAME: tcp6_input.c,v 1.58 2002/06/11 21:52:24 itojun Exp $ */


/* /*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -753,7 +753,7 @@ tcp6_input(mp, offp, proto)
M_NOWAIT); M_NOWAIT);
#ifdef IPSEC #ifdef IPSEC
/* copy old policy into new socket's */ /* copy old policy into new socket's */
if (ipsec_deepcopy_pcbpolicy(sotoin6pcb(oso)->in6p_sp, if (ipsec_copy_pcbpolicy(sotoin6pcb(oso)->in6p_sp,
in6p->in6p_sp)) in6p->in6p_sp))
printf("tcp6_input: could not copy policy\n"); printf("tcp6_input: could not copy policy\n");
#endif #endif
Expand Down Expand Up @@ -2550,7 +2550,7 @@ syn_cache_get6(so, m, off, len, src, dst)
in6p->in6p_fport = sc->sc_sport; in6p->in6p_fport = sc->sc_sport;
#ifdef IPSEC #ifdef IPSEC
/* copy old policy into new socket's */ /* copy old policy into new socket's */
if (ipsec_deepcopy_pcbpolicy(sotoin6pcb(oso)->in6p_sp, in6p->in6p_sp)) if (ipsec_copy_pcbpolicy(sotoin6pcb(oso)->in6p_sp, in6p->in6p_sp))
printf("syn_cache_get6: could not copy policy\n"); printf("syn_cache_get6: could not copy policy\n");
#endif #endif


Expand Down
4 changes: 2 additions & 2 deletions netbsd/sys/netinet/tcp_input.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3196,13 +3196,13 @@ syn_cache_get(src, dst, th, hlen, tlen, so, m)
*/ */
if (inp) { if (inp) {
/* copy old policy into new socket's */ /* copy old policy into new socket's */
if (ipsec_deepcopy_pcbpolicy(sotoinpcb(oso)->inp_sp, inp->inp_sp)) if (ipsec_copy_pcbpolicy(sotoinpcb(oso)->inp_sp, inp->inp_sp))
printf("tcp_input: could not copy policy\n"); printf("tcp_input: could not copy policy\n");
} }
#ifdef INET6 #ifdef INET6
else if (in6p) { else if (in6p) {
/* copy old policy into new socket's */ /* copy old policy into new socket's */
if (ipsec_deepcopy_pcbpolicy(sotoin6pcb(oso)->in6p_sp, in6p->in6p_sp)) if (ipsec_copy_pcbpolicy(sotoin6pcb(oso)->in6p_sp, in6p->in6p_sp))
printf("tcp_input: could not copy policy\n"); printf("tcp_input: could not copy policy\n");
} }
#endif #endif
Expand Down

0 comments on commit 304adb1

Please sign in to comment.