From: "flichtenheld (Code Review)"
Date: Tue, 7 Oct 2025 12:14:02 +0000
In-Reply-To:
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, antonio@...2726...
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="p0OXvwk74nM="; charset=UTF-8
Subject: [Openvpn-devel] [M] Change in openvpn[master]: sitnl: Clean up type
handling
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: plaisthos
Cc: openvpn-devel
--p0OXvwk74nM=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: ordex, plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1251?usp=3Demail
to look at the new patch set (#5).
Change subject: sitnl: Clean up type handling
......................................................................
sitnl: Clean up type handling
- Make some type casts explicit. Due to the types used
in our networking API and the netlink APIs respectively
this can't be avoided.
- In many cases just use correct types from the start, e.g.
where we use constants anyway.
Change-Id: I20205ebd06bbf7cbee8c9be93f399961f5b74fcc
Signed-off-by: Frank Lichtenheld
---
M src/openvpn/networking_sitnl.c
1 file changed, 46 insertions(+), 49 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/51/1251/5
diff --git a/src/openvpn/networking_sitnl.c b/src/openvpn/networking_sitnl.c
index 1815faf..b3adb16 100644
--- a/src/openvpn/networking_sitnl.c
+++ b/src/openvpn/networking_sitnl.c
@@ -59,9 +59,9 @@
_nest; \
})
-#define SITNL_NEST_END(_msg, _nest) \
- { \
- _nest->rta_len =3D (void *)sitnl_nlmsg_tail(_msg) - (void *)_nest;=
\
+#define SITNL_NEST_END(_msg, _nest) =
\
+ { =
\
+ _nest->rta_len =3D (unsigned short)((void *)sitnl_nlmsg_tail(_msg)=
- (void *)_nest); \
}
/* This function was originally implemented as a macro, but compiling with
@@ -131,29 +131,24 @@
inet_address_t gw;
};
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"
-#endif
-
/**
* Helper function used to easily add attributes to a rtnl message
*/
static int
-sitnl_addattr(struct nlmsghdr *n, int maxlen, int type, const void *data, =
int alen)
+sitnl_addattr(struct nlmsghdr *n, size_t maxlen, unsigned short type, cons=
t void *data, size_t alen)
{
- int len =3D RTA_LENGTH(alen);
- struct rtattr *rta;
+ size_t len =3D RTA_LENGTH(alen);
- if ((int)(NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len)) > maxlen)
+ if ((NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len)) > maxlen)
{
- msg(M_WARN, "%s: rtnl: message exceeded bound of %d", __func__, ma=
xlen);
+ msg(M_WARN, "%s: rtnl: message exceeded bound of %zu", __func__, m=
axlen);
return -EMSGSIZE;
}
- rta =3D sitnl_nlmsg_tail(n);
+ struct rtattr *rta =3D sitnl_nlmsg_tail(n);
rta->rta_type =3D type;
- rta->rta_len =3D len;
+ ASSERT(len <=3D USHRT_MAX);
+ rta->rta_len =3D (unsigned short)len;
if (!data)
{
@@ -252,11 +247,10 @@
sitnl_send(struct nlmsghdr *payload, pid_t peer, unsigned int groups, sitn=
l_parse_reply_cb cb,
void *arg_cb)
{
- int len, rem_len, fd, ret, rcv_len;
+ int fd, ret;
struct sockaddr_nl nladdr;
struct nlmsgerr *err;
struct nlmsghdr *h;
- unsigned int seq;
char buf[1024 * 16];
struct iovec iov =3D {
.iov_base =3D payload,
@@ -275,7 +269,11 @@
nladdr.nl_pid =3D peer;
nladdr.nl_groups =3D groups;
- payload->nlmsg_seq =3D seq =3D time(NULL);
+ /* NB: We currently do not verify seq and pid on answers.
+ * If we ever want to start with that we probably need to come up
+ * with something better than "seconds since epoch"...
+ */
+ payload->nlmsg_seq =3D (uint32_t)time(NULL);
/* no need to send reply */
if (!cb)
@@ -290,16 +288,14 @@
return -errno;
}
- ret =3D sitnl_bind(fd, 0);
- if (ret < 0)
+ if (sitnl_bind(fd, 0) < 0)
{
msg(M_WARN | M_ERRNO, "%s: can't bind rtnl socket", __func__);
ret =3D -errno;
goto out;
}
- ret =3D sendmsg(fd, &nlmsg, 0);
- if (ret < 0)
+ if (sendmsg(fd, &nlmsg, 0) < 0)
{
msg(M_WARN | M_ERRNO, "%s: rtnl: error on sendmsg()", __func__);
ret =3D -errno;
@@ -318,8 +314,8 @@
*/
msg(D_RTNL, "%s: checking for received messages", __func__);
iov.iov_len =3D sizeof(buf);
- rcv_len =3D recvmsg(fd, &nlmsg, 0);
- msg(D_RTNL, "%s: rtnl: received %d bytes", __func__, rcv_len);
+ ssize_t rcv_len =3D recvmsg(fd, &nlmsg, 0);
+ msg(D_RTNL, "%s: rtnl: received %zd bytes", __func__, rcv_len);
if (rcv_len < 0)
{
if ((errno =3D=3D EINTR) || (errno =3D=3D EAGAIN))
@@ -350,8 +346,8 @@
h =3D (struct nlmsghdr *)buf;
while (rcv_len >=3D (int)sizeof(*h))
{
- len =3D h->nlmsg_len;
- rem_len =3D len - sizeof(*h);
+ uint32_t len =3D h->nlmsg_len;
+ ssize_t rem_len =3D len - sizeof(*h);
if ((rem_len < 0) || (len > rcv_len))
{
@@ -361,7 +357,7 @@
ret =3D -EIO;
goto out;
}
- msg(M_WARN, "%s: malformed message: len=3D%d", __func__, l=
en);
+ msg(M_WARN, "%s: malformed message: len=3D%u", __func__, l=
en);
ret =3D -EIO;
goto out;
}
@@ -388,7 +384,7 @@
if (h->nlmsg_type =3D=3D NLMSG_ERROR)
{
err =3D (struct nlmsgerr *)NLMSG_DATA(h);
- if (rem_len < (int)sizeof(struct nlmsgerr))
+ if (rem_len < sizeof(struct nlmsgerr))
{
msg(M_WARN, "%s: ERROR truncated", __func__);
ret =3D -EIO;
@@ -443,7 +439,7 @@
if (rcv_len)
{
- msg(M_WARN, "%s: rtnl: %d not parsed bytes", __func__, rcv_len=
);
+ msg(M_WARN, "%s: rtnl: %zd not parsed bytes", __func__, rcv_le=
n);
ret =3D -1;
goto out;
}
@@ -456,7 +452,7 @@
typedef struct
{
- int addr_size;
+ size_t addr_size;
inet_address_t gw;
char iface[IFNAMSIZ];
bool default_only;
@@ -469,7 +465,7 @@
route_res_t *res =3D arg;
struct rtmsg *r =3D NLMSG_DATA(n);
struct rtattr *rta =3D RTM_RTA(r);
- int len =3D n->nlmsg_len - NLMSG_LENGTH(sizeof(*r));
+ size_t len =3D n->nlmsg_len - NLMSG_LENGTH(sizeof(*r));
unsigned int table, ifindex =3D 0;
void *gw =3D NULL;
@@ -547,7 +543,8 @@
req.n.nlmsg_type =3D RTM_GETROUTE;
req.n.nlmsg_flags =3D NLM_F_REQUEST;
- req.r.rtm_family =3D af_family;
+ ASSERT(af_family <=3D UCHAR_MAX);
+ req.r.rtm_family =3D (unsigned char)af_family;
switch (af_family)
{
@@ -761,7 +758,7 @@
}
static int
-sitnl_addr_set(int cmd, uint32_t flags, int ifindex, sa_family_t af_family,
+sitnl_addr_set(uint16_t cmd, uint16_t flags, int ifindex, sa_family_t af_f=
amily,
const inet_address_t *local, const inet_address_t *remote, =
int prefixlen)
{
struct sitnl_addr_req req;
@@ -775,7 +772,8 @@
req.n.nlmsg_flags =3D NLM_F_REQUEST | flags;
req.i.ifa_index =3D ifindex;
- req.i.ifa_family =3D af_family;
+ ASSERT(af_family <=3D UINT8_MAX);
+ req.i.ifa_family =3D (uint8_t)af_family;
switch (af_family)
{
@@ -797,7 +795,8 @@
{
prefixlen =3D size * 8;
}
- req.i.ifa_prefixlen =3D prefixlen;
+ ASSERT(prefixlen <=3D UINT8_MAX);
+ req.i.ifa_prefixlen =3D (uint8_t)prefixlen;
if (remote)
{
@@ -890,9 +889,9 @@
}
static int
-sitnl_route_set(int cmd, uint32_t flags, int ifindex, sa_family_t af_famil=
y, const void *dst,
+sitnl_route_set(uint16_t cmd, uint16_t flags, int ifindex, sa_family_t af_=
family, const void *dst,
int prefixlen, const void *gw, enum rt_class_t table, int =
metric,
- enum rt_scope_t scope, int protocol, int type)
+ enum rt_scope_t scope, unsigned char protocol, unsigned ch=
ar type)
{
struct sitnl_route_req req;
int ret =3D -1, size;
@@ -917,15 +916,17 @@
req.n.nlmsg_type =3D cmd;
req.n.nlmsg_flags =3D NLM_F_REQUEST | flags;
- req.r.rtm_family =3D af_family;
- req.r.rtm_scope =3D scope;
+ ASSERT(af_family <=3D UCHAR_MAX);
+ req.r.rtm_family =3D (unsigned char)af_family;
+ req.r.rtm_scope =3D (unsigned char)scope;
req.r.rtm_protocol =3D protocol;
req.r.rtm_type =3D type;
- req.r.rtm_dst_len =3D prefixlen;
+ ASSERT(prefixlen >=3D 0 && prefixlen <=3D UCHAR_MAX);
+ req.r.rtm_dst_len =3D (unsigned char)prefixlen;
- if (table < 256)
+ if (table <=3D UCHAR_MAX)
{
- req.r.rtm_table =3D table;
+ req.r.rtm_table =3D (unsigned char)table;
}
else
{
@@ -1348,7 +1349,7 @@
}
static int
-sitnl_parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta,=
int len,
+sitnl_parse_rtattr_flags(struct rtattr *tb[], size_t max, struct rtattr *r=
ta, size_t len,
unsigned short flags)
{
unsigned short type;
@@ -1369,14 +1370,14 @@
if (len)
{
- msg(D_ROUTE, "%s: %d bytes not parsed! (rta_len=3D%d)", __func__, =
len, rta->rta_len);
+ msg(D_ROUTE, "%s: %zu bytes not parsed! (rta_len=3D%u)", __func__,=
len, rta->rta_len);
}
return 0;
}
static int
-sitnl_parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int l=
en)
+sitnl_parse_rtattr(struct rtattr *tb[], size_t max, struct rtattr *rta, si=
ze_t len)
{
return sitnl_parse_rtattr_flags(tb, max, rta, len, 0);
}
@@ -1474,10 +1475,6 @@
return sitnl_send(&req.n, 0, 0, NULL, NULL);
}
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic pop
-#endif
-
#endif /* !ENABLE_SITNL */
#endif /* TARGET_LINUX */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1251?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings?usp=3Demail
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I20205ebd06bbf7cbee8c9be93f399961f5b74fcc
Gerrit-Change-Number: 1251
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-CC: ordex
Gerrit-Attention: plaisthos
Gerrit-Attention: ordex
--p0OXvwk74nM=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: ordex, plaisthos.
flichtenheld uploaded patch set #5 to this change.
<=
p>View C=
hange
sitnl: Clean up type handling
- Make some=
type casts explicit. Due to the types used
in our networking API and =
the netlink APIs respectively
this can't be avoided.
- In many =
cases just use correct types from the start, e.g.
where we use constan=
ts anyway.
Change-Id: I20205ebd06bbf7cbee8c9be93f399961f5b74fcc
S=
igned-off-by: Frank Lichtenheld <frank@...2641...>
---
M src/op=
envpn/networking_sitnl.c
1 file changed, 46 insertions(+), 49 deletions(=
-)
git pull ssh://gerrit.openvpn.net:29418/openv=
pn refs/changes/51/1251/5
diff --git a/src/openvpn/networking_sitnl=
.c b/src/openvpn/networking_sitnl.c
index 1815faf..b3adb16 =
100644
--- a/src/openvpn/networking_sitnl.c
+++ b/src/openvpn/networking_sitnl.c
@@ -59,9 +59,9 @@
_nest; \
})
-#define SITNL_NEST_END(_msg, _nest) =
\
- {=
\
- _nest->rta_len =
=3D (void *)sitnl_nlmsg_tail(_msg) - (void *)_nest; \
+#define SITNL_NEST_END(_msg, _nest) =
\
+ { =
\
+ _nest->rta_len =3D (unsigned s=
hort)((void *)sitnl_nlmsg_tail(_msg) - (void *)_nest); \
=
}
/* This function was originally imp=
lemented as a macro, but compiling with
@@ -131,29 +131,24 =
@@
inet_address_t gw;
};
-#if defined(__GN=
UC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"<=
br>-#endif
-
/**
* H=
elper function used to easily add attributes to a rtnl message
*/
static int
-sitnl_addattr(struct nlmsghdr *n, int maxlen, int type, cons=
t void *data, int alen)
+sitnl_addattr(struct nlmsghdr *n, size_t maxlen, unsigned short type, c=
onst void *data, size_t alen)
{
- int len =3D RTA_LENGTH(alen);
- struct rtattr *rta;
+ size_t len =3D RTA_LENGTH(al=
en);
=
- if ((int)(NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len)) > maxlen)<=
/span>
+ if ((NLMSG_ALIGN=
(n->nlmsg_len) + RTA_ALIGN(len)) > maxlen)
{
- msg(M_WARN, "=
;%s: rtnl: message exceeded bound of %d", __func__, maxlen);
+ msg(M_WARN, "%s:=
rtnl: message exceeded bound of %zu", __func__, maxlen);
return -EMSGSIZE;
}
- rta =3D sitnl_nlmsg_t=
ail(n);
+ struct r=
tattr *rta =3D sitnl_nlmsg_tail(n);
rta->rta_type =
=3D type;
- rta->=
rta_len =3D len;
+ =
ASSERT(len <=3D USHRT_MAX);
+ rta->rta_len =3D (unsigned short)len;
<=
/span>
if (!data)
{
@@ -=
252,11 +247,10 @@
sitnl_send(struct nlmsghdr *payload, pid=
_t peer, unsigned int groups, sitnl_parse_reply_cb cb,
=
void *arg_cb)
{
- int len, rem_len, fd, ret, rcv_len;
+ int fd, ret;
=
struct sockaddr_nl nladdr;
struct nlmsgerr *err;
struct nlmsghdr *h;
- unsigned int seq;
char buf[1024 * =
16];
struct iovec iov =3D {
.=
iov_base =3D payload,
@@ -275,7 +269,11 @@
=
nladdr.nl_pid =3D peer;
nladdr.nl_groups =3D grou=
ps;
-=
payload->nlmsg_seq =3D seq =3D time(NULL);
+ /* NB: We currently do not verify seq and=
pid on answers.
+ =
* If we ever want to start with that we probably need to come up+ * with something better=
than "seconds since epoch"...
+ */
+ payload->nlmsg_seq =3D (uint32_t)time(NULL);
/* no need to send reply */
i=
f (!cb)
@@ -290,16 +288,14 @@
retu=
rn -errno;
}
- ret =3D sitnl_bind(fd, 0);
- if (ret < 0)
+ if (sitnl_bind(fd, 0) < 0)<=
/span>
{
msg(M_WARN | M_ERRNO, "=
;%s: can't bind rtnl socket", __func__);
=
ret =3D -errno;
goto out;
}=
span>
- r=
et =3D sendmsg(fd, &nlmsg, 0);
- if (ret < 0)
+ if (sendmsg(fd, &nlmsg, 0) < 0)
=
{
msg(M_WARN | M_ERRNO, "%s: rtnl: error on=
sendmsg()", __func__);
ret =3D -errno;
@@ -318,8 +314,8 @@
*/
msg(D_RTNL, "%s: checking for received messages", __fun=
c__);
iov.iov_len =3D sizeof(buf);
- rcv_len =3D recvmsg(fd, &=
nlmsg, 0);
- msg=
(D_RTNL, "%s: rtnl: received %d bytes", __func__, rcv_len);
+ ssize_t rcv_len =
=3D recvmsg(fd, &nlmsg, 0);
+ msg(D_RTNL, "%s: rtnl: received %zd bytes", _=
_func__, rcv_len);
if (rcv_len < 0)
<=
span> {
if ((errno =3D=3D EINTR) || (e=
rrno =3D=3D EAGAIN))
@@ -350,8 +346,8 @@
=
h =3D (struct nlmsghdr *)buf;
while (rcv_le=
n >=3D (int)sizeof(*h))
{
- len =3D h->nlmsg_len;=
- rem_len =3D len =
- sizeof(*h);
+ =
uint32_t len =3D h->nlmsg_len;
+ ssize_t rem_len =3D len - sizeof(*h);
if ((rem_len < 0) || (len >=
rcv_len))
{
@@ -361,7 +357,7 =
@@
ret =3D -EIO;
=
goto out;
}
- msg(M_WARN, "%s=
: malformed message: len=3D%d", __func__, len);
+ msg(M_WARN, "%s: mal=
formed message: len=3D%u", __func__, len);
=
ret =3D -EIO;
goto out;
}
@@ -388,7 +384,7 @@
=
if (h->nlmsg_type =3D=3D NLMSG_ERROR)
=
{
err =3D (struct nlmsgerr *)NLMSG_DAT=
A(h);
- =
if (rem_len < (int)sizeof(struct nlmsgerr))
+ if (rem_len < sizeof(struct n=
lmsgerr))
{
=
msg(M_WARN, "%s: ERROR truncated", __func__);
ret =3D -EIO;
@@ -443,7 +439,7 @@<=
/span>
if (rcv_len)
=
{
- ms=
g(M_WARN, "%s: rtnl: %d not parsed bytes", __func__, rcv_len);
+ msg(M_WARN=
, "%s: rtnl: %zd not parsed bytes", __func__, rcv_len);
ret =3D -1;
goto out;
}
@@ -456,7 +452,7 @@
=
typedef struct
{
- int addr_size;
+ size_t addr_size;
i=
net_address_t gw;
char iface[IFNAMSIZ];
bool default_only;
@@ -469,7 +465,7 @@
route_res_t *res =3D arg;
struct rtmsg *r =3D =
NLMSG_DATA(n);
struct rtattr *rta =3D RTM_RTA(r);
- int len =3D n->nlms=
g_len - NLMSG_LENGTH(sizeof(*r));
+ size_t len =3D n->nlmsg_len - NLMSG_LENGTH(sizeof(*r))=
;
unsigned int table, ifindex =3D 0;
=
void *gw =3D NULL;
@@ -547,7 +543,8 @=
@
req.n.nlmsg_type =3D RTM_GETROUTE;
=
req.n.nlmsg_flags =3D NLM_F_REQUEST;
- req.r.rtm_family =3D af_family;
+ ASSERT(af_family &=
lt;=3D UCHAR_MAX);
+ =
req.r.rtm_family =3D (unsigned char)af_family;
<=
br> switch (af_family)
{
@@ =
-761,7 +758,7 @@
}
stat=
ic int
-sitnl_addr_set(=
int cmd, uint32_t flags, int ifindex, sa_family_t af_family,
+sitnl_addr_set(uint16_t cmd, uint1=
6_t flags, int ifindex, sa_family_t af_family,
=
const inet_address_t *local, const inet_address_t *remote, int prefixle=
n)
{
struct sitnl_addr_req req;
@@ -775,7 +772,8 @@
req.n.nlmsg_flags =3D N=
LM_F_REQUEST | flags;
req.i.ifa_inde=
x =3D ifindex;
- req=
.i.ifa_family =3D af_family;
+ ASSERT(af_family <=3D UINT8_MAX);
+ req.i.ifa_family =3D (uint8_t)af_family;<=
/span>
switch (af_family)
=
{
@@ -797,7 +795,8 @@
{
=
prefixlen =3D size * 8;
}
- req.i.ifa_prefixlen =3D prefixl=
en;
+ ASSERT(prefi=
xlen <=3D UINT8_MAX);
+ req.i.ifa_prefixlen =3D (uint8_t)prefixlen;
if (remote)
{
@@ -890=
,9 +889,9 @@
}
static i=
nt
-sitnl_route_set(int=
cmd, uint32_t flags, int ifindex, sa_family_t af_family, const void *dst,<=
/span>
+sitnl_route_set(uint=
16_t cmd, uint16_t flags, int ifindex, sa_family_t af_family, const void *d=
st,
int prefixlen, const void *gw, enum rt=
_class_t table, int metric,
- enum rt_scope_t scope, int protocol, int type)=
+ enum rt_sc=
ope_t scope, unsigned char protocol, unsigned char type)
{=
struct sitnl_route_req req;
int =
ret =3D -1, size;
@@ -917,15 +916,17 @@
=
req.n.nlmsg_type =3D cmd;
req.n.nlmsg_flags =3D NLM_=
F_REQUEST | flags;
- req.r.rtm_family =3D af_family;
- req.r.rtm_scope =3D scope;
+ ASSERT(af_family <=3D UCHAR_=
MAX);
+ req.r.rtm_=
family =3D (unsigned char)af_family;
+ req.r.rtm_scope =3D (unsigned char)scope;
req.r.rtm_protocol =3D protocol;
req.r.rtm_ty=
pe =3D type;
- req.r=
.rtm_dst_len =3D prefixlen;
+ ASSERT(prefixlen >=3D 0 && prefixlen <=3D UCHAR_M=
AX);
+ req.r.rtm_d=
st_len =3D (unsigned char)prefixlen;
- if (table < 256)
+ if (table <=3D UCHAR_MAX)
{
- =
req.r.rtm_table =3D table;
+ req.r.rtm_table =3D (unsigned char)table;
}
else
{
@=
@ -1348,7 +1349,7 @@
}
=
static int
-sitnl_parse=
_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta, int len,
+sitnl_parse_rtattr_fla=
gs(struct rtattr *tb[], size_t max, struct rtattr *rta, size_t len,<=
br> unsigned short flags)
{=
unsigned short type;
@@ -1369,14 +137=
0,14 @@
if (len)
=
{
- msg(D_ROUT=
E, "%s: %d bytes not parsed! (rta_len=3D%d)", __func__, len, rta-=
>rta_len);
+ =
msg(D_ROUTE, "%s: %zu bytes not parsed! (rta_len=3D%u)", __func=
__, len, rta->rta_len);
}
<=
br> return 0;
}
static int
-sitnl_pa=
rse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len)
+sitnl_parse_rtattr(struct=
rtattr *tb[], size_t max, struct rtattr *rta, size_t len)
=
{
return sitnl_parse_rtattr_flags(tb, max, rta, len, =
0);
}
@@ -1474,10 +1475,6 @@
return sitnl_send(&req.n, 0, 0, NULL, NULL);
}=
-#if=
defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic pop
-#endif
-
#endif /* !ENABLE_SITNL */
#endif /* TARGET_LINUX */
To view, visit change 1251. To unsubscribe, or for help writing mail filters=
, visit settings=
.
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I20205ebd06bbf7cbee8c9be93f3=
99961f5b74fcc
Gerrit-Change-Number: 1251
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <frank@...2723...=
.>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-CC: ordex <antonio@...2726...> =
div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: ordex <antonio@...2726...=
>
=
--p0OXvwk74nM=--