"source_ip" : "local_ip",
net_ip2addr(&conn->local_ip));
}
+ if (conn->local_port > 0) {
+ event_add_int(conn->event, conn->list->set.client ?
+ "source_port" : "local_port",
+ conn->local_port);
+ }
if (conn->remote_ip.family > 0) {
event_add_str(conn->event, conn->list->set.client ?
/* Local and remote IP for TCP connections. */
struct ip_addr local_ip, remote_ip;
- /* Remote port for TCP connections. */
- in_port_t remote_port;
+ /* Local and remote port for TCP connections. */
+ in_port_t local_port, remote_port;
/* Remote pid, UNIX socket only. */
pid_t remote_pid;
/* Remote user id, UNIX socket only. */