The ng_source module assumes that struct timevals contain 32-bit fields, which is not the case on amd64 machines. Fix: The fix for amd64 is simple, however the patch is not suitable because it should handle both 32-bit and 64-bit timeval lengths. I did not readily find the proper way to do this. Patch attached with submission follows: How-To-Repeat: kldload ng_ether ngctl mkpeer em0: source orphans output nghook em0:orphans input <raw-packet.cap ngctl msg em0:orphans start 16 ngctl msg em0:orphans getstats Note the stats show the various timevals precessing based upon word length.
Responsible Changed From-To: freebsd-bugs->freebsd-net Over to maintainer(s).
Hi! This is still the problem for 9.1-PRERELEASE: ng_source is unusable for 64bit systems. The patch really helps and fixes the problem for 64bit (and breaks for 32bit :-) Perhaps, it may be improved with some #ifdef's Eugene Grosbein
This is a more accuracy patch
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Fixed in all supported branches: 12.0-STABLE (r343021) and 11.2-STABLE (r343022).