From: "its_Giaan (Code Review)" Date: Thu, 6 Mar 2025 08:53:53 +0000 In-Reply-To: References: Reply-To: gianmarco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Cgswx55GHsw="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Rename occurences of 'struct link_socket' from 'ls' to 'sock' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , cron2 , flichtenheld Cc: openvpn-devel --Cgswx55GHsw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, its_Giaan, plaisthos. Hello cron2, flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/874?usp=3Demail to look at the new patch set (#7). The change is no longer submittable: checks~ChecksSubmitRule is unsatisfied= now. Change subject: Rename occurences of 'struct link_socket' from 'ls' to 'soc= k' ...................................................................... Rename occurences of 'struct link_socket' from 'ls' to 'sock' This commit renames all instances of 'struct link_socket' from the abbreviation 'ls' to the more descriptive 'sock' making it clearer that the variables represent socket-related structures. No functional changes have been introduced. Change-Id: Iff12c4dbac84a814612aa8b5b89224be08bb9058 Signed-off-by: Gianmarco De Gregori --- M src/openvpn/init.c M src/openvpn/init.h M src/openvpn/mtcp.c M src/openvpn/mtcp.h M src/openvpn/mudp.c M src/openvpn/mudp.h M src/openvpn/multi.c M src/openvpn/multi.h 8 files changed, 33 insertions(+), 33 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/74/874/7 diff --git a/src/openvpn/init.c b/src/openvpn/init.c index c21474a..1be205b 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -4946,12 +4946,12 @@ void inherit_context_child(struct context *dest, const struct context *src, - struct link_socket *ls) + struct link_socket *sock) { CLEAR(*dest); /* proto_is_dgram will ASSERT(0) if proto is invalid */ - dest->mode =3D proto_is_dgram(ls->info.proto) ? CM_CHILD_UDP : CM_CHIL= D_TCP; + dest->mode =3D proto_is_dgram(sock->info.proto) ? CM_CHILD_UDP : CM_CH= ILD_TCP; dest->gc =3D gc_new(); @@ -4977,7 +4977,7 @@ /* options */ dest->options =3D src->options; - dest->options.ce.proto =3D ls->info.proto; + dest->options.ce.proto =3D sock->info.proto; options_detach(&dest->options); dest->c2.event_set =3D src->c2.event_set; @@ -4988,7 +4988,7 @@ * The CM_TOP context does the socket listen(), * and the CM_CHILD_TCP context does the accept(). */ - dest->c2.accept_from =3D ls; + dest->c2.accept_from =3D sock; } #ifdef ENABLE_PLUGIN @@ -5015,11 +5015,11 @@ ALLOC_ARRAY_GC(dest->c2.link_sockets, struct link_socket *, 1, &de= st->gc); /* inherit parent link_socket and tuntap */ - dest->c2.link_sockets[0] =3D ls; + dest->c2.link_sockets[0] =3D sock; ALLOC_ARRAY_GC(dest->c2.link_socket_infos, struct link_socket_info= *, 1, &dest->gc); ALLOC_OBJ_GC(dest->c2.link_socket_infos[0], struct link_socket_inf= o, &dest->gc); - *dest->c2.link_socket_infos[0] =3D ls->info; + *dest->c2.link_socket_infos[0] =3D sock->info; /* locally override some link_socket_info fields */ dest->c2.link_socket_infos[0]->lsa =3D &dest->c1.link_socket_addrs= [0]; diff --git a/src/openvpn/init.h b/src/openvpn/init.h index 11c32ac..50b38e3 100644 --- a/src/openvpn/init.h +++ b/src/openvpn/init.h @@ -96,7 +96,7 @@ void inherit_context_child(struct context *dest, const struct context *src, - struct link_socket *ls); + struct link_socket *sock); void inherit_context_top(struct context *dest, const struct context *src); diff --git a/src/openvpn/mtcp.c b/src/openvpn/mtcp.c index 0d409b6..1d62ea6 100644 --- a/src/openvpn/mtcp.c +++ b/src/openvpn/mtcp.c @@ -47,16 +47,16 @@ }; struct multi_instance * -multi_create_instance_tcp(struct multi_context *m, struct link_socket *ls) +multi_create_instance_tcp(struct multi_context *m, struct link_socket *soc= k) { struct gc_arena gc =3D gc_new(); struct multi_instance *mi =3D NULL; struct hash *hash =3D m->hash; - mi =3D multi_create_instance(m, NULL, ls); + mi =3D multi_create_instance(m, NULL, sock); if (mi) { - mi->real.proto =3D ls->info.proto; + mi->real.proto =3D sock->info.proto; struct hash_element *he; const uint32_t hv =3D hash_value(hash, &mi->real); struct hash_bucket *bucket =3D hash_bucket(hash, hv); @@ -140,10 +140,10 @@ void multi_tcp_dereference_instance(struct multi_io *multi_io, struct multi_ins= tance *mi) { - struct link_socket *ls =3D mi->context.c2.link_sockets[0]; - if (ls && mi->socket_set_called) + struct link_socket *sock =3D mi->context.c2.link_sockets[0]; + if (sock && mi->socket_set_called) { - event_del(multi_io->es, socket_event_handle(ls)); + event_del(multi_io->es, socket_event_handle(sock)); mi->socket_set_called =3D false; } multi_io->n_esr =3D 0; diff --git a/src/openvpn/mtcp.h b/src/openvpn/mtcp.h index 9de5203..7f95529 100644 --- a/src/openvpn/mtcp.h +++ b/src/openvpn/mtcp.h @@ -44,7 +44,7 @@ =20 bool multi_tcp_process_outgoing_link_ready(struct multi_context *m, struct= multi_instance *mi, const unsigned int mpp_flags); -struct multi_instance *multi_create_instance_tcp(struct multi_context *m, = struct link_socket *ls); +struct multi_instance *multi_create_instance_tcp(struct multi_context *m, = struct link_socket *sock); void multi_tcp_link_out_deferred(struct multi_context *m, struct multi_ins= tance *mi); diff --git a/src/openvpn/mudp.c b/src/openvpn/mudp.c index c0344b1..54dfc72 100644 --- a/src/openvpn/mudp.c +++ b/src/openvpn/mudp.c @@ -188,14 +188,14 @@ struct multi_instance * multi_get_create_instance_udp(struct multi_context *m, bool *floated, - struct link_socket *ls) + struct link_socket *sock) { struct gc_arena gc =3D gc_new(); struct mroute_addr real =3D {0}; struct multi_instance *mi =3D NULL; struct hash *hash =3D m->hash; - real.proto =3D ls->info.proto; - m->hmac_reply_ls =3D ls; + real.proto =3D sock->info.proto; + m->hmac_reply_ls =3D sock; if (mroute_extract_openvpn_sockaddr(&real, &m->top.c2.from.dest, true) && m->top.c2.buf.len > 0) @@ -261,7 +261,7 @@ * connect-freq but not against connect-freq-initial */ reflect_filter_rate_limit_decrease(m->initial_rate_lim= iter); - mi =3D multi_create_instance(m, &real, ls); + mi =3D multi_create_instance(m, &real, sock); if (mi) { hash_add_fast(hash, bucket, &mi->real, hv, mi); diff --git a/src/openvpn/mudp.h b/src/openvpn/mudp.h index 357b684..37752e1 100644 --- a/src/openvpn/mudp.h +++ b/src/openvpn/mudp.h @@ -33,7 +33,7 @@ unsigned int p2mp_iow_flags(const struct multi_context *m); -void multi_process_io_udp(struct multi_context *m, struct link_socket *ls); +void multi_process_io_udp(struct multi_context *m, struct link_socket *soc= k); /*************************************************************************= */ /** * Get, and if necessary create, the multi_instance associated with a @@ -47,13 +47,13 @@ * successful, returns the newly created instance. * * @param m - The single multi_context structure. - * @param ls - Listening socket where this instance is connecting= to + * @param sock - Listening socket where this instance is connecting= to * * @return A pointer to a multi_instance if one already existed for the * packet's source address or if one was a newly created successfully. * NULL if one did not yet exist and a new one was not created. */ struct multi_instance *multi_get_create_instance_udp(struct multi_context = *m, bool *floated, - struct link_socket *l= s); + struct link_socket *s= ock); #endif /* ifndef MUDP_H */ diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index 07258be..85a1712 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -751,7 +751,7 @@ */ struct multi_instance * multi_create_instance(struct multi_context *m, const struct mroute_addr *r= eal, - struct link_socket *ls) + struct link_socket *sock) { struct gc_arena gc =3D gc_new(); struct multi_instance *mi; @@ -774,7 +774,7 @@ generate_prefix(mi); } - inherit_context_child(&mi->context, &m->top, ls); + inherit_context_child(&mi->context, &m->top, sock); if (IS_SIG(&mi->context)) { goto err; @@ -3139,7 +3139,7 @@ void multi_process_float(struct multi_context *m, struct multi_instance *mi, - struct link_socket *ls) + struct link_socket *sock) { struct mroute_addr real =3D {0}; struct hash *hash =3D m->hash; @@ -3195,7 +3195,7 @@ mi->context.c2.to_link_addr =3D &mi->context.c2.from; /* inherit parent link_socket and link_socket_info */ - mi->context.c2.link_sockets[0] =3D ls; + mi->context.c2.link_sockets[0] =3D sock; mi->context.c2.link_socket_infos[0]->lsa->actual =3D m->top.c2.from; tls_update_remote_addr(mi->context.c2.tls_multi, &mi->context.c2.from); @@ -3346,7 +3346,7 @@ */ bool multi_process_incoming_link(struct multi_context *m, struct multi_instance= *instance, - const unsigned int mpp_flags, struct link_sock= et *ls) + const unsigned int mpp_flags, struct link_sock= et *sock) { struct gc_arena gc =3D gc_new(); @@ -3367,7 +3367,7 @@ #ifdef MULTI_DEBUG_EVENT_LOOP printf("TCP/UDP -> TUN [%d]\n", BLEN(&m->top.c2.buf)); #endif - multi_set_pending(m, multi_get_create_instance_udp(m, &floated, ls= )); + multi_set_pending(m, multi_get_create_instance_udp(m, &floated, so= ck)); } else { @@ -3401,14 +3401,14 @@ /* decrypt in instance context */ perf_push(PERF_PROC_IN_LINK); - lsi =3D &ls->info; + lsi =3D &sock->info; orig_buf =3D c->c2.buf.data; if (process_incoming_link_part1(c, lsi, floated)) { /* nonzero length means that we have a valid, decrypted pa= cked */ if (floated && c->c2.buf.len > 0) { - multi_process_float(m, m->pending, ls); + multi_process_float(m, m->pending, sock); } process_incoming_link_part2(c, lsi, orig_buf); diff --git a/src/openvpn/multi.h b/src/openvpn/multi.h index 4104706..e14ad60 100644 --- a/src/openvpn/multi.h +++ b/src/openvpn/multi.h @@ -272,7 +272,7 @@ void multi_top_free(struct multi_context *m); struct multi_instance *multi_create_instance(struct multi_context *m, cons= t struct mroute_addr *real, - struct link_socket *ls); + struct link_socket *sock); void multi_close_instance(struct multi_context *m, struct multi_instance *= mi, bool shutdown); @@ -287,7 +287,7 @@ * updates hashtables in multi_context. */ void multi_process_float(struct multi_context *m, struct multi_instance *m= i, - struct link_socket *ls); + struct link_socket *sock); #define MPP_PRE_SELECT (1<<0) #define MPP_CONDITIONAL_PRE_SELECT (1<<1) @@ -352,10 +352,10 @@ * when using TCP transport. Otherwise NULL, as is * the case when using UDP transport. * @param mpp_flags - Fast I/O optimization flags. - * @param ls - Socket where the packet was received. + * @param sock - Socket where the packet was received. */ bool multi_process_incoming_link(struct multi_context *m, struct multi_ins= tance *instance, const unsigned int mpp_flags, - struct link_socket *ls); + struct link_socket *sock); /** -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/874?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Iff12c4dbac84a814612aa8b5b89224be08bb9058 Gerrit-Change-Number: 874 Gerrit-PatchSet: 7 Gerrit-Owner: its_Giaan Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: its_Giaan Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --Cgswx55GHsw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, its_Giaan, plaistho= s.

