Closed GoogleCodeExporter closed 9 years ago
Original comment by gconnell@google.com
on 15 Aug 2014 at 3:36
Hmm, this one is tricky.
I need to make sure I support common libpcap versions, like the ones that come
with ubuntu, etc and are old. libpcap folks, though, appear to have nothing
#defined that differentiates between versions that I can use to check for this
in the preprocessor phase. pcap_lib_version is a function, so I can't #ifdef
it.
As far as I can tell, I can either:
1) use some esoteric value added around libpcap1.5
(PCAP_ERROR_TSTAMP_PRECISION_NOTSUP or something like that)
2) add in the function and break everyone that doesn't have it (nope)
3) add in the function commented out, let folks uncomment it (nope)
I'm going to try #1 for now and see how that compiles on various systems.
Original comment by gconnell@google.com
on 15 Aug 2014 at 4:03
#1 was the answer I had prepared for when you were inevitably going to bring up
the version issue. So we are in agreement ;)
Original comment by matthias...@gmail.com
on 15 Aug 2014 at 4:32
https://code.google.com/p/gopacket/source/detail?r=d5007b02aabc80b3a4373ca88f7a1
7903661e54a
Original comment by gconnell@google.com
on 15 Aug 2014 at 4:43
Original issue reported on code.google.com by
matthias...@gmail.com
on 8 Aug 2014 at 9:16