summaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_divert.c
diff options
context:
space:
mode:
authorLawrence Teo <lteo@cvs.openbsd.org>2013-11-15 16:46:16 +0000
committerLawrence Teo <lteo@cvs.openbsd.org>2013-11-15 16:46:16 +0000
commitba4d7f2131403c12cd7c55eba1d326f2f224c7b8 (patch)
tree1d0e97800be0bbef4e748e59b7a84519887e1e7f /sys/netinet6/ip6_divert.c
parent9e635fbf8ac834c0adb363f89719810da1594832 (diff)
Rename the struct pf_divert variable in divert_packet() and
divert6_packet() from "pd" to "divert" to match the rest of the source. I think "pd" was not a good name for a struct pf_divert because "pd" usually refers to a pf_pdesc. No object file change. OK benno@ bluhm@ henning@
Diffstat (limited to 'sys/netinet6/ip6_divert.c')
-rw-r--r--sys/netinet6/ip6_divert.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet6/ip6_divert.c b/sys/netinet6/ip6_divert.c
index fab183b8f97..7d84dfa484e 100644
--- a/sys/netinet6/ip6_divert.c
+++ b/sys/netinet6/ip6_divert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_divert.c,v 1.14 2013/10/17 16:27:46 bluhm Exp $ */
+/* $OpenBSD: ip6_divert.c,v 1.15 2013/11/15 16:46:15 lteo Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -199,7 +199,7 @@ divert6_packet(struct mbuf *m, int dir)
struct inpcb *inp;
struct socket *sa = NULL;
struct sockaddr_in6 addr;
- struct pf_divert *pd;
+ struct pf_divert *divert;
inp = NULL;
div6stat.divs_ipackets++;
@@ -210,15 +210,15 @@ divert6_packet(struct mbuf *m, int dir)
return (0);
}
- pd = pf_find_divert(m);
- if (pd == NULL) {
+ divert = pf_find_divert(m);
+ if (divert == NULL) {
div6stat.divs_errors++;
m_freem(m);
return (0);
}
CIRCLEQ_FOREACH(inp, &divb6table.inpt_queue, inp_queue) {
- if (inp->inp_lport != pd->port)
+ if (inp->inp_lport != divert->port)
continue;
if (inp->inp_divertfl == 0)
break;