summaryrefslogtreecommitdiff
path: root/sys/net/pipex.c
diff options
context:
space:
mode:
authorVitaliy Makkoveev <mvs@cvs.openbsd.org>2022-06-26 18:56:10 +0000
committerVitaliy Makkoveev <mvs@cvs.openbsd.org>2022-06-26 18:56:10 +0000
commitaabb620c253973617ed7a64786a3eed82adf47eb (patch)
tree2a7aa7b1fa124f74838239300b8313fcca3ec3fd /sys/net/pipex.c
parent56bba0d1411056beafe7fb614e4beea597228c10 (diff)
Fix spacing.
Diffstat (limited to 'sys/net/pipex.c')
-rw-r--r--sys/net/pipex.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index cef23c856da..40a19037a51 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.138 2022/06/26 15:50:21 mvs Exp $ */
+/* $OpenBSD: pipex.c,v 1.139 2022/06/26 18:56:09 mvs Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -2156,18 +2156,18 @@ pipex_l2tp_userland_output(struct mbuf *m0, struct pipex_session *session)
* overwrite sequence numbers to adjust a gap between pipex and
* userland.
*/
- seq = (struct pipex_l2tp_seq_header *)(l2tp + 1);
- ns = ntohs(seq->ns);
- nr = ntohs(seq->nr);
-
- ns += session->proto.l2tp.ns_gap;
- seq->ns = htons(ns);
- session->proto.l2tp.ns_nxt++;
-
- nr += session->proto.l2tp.nr_gap;
- seq->nr = htons(nr);
- if (SEQ16_GT(nr, session->proto.l2tp.nr_acked))
- session->proto.l2tp.nr_acked = nr;
+ seq = (struct pipex_l2tp_seq_header *)(l2tp + 1);
+ ns = ntohs(seq->ns);
+ nr = ntohs(seq->nr);
+
+ ns += session->proto.l2tp.ns_gap;
+ seq->ns = htons(ns);
+ session->proto.l2tp.ns_nxt++;
+
+ nr += session->proto.l2tp.nr_gap;
+ seq->nr = htons(nr);
+ if (SEQ16_GT(nr, session->proto.l2tp.nr_acked))
+ session->proto.l2tp.nr_acked = nr;
return (m0);
}