d_log_interface(gstring * g)
{
if (LOGGING(incoming_interface) && LOGGING(outgoing_interface)
    && sending_ip_address)
  {
  g = string_append(g, 2, US" I=[", sending_ip_address);
  g = LOGGING(outgoing_port)
    ? string_append(g, 2, US"]:", string_sprintf("%d", sending_port))
    : string_catn(g, US"]", 1);
  }
return g;
}
d_log_interface(gstring * g)
{
if (LOGGING(incoming_interface) && LOGGING(outgoing_interface)
    && sending_ip_address)
  {
  g = string_append(g, 2, US" I=[", sending_ip_address);
  g = LOGGING(outgoing_port)
    ? string_append(g, 2, US"]:", string_sprintf("%d", sending_port))
    : string_catn(g, US"]", 1);
  }
return g;
}