its_Giaan uploaded patch set #7 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/874?usp=3Demail">View Chang= e

The change is no longer submittable: checks~ChecksSubmitRule is= unsatisfied now.

Rename occurences of 'struct link_socket' from &#=
39;ls' to 'sock'

This commit renames all instances of &#= 39;struct link_socket'
from the abbreviation 'ls' to the mor= e descriptive 'sock'
making it clearer that the variables repres= ent
socket-related structures.

No functional changes have been in= troduced.

Change-Id: Iff12c4dbac84a814612aa8b5b89224be08bb9058
Si= gned-off-by: Gianmarco De Gregori <gianmarco@...2726...>
---
M = src/openvpn/init.c
M src/openvpn/init.h
M src/openvpn/mtcp.c
M src= /openvpn/mtcp.h
M src/openvpn/mudp.c
M src/openvpn/mudp.h
M src/op= envpn/multi.c
M src/openvpn/multi.h
8 files changed, 33 insertions(+)= , 33 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn=
 refs/changes/74/874/7
diff --git a/src/openvpn/init.c b/src/openvp=
n/init.c
index c21474a..1be205b 100644
--- = a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -4946,12 +4946,12 @@
void
inherit_c= ontext_child(struct context *dest,
c= onst struct context *src,
- struct link_socket *ls)
+ struct link_socket *soc= k)
{
CLEAR(*dest);
<= /span>
/* proto_is_dgram will ASSERT(0) if proto is invalid *= /
- dest->mode = =3D proto_is_dgram(ls->info.proto) ? CM_CHILD_UDP : CM_CHILD_TCP;=
+ dest->mode =3D prot= o_is_dgram(sock->info.proto) ? CM_CHILD_UDP : CM_CHILD_TCP;

dest->gc =3D gc_new();

@@ -4977,7 +4977,7 @@

/*= options */
dest->options =3D src->options;
- dest->options.ce.pr= oto =3D ls->info.proto;
+ dest->options.ce.proto =3D sock->info.proto;
options_detach(&dest->options);


= dest->c2.event_set =3D src->c2.event_set;
= @@ -4988,7 +4988,7 @@
* The CM_TOP context does t= he socket listen(),
* and the CM_CHILD_TCP contex= t does the accept().
*/
- dest->c2.accept_from =3D ls;<= br>+ dest->c2.accept_= from =3D sock;
}

