vl.values = values;
vl.values_len = 1;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "tcpconns", sizeof (vl.plugin));
sstrncpy (vl.type, "tcp_connections", sizeof (vl.type));
&& ((inp->inp_vflag & INP_IPV6) == 0))
continue;
- conn_handle_ports (inp->inp_lport, inp->inp_fport, tp->t_state);
+ conn_handle_ports (ntohs (inp->inp_lport), ntohs (inp->inp_fport),
+ tp->t_state);
} /* for (in_ptr) */
in_orig = NULL;