aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2019-10-23 20:37:15 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2019-10-23 20:37:15 +0000
commit3c7165b35e65acbbb099e2573db12f721e596b2f (patch)
tree42aee0b44ad52eb77a8a6a508145951ac7546faf
parent4ad0475f035e4830d233577b55e6ff20feb6afc2 (diff)
downloadsrc-3c7165b35e65acbbb099e2573db12f721e596b2f.tar.gz
src-3c7165b35e65acbbb099e2573db12f721e596b2f.zip
frag6: whitespace changes
Remove trailing white space, add a blank line, and compress a comment. No functional changes. MFC after: 10 days Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=353963
-rw-r--r--sys/netinet6/frag6.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index e975b8a0cb31..56035964b6a2 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -106,7 +106,7 @@ VNET_DEFINE_STATIC(bool, frag6_on);
#define V_frag6_on VNET(frag6_on)
#endif
-/* System wide (global) maximum and count of packets in reassembly queues. */
+/* System wide (global) maximum and count of packets in reassembly queues. */
static int ip6_maxfrags;
static volatile u_int frag6_nfrags = 0;
@@ -215,7 +215,7 @@ ip6_deletefraghdr(struct mbuf *m, int offset, int wait)
if (m->m_len >= offset + sizeof(struct ip6_frag)) {
/* This is the only possible case with !PULLDOWN_TEST. */
- ip6 = mtod(m, struct ip6_hdr *);
+ ip6 = mtod(m, struct ip6_hdr *);
bcopy(ip6, (char *)ip6 + sizeof(struct ip6_frag),
offset);
m->m_data += sizeof(struct ip6_frag);
@@ -395,9 +395,7 @@ frag6_input(struct mbuf **mp, int *offp, int proto)
return (IPPROTO_DONE);
#endif
- /*
- * Store receive network interface pointer for later.
- */
+ /* Store receive network interface pointer for later. */
srcifp = m->m_pkthdr.rcvif;
dstifp = NULL;
@@ -598,7 +596,7 @@ frag6_input(struct mbuf **mp, int *offp, int proto)
/* Set a valid receive interface pointer. */
merr->m_pkthdr.rcvif = srcifp;
-
+
/* Adjust pointer. */
ip6err = mtod(merr, struct ip6_hdr *);
@@ -697,6 +695,7 @@ insert:
frag6_enq(ip6af, af6->ip6af_up, bucket);
atomic_add_int(&frag6_nfrags, 1);
q6->ip6q_nfrag++;
+
plen = 0;
for (af6 = q6->ip6q_down; af6 != (struct ip6asfrag *)q6;
af6 = af6->ip6af_down) {