#i= fdef ENABLE_PLUGIN
@@ -5015,11 +5015,11 @@
= ALLOC_ARRAY_GC(dest->c2.link_sockets, struct link_socket *, 1, = &dest->gc);

/* inherit pa= rent link_socket and tuntap */
- dest->c2.link_sockets[0] =3D ls;
+ dest->c2.link_sockets[0] =3D s= ock;

ALLOC_ARRAY_GC(dest->c2.= link_socket_infos, struct link_socket_info *, 1, &dest->gc);<= br> ALLOC_OBJ_GC(dest->c2.link_socket_infos[0], struct lin= k_socket_info, &dest->gc);
- *dest->c2.link_socket_infos[0] =3D ls->info;
+ *dest->c2.lin= k_socket_infos[0] =3D sock->info;

= /* locally override some link_socket_info fields */
= dest->c2.link_socket_infos[0]->lsa =3D &dest->c1.link_s= ocket_addrs[0];
diff --git a/src/openvpn/init.h b/src/openv= pn/init.h
index 11c32ac..50b38e3 100644
---= a/src/openvpn/init.h
+++ b/src/openvpn/init.h
@@ -96,7 +96,7 @@


void inherit_conte= xt_child(struct context *dest,
= const struct context *src,
- struct link_socket *ls);
+ struct link= _socket *sock);

