Skip to content

Various clean up patches

Arne Schwabe openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest14 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14Remove code for aligning non-swapped compressionsrc/openvpn/comp.h src/openvpn/init.c src/openvpn/mtu.h+0 -431 reply
2/14Remove superflous ifdefs around enum like definessrc/openvpn/mtcp.c src/openvpn/mudp.c src/openvpn/openvpn.h+0 -111 reply
3/14Rename tunnel_server_udp_single_threaded to tunnel_server_udpdoc/doxygen/doc_eventloop.h doc/doxygen/doc_tunnel_state.h src/openvpn/mudp.c +2 more+8 -261 reply
4/14Add documentation on EVENT_READ/EVENT_WRITE constantssrc/openvpn/forward.c src/openvpn/openvpn.h+13 -29 replies
5/14Remove unused variable pass_config_infosrc/openvpn/ssl_common.h+0 -41 reply
6/14Remove pointless tun_adjust_frame_parameters functionsrc/openvpn/init.c src/openvpn/tun.h+1 -111 reply
7/14Remove unused field txqueuelen from struct tuntapsrc/openvpn/tun.h+0 -31 reply
8/14Remove unused function tls_test_auth_deferred_intervalsrc/openvpn/ssl.h+0 -111 reply
9/14Move is_proto function to the socket.h headersrc/openvpn/socket.c src/openvpn/socket.h+38 -481 reply
10/14Remove thread_mode field of multi_contextsrc/openvpn/mtcp.c src/openvpn/mudp.c src/openvpn/multi.c +1 more+31 -501 reply
11/14Remove P2MP mode and check for gettimeofdaysrc/compat/compat-gettimeofday.c src/openvpn/forward.c src/openvpn/forward.h +19 more+49 -2063 replies
12/14Extract multi_assign_peer_id into its own functionsrc/openvpn/mudp.c src/openvpn/multi.c src/openvpn/multi.h+32 -191 reply
13/14log file descriptor in more socket related error messagessrc/openvpn/error.c src/openvpn/event.c+10 -61 reply
14/14Remove do_init_socket_2 and do_init_socket_1 wrapper functionsrc/openvpn/init.c src/openvpn/socket.c src/openvpn/socket.h+52 -1571 reply

Reviews trailers per patch

12 of 14 patches have a Reviewed-by or Acked-by.

PatchGert DoeringArne Schwabe
1/14A-b
2/14A-b
3/14A-b
4/14A-b A-b
5/14A-b
6/14A-b
7/14A-b
8/14A-b
9/14A-b
10/14A-b
11/14
12/14A-b
13/14
14/14A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 00/14] Various clean up patches

These are a number of patches that do various cleanups that I did as part of implementing DCO but are good on their own.

Arne Schwabe (14):
Remove code for aligning non-swapped compression Remove superflous ifdefs around enum like defines Rename tunnel_server_udp_single_threaded to tunnel_server_udp Add documentation on EVENT_READ/EVENT_WRITE constants Remove unused variable pass_config_info
Remove pointless tun_adjust_frame_parameters function Remove unused field txqueuelen from struct tuntap Remove unused function tls_test_auth_deferred_interval Move is_proto function to the socket.h header Remove thread_mode field of multi_context
Remove P2MP mode and check for gettimeofday
Extract multi_assign_peer_id into its own function log file descriptor in more socket related error messages Remove do_init_socket_2 and do_init_socket_1 wrapper function

 doc/doxygen/doc_eventloop.h      |   2 +-
 doc/doxygen/doc_tunnel_state.h   |   2 +-
 src/compat/compat-gettimeofday.c |   2 +-
 src/openvpn/comp.h               |   6 --
 src/openvpn/error.c              |   8 +-
 src/openvpn/event.c              |   8 +-
 src/openvpn/forward.c            |  26 +-----
 src/openvpn/forward.h            |   6 --
 src/openvpn/helper.c             |   3 -
 src/openvpn/init.c               | 122 +-------------------------
 src/openvpn/manage.c             |   4 -
 src/openvpn/mbuf.c               |   3 -
 src/openvpn/mbuf.h               |   3 -
 src/openvpn/mtcp.c               |   7 +-
 src/openvpn/mtu.h                |   6 --
 src/openvpn/mudp.c               |  45 +---------
 src/openvpn/mudp.h               |   7 +-
 src/openvpn/multi.c              |  95 +++++++++++---------
 src/openvpn/multi.h              |  20 +++--
 src/openvpn/openvpn.h            |  25 +++---
 src/openvpn/options.c            |  55 ++----------
 src/openvpn/options.h            |  49 ++++++-----
 src/openvpn/otime.c              |   4 -
 src/openvpn/pool.c               |   4 -
 src/openvpn/pool.h               |   3 -
 src/openvpn/push.c               |   3 -
 src/openvpn/push.h               |   3 -
 src/openvpn/pushlist.h           |   4 +-
 src/openvpn/route.h              |   2 -
 src/openvpn/shaper.c             |   5 +-
 src/openvpn/shaper.h             |   4 -
 src/openvpn/socket.c             | 145 ++++++++++---------------------
 src/openvpn/socket.h             |  90 +++++++++----------
 src/openvpn/ssl.h                |  11 ---
 src/openvpn/ssl_common.h         |   4 -
 src/openvpn/syshead.h            |  32 -------
 src/openvpn/tun.h                |  13 ---
 37 files changed, 234 insertions(+), 597 deletions(-)
Signature · 1 line
2.30.1