Skip to content

Commit 3e76d8f

Browse files
ralflicicron2
authored andcommitted
dco: remove dco_read/write_bytes from dco_context_t
Remove dco_read_bytes and dco_write_bytes from all dco_context_t structures, as peer statistics are now stored directly in the corresponding c2 fields across all DCO interfaces. Change-Id: I61f9d9bb26112eac0c0a47cb9d17982b075887ff Signed-off-by: Ralf Lici <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1276 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg33431.html Signed-off-by: Gert Doering <[email protected]>
1 parent bf01a96 commit 3e76d8f

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

src/openvpn/dco_freebsd.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ typedef struct dco_context
5959
int dco_message_peer_id;
6060
int dco_del_peer_reason;
6161
struct sockaddr_storage dco_float_peer_ss;
62-
uint64_t dco_read_bytes;
63-
uint64_t dco_write_bytes;
6462

6563
struct context *c;
6664
} dco_context_t;

src/openvpn/dco_linux.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ typedef struct
8181
int dco_message_key_id;
8282
int dco_del_peer_reason;
8383
struct sockaddr_storage dco_float_peer_ss;
84-
uint64_t dco_read_bytes;
85-
uint64_t dco_write_bytes;
8684
} dco_context_t;
8785

8886
#endif /* defined(ENABLE_DCO) && defined(TARGET_LINUX) */

src/openvpn/dco_win.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ struct dco_context
5555
int dco_del_peer_reason;
5656
struct sockaddr_storage dco_float_peer_ss;
5757

58-
uint64_t dco_read_bytes;
59-
uint64_t dco_write_bytes;
60-
6158
struct context *c;
6259
};
6360

src/openvpn/multi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3266,8 +3266,6 @@ process_incoming_del_peer(struct multi_context *m, struct multi_instance *mi, dc
32663266
* installed, and we do not need to clean up the state in the kernel */
32673267
mi->context.c2.tls_multi->dco_peer_id = -1;
32683268
mi->context.sig->signal_text = reason;
3269-
mi->context.c2.dco_read_bytes = dco->dco_read_bytes;
3270-
mi->context.c2.dco_write_bytes = dco->dco_write_bytes;
32713269
multi_signal_instance(m, mi, SIGTERM);
32723270
}
32733271

@@ -3337,8 +3335,6 @@ multi_process_incoming_dco(struct multi_context *m)
33373335
dco->dco_message_type = 0;
33383336
dco->dco_message_peer_id = -1;
33393337
dco->dco_del_peer_reason = -1;
3340-
dco->dco_read_bytes = 0;
3341-
dco->dco_write_bytes = 0;
33423338
return ret > 0;
33433339
}
33443340
#endif /* if defined(ENABLE_DCO) */

0 commit comments

Comments
 (0)