Commit Graph

9 Commits

Author SHA1 Message Date
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
pooka 7bc641dd16 aaaand actually make the logic clause correct 2011-03-14 11:13:22 +00:00
pooka db454f263c make the code also correctly correct, not just xxxgcc'ly correct 2011-03-14 11:10:35 +00:00
pooka 7780c2df6d * attempt to make this endian-independent (tested only on el)
* write via libpcap (since i thought there would be some fancy
  api to deal with endianness.  after doing 80% of the work i
  noticed there wasn't, but went ahead anyway)
2011-03-14 11:08:28 +00:00
pooka bea8760a7c Apropos, pcap doesn't export the on-disk pcap packet header but
only the in-memory one.  Since the in-memory one uses struct timeval
and the on-disk one uses 32bit time_t, things didn't work so well
on -current.  Generate a suitable local packetheader to fix things.
(don't think it's worth writing via libpcap for something as simple
as this)

noticed both by bouyer and the shmif_dumpbus test
2011-03-12 18:27:42 +00:00
pooka a10e19a78e Add some asserts to make sure the bus offset isn't beyond what we
mapped.  (I had a very interesting time last night trying to figure
out what was going when things apparently got compiled with a 64bit
time_t on nb5.  this caused only 4k of the bus file to be mapped...)
2011-03-10 10:11:25 +00:00
pooka 73fa5bcac3 print processing details only if we've not outputting a pcap file
to stdout
2011-03-09 12:56:08 +00:00
wiz 2164f8a67d Fix xref. 2011-01-12 19:53:12 +00:00
pooka fca51725c2 shmif(4) bus dumping utility 2011-01-12 16:14:24 +00:00