#else
int metric;
#endif
- const char *device = tt->actual_name;
bool gateway_needed = false;
if ((r6->flags & (RT_DEFINED|RT_ADDED)) != (RT_DEFINED|RT_ADDED))
}
#ifndef _WIN32
+ const char *device = tt->actual_name;
if (r6->iface != NULL) /* vpn server special route */
{
device = r6->iface;
const DWORD index = row->dwForwardIfIndex;
const DWORD metric = row->dwForwardMetric1;
- dmsg(D_ROUTE_DEBUG, "GDGR: route[%d] %s/%s i=%d m=%d",
+ dmsg(D_ROUTE_DEBUG, "GDGR: route[%lu] %s/%s i=%d m=%d",
i,
print_in_addr_t((in_addr_t) net, 0, &gc),
print_in_addr_t((in_addr_t) mask, 0, &gc),
{
if (act)
{
- char ifname[IF_NAMESIZE] = "[undef]";
struct buffer out = alloc_buf_gc(128, gc);
buf_printf(&out, "%s", print_sockaddr_ex(&act->dest.addr.sa, separator, flags, gc));
#if ENABLE_IP_PKTINFO
+ char ifname[IF_NAMESIZE] = "[undef]";
+
if ((flags & PS_SHOW_PKTINFO) && addr_defined_ipi(act))
{
switch (act->dest.addr.sa.sa_family)
if (err != NO_ERROR)
{
- msg(M_WARN, "TUN: Setting %s mtu failed: %s [status=%u if_index=%d]",
+ msg(M_WARN, "TUN: Setting %s mtu failed: %s [status=%lu if_index=%d]",
family_name, strerror_win32(err, &gc), err, iface_index);
}
else