void inherit_context_top= (struct context *dest,
const stru= ct context *src);
diff --git a/src/openvpn/mtcp.c b/src/ope= nvpn/mtcp.c
index 0d409b6..1d62ea6 100644
-= -- a/src/openvpn/mtcp.c
+++ b/src/openvpn/mtcp.c
= @@ -47,16 +47,16 @@
};

<= span> struct multi_instance *

-multi_create_instance_tcp(struct multi_context *m, struct link_sock= et *ls)
+multi_create= _instance_tcp(struct multi_context *m, struct link_socket *sock)
= {
struct gc_arena gc =3D gc_new();
struct multi_instance *mi =3D NULL;
struct ha= sh *hash =3D m->hash;

- mi =3D multi_create_instance(m, NULL, ls);<= br>+ mi =3D multi_create_ins= tance(m, NULL, sock);
if (mi)
{
- mi->real.pro= to =3D ls->info.proto;
+ mi->real.proto =3D sock->info.proto;
= struct hash_element *he;
const uint32_t hv = =3D hash_value(hash, &mi->real);
struct has= h_bucket *bucket =3D hash_bucket(hash, hv);
@@ -140,10 +140= ,10 @@
void
multi_tcp_dereference_instanc= e(struct multi_io *multi_io, struct multi_instance *mi)
{<= /span>
- struct link_socket= *ls =3D mi->context.c2.link_sockets[0];
- if (ls && mi->socket_set_called)
+ struct link_socket *s= ock =3D mi->context.c2.link_sockets[0];
+ if (sock && mi->socket_set_called)

{
- = event_del(multi_io->es, socket_event_handle(ls));
+ event_del(multi_io->es, = socket_event_handle(sock));
mi->socket_set_call= ed =3D false;
}
multi_io->n_es= r =3D 0;
diff --git a/src/openvpn/mtcp.h b/src/openvpn/mtcp= .h
index 9de5203..7f95529 100644
--- a/src/= openvpn/mtcp.h
+++ b/src/openvpn/mtcp.h
@@ = -44,7 +44,7 @@

bool multi_tcp_process_ou= tgoing_link_ready(struct multi_context *m, struct multi_instance *mi, const= unsigned int mpp_flags);

-struct multi_instance *multi_create_instance_tcp(stru= ct multi_context *m, struct link_socket *ls);
+struct multi_instance *multi_create_instance_tcp(= struct multi_context *m, struct link_socket *sock);

void multi_tcp_link_out_deferred(struct multi_context *m, struc= t multi_instance *mi);

diff --git a/src/o= penvpn/mudp.c b/src/openvpn/mudp.c
index c0344b1..54dfc72 1= 00644
--- a/src/openvpn/mudp.c
+++ b/src/op= envpn/mudp.c
@@ -188,14 +188,14 @@
=
struct multi_instance *
multi_get_create_instan= ce_udp(struct multi_context *m, bool *floated,
- struct link_socket *= ls)
+ = struct link_socket *sock)
{
= struct gc_arena gc =3D gc_new();
struct mroute_ad= dr real =3D {0};
struct multi_instance *mi =3D NULL;
struct hash *hash =3D m->hash;
- real.proto =3D ls->info.proto;
- m->hmac_reply_ls =3D= ls;
+ real.proto = =3D sock->info.proto;
+ m->hmac_reply_ls =3D sock;

= if (mroute_extract_openvpn_sockaddr(&real, &m->top.c2.from.de= st, true)
&& m->top.c2.buf.len > 0)<= /span>
@@ -261,7 +261,7 @@
*= connect-freq but not against connect-freq-initial */
= reflect_filter_rate_limit_decrease(m->initial_rate_limit= er);

= - mi =3D multi_create_instance(m, &real, ls);=
+ mi =3D= multi_create_instance(m, &real, sock);
= if (mi)
{
= hash_add_fast(hash, bucket, &mi->real, hv, mi);
diff --git a/src/openvpn/mudp.h b/src/openvpn/mudp.h<= br>index 357b684..37752e1 100644
--- a/src/openvpn/mu= dp.h
+++ b/src/openvpn/mudp.h
@@ -33,7 +33,= 7 @@

unsigned int p2mp_iow_flags(const s= truct multi_context *m);

-void multi_process_io_udp(struct multi_context *m, str= uct link_socket *ls);
+void multi_process_io_udp(struct multi_context *m, struct link_socket *so= ck);
/****************************************************= **********************/
/**
* Get, and i= f necessary create, the multi_instance associated with a
@@= -47,13 +47,13 @@
* successful, returns the newly created= instance.
*
* @param m - The= single multi_context structure.
- * @param ls - Listening socket where this instance is = connecting to
+ * @pa= ram sock - Listening socket where this instance is connecting to

*
* @return A pointer to a multi_instance = if one already existed for the
* packet's source = address or if one was a newly created successfully.
* = NULL if one did not yet exist and a new one was not created.
*/
struct multi_instance *multi_get_create_instance_= udp(struct multi_context *m, bool *floated,
- = struct link_socket *ls);
+ struct link_socke= t *sock);

#endif /* ifndef MUDP_H */
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c<= br>index 07258be..85a1712 100644
--- a/src/openvpn/mu= lti.c
+++ b/src/openvpn/multi.c
@@ -751,7 += 751,7 @@
*/
struct multi_instance *
multi_create_instance(struct multi_context *m, const struct mr= oute_addr *real,
- = struct link_socket *ls)
+ struct link_socket *sock)=
{
struct gc_arena gc =3D gc_new(); struct multi_instance *mi;
@@ -774,7 +774,7 @@=
generate_prefix(mi);
}

- inher= it_context_child(&mi->context, &m->top, ls);
+ inherit_context_child(&mi-&g= t;context, &m->top, sock);
if (IS_SIG(&mi-&= gt;context))
{
goto err;
@@ -3139,7 +3139,7 @@

void
multi_process_float(struct multi_context *m, struct multi_i= nstance *mi,
- = struct link_socket *ls)
+ struct link_socket *sock)
{

struct mroute_addr real =3D {0};
= struct hash *hash =3D m->hash;
@@ -3195,7 +3195,7 @= @
mi->context.c2.to_link_addr =3D &mi->conte= xt.c2.from;

/* inherit parent link_s= ocket and link_socket_info */
- mi->context.c2.link_sockets[0] =3D ls;
+ mi->context.c2.link_sockets[0] =3D= sock;
mi->context.c2.link_socket_infos[0]->lsa-= >actual =3D m->top.c2.from;

tl= s_update_remote_addr(mi->context.c2.tls_multi, &mi->context.c2.fr= om);
@@ -3346,7 +3346,7 @@
*/
<= span> bool

multi_process_incoming_link(struct multi_contex= t *m, struct multi_instance *instance,
- const unsigned int mpp_flags, = struct link_socket *ls)
+ const unsigned int mpp_flags, struct link_s= ocket *sock)
{
struct gc_arena gc =3D= gc_new();

@@ -3367,7 +3367,7 @@ #ifdef MULTI_DEBUG_EVENT_LOOP
printf(&quo= t;TCP/UDP -> TUN [%d]\n", BLEN(&m->top.c2.buf));
<= span> #endif

- m= ulti_set_pending(m, multi_get_create_instance_udp(m, &floated, ls));

+ multi_set_pend= ing(m, multi_get_create_instance_udp(m, &floated, sock));
}
else
{
= @@ -3401,14 +3401,14 @@
/* decrypt in instance= context */

perf_push(PERF_P= ROC_IN_LINK);
- = lsi =3D &ls->info;
+ lsi =3D &sock->info;
= orig_buf =3D c->c2.buf.data;
if (proces= s_incoming_link_part1(c, lsi, floated))
{
/* nonzero length means that we have a valid, = decrypted packed */
if (floated &&= c->c2.buf.len > 0)
{
- multi_process_fl= oat(m, m->pending, ls);

+ multi_process_float(m, m->pending, sock);

}

= process_incoming_link_part2(c, lsi, orig_buf);
diff= --git a/src/openvpn/multi.h b/src/openvpn/multi.h
index 41= 04706..e14ad60 100644
--- a/src/openvpn/multi.h
<= span>+++ b/src/openvpn/multi.h
@@ -272,7 +272,7 @@ void multi_top_free(struct multi_context *m);

struct multi_instance *multi_create_instance(struct multi_co= ntext *m, const struct mroute_addr *real,
- struct lin= k_socket *ls);
+ = struct link_socket *sock);
void multi_close_instance(struct multi_context *= m, struct multi_instance *mi, bool shutdown);

<= span>@@ -287,7 +287,7 @@

* updates hashtables in multi_co= ntext.
*/
void multi_process_float(struc= t multi_context *m, struct multi_instance *mi,
- struct link_socket *ls);<= /span>
+ = struct link_socket *sock);

#define = MPP_PRE_SELECT (1<<0)
#define MPP_CONDIT= IONAL_PRE_SELECT (1<<1)
@@ -352,10 +352,10 @@<= br> * when using TCP transport. Otherwise NULL= , as is
* the case when using UDP t= ransport.
* @param mpp_flags - Fast I/O optimization f= lags.
- * @param ls = - Socket where the packet was received.
+ * @param sock - Socket where the packet= was received.
*/
bool multi_process_inc= oming_link(struct multi_context *m, struct multi_instance *instance, const = unsigned int mpp_flags,
- struct link_socket *ls);
+ st= ruct link_socket *sock);



/**

To view, visit change 874. To unsubsc= ribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iff12c4dbac84a814612aa8b5b89= 224be08bb9058
Gerrit-Change-Number: 874
Gerrit-PatchSet: 7
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: its_Giaan <gianmarco@...1665...= 726...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--Cgswx55GHsw=--