summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_spd.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2015-04-13 16:48:02 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2015-04-13 16:48:02 +0000
commit39716346f849999f03737414c21d5cb5d06545a8 (patch)
treeaa8c83188f18fa67c908d611e10ee111233589ad /sys/netinet/ip_spd.c
parentaca82046f23013bfaa6f58f84885ffcf184ff067 (diff)
Rename gettdbbyaddr to gettdbbydst; OK markus, hshoexer, mpi
Diffstat (limited to 'sys/netinet/ip_spd.c')
-rw-r--r--sys/netinet/ip_spd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_spd.c b/sys/netinet/ip_spd.c
index 0170dc1d85c..4fe95bfd127 100644
--- a/sys/netinet/ip_spd.c
+++ b/sys/netinet/ip_spd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_spd.c,v 1.79 2015/04/13 16:45:52 mikeb Exp $ */
+/* $OpenBSD: ip_spd.c,v 1.80 2015/04/13 16:48:01 mikeb Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -400,7 +400,7 @@ ipsp_spd_lookup(struct mbuf *m, int af, int hlen, int *error, int direction,
/* Find an appropriate SA from the existing ones. */
ipo->ipo_tdb =
- gettdbbyaddr(rdomain,
+ gettdbbydst(rdomain,
dignore ? &sdst : &ipo->ipo_dst,
ipo->ipo_sproto,
srcid ? srcid : ipo->ipo_srcid,
@@ -1063,7 +1063,7 @@ ipsp_spd_inp(struct mbuf *m, int af, int hlen, int *error, int direction,
ipsec_update_policy(inp, inp->inp_ipo, af,
IPSP_DIRECTION_OUT);
- tdb = gettdbbyaddr(rtable_l2(inp->inp_rtableid),
+ tdb = gettdbbydst(rtable_l2(inp->inp_rtableid),
&inp->inp_ipo->ipo_dst,
inp->inp_ipo->ipo_sproto,
inp->inp_ipo->ipo_srcid,
@@ -1080,7 +1080,7 @@ ipsp_spd_inp(struct mbuf *m, int af, int hlen, int *error, int direction,
ipsec_update_policy(inp, &sipon, af,
IPSP_DIRECTION_OUT);
- tdb = gettdbbyaddr(rtable_l2(inp->inp_rtableid),
+ tdb = gettdbbydst(rtable_l2(inp->inp_rtableid),
&sipon.ipo_dst, IPPROTO_ESP, NULL,
NULL, NULL, &sipon.ipo_addr, &sipon.ipo_mask);
}