<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Garbage output"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1060">1060</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Garbage output
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libnetfilter_log
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libnetfilter_log
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>roa@eurotux.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>libnetfilter_log produces lots of garbage to stdout, making programs that use
its functions do that too.

How to reproduce:

# iptables -I INPUT -j NFLOG --nflog-group 16
# iptables -I FORWARD -j NFLOG --nflog-group 16
# iptables -I OUTPUT -j NFLOG --nflog-group 16

# /usr/bin/fprobe-ulog 127.0.0.1:8818/127.0.0.1 -n7 -U32768 -l2
[INFO]: Starting 1.2...
[INFO]: pid: 26971
[INFO]: options: u=32768 s=5 g=30 d=60 e=300 n=7 a=0.0.0.0 M=0 b=10000 m=0
q=100 B=0 r=0 t=0:0 c= u= v=6 l=2
[INFO]: collector #1: 127.0.0.1:8818/127.0.0.1/m
first
next
next
next
next
next
next
next
next
next
first
next
next
next
first
next
next
next
first
next
next
next
^C

After a while, it's a complete log clutter and waste of resources.

The problem is present in the latest git version, but seems to have been there
for a while:

$ grep -n 'printf.*\(first\|next\)' src/*
src/libipulog_compat.c:136:        printf("first\n");
src/libipulog_compat.c:139:next_msg:    printf("next\n");

Those printfs seem to have been forgotten when debugging, I'd say.

Sure it's possible to workaround (redirecting the output somewhere in the
middle?) but the methods aren't exactly desirable so I'd recommend fixing this.

Best regards.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>