<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 - nfq_get_timestamp() not setting timeval struc"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1066">1066</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>nfq_get_timestamp() not setting timeval struc
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libnetfilter_queue
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Ubuntu
          </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_queue
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>emacsuser123@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi.

I'm developing an application that makes use of NFQUEUE functionality.

When using Ubuntu with recent kernels (4.4 and onwards), I'm having trouble
trying to get the packet timestamp by means of nfq_get_timestamp.
It seems that it does nothing with the timeval struct passed as an input
parameter. So, I always get 0 on both tv_sec and tv_usec fields.

If I use older kernels (3.3, for instance), I have no problem at all. The
timeval struct is filled in successfully and I get the proper timestamp from
the kernel.

I have also tried to set the queue socket options to SO_TIMESTAMP explicitly,
just in case. The call to setsockopt goes smoothly, but it seems that
nfq_get_timestamp is not taking that into account.

I'm not sure what else could be done here, to be honest.

Any ideas?

Thanks a lot.
-Bob</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>