appneta / tcpreplay

Pcap editing and replay tools for *NIX and Windows - Users please download source from
http://tcpreplay.appneta.com/wiki/installation.html#downloads
1.16k stars 268 forks source link

[Bug] Build failures on Debian/kfreebsd #706

Closed cbiedl closed 2 years ago

cbiedl commented 2 years ago

See the full build log at https://buildd.debian.org/status/fetch.php?pkg=tcpreplay&arch=kfreebsd-amd64&ver=4.4.0-1&stamp=1644098467&raw=0:

fuzzing.c:314:45: error: ‘ETHERTYPE_IPV6’ undeclared (first use in this function); did you mean ‘ETHERTYPE_IP6’?
  314 |                                 (l2proto == ETHERTYPE_IPV6) ? l4data : NULL);
      |                                             ^~~~~~~~~~~~~~
      |                                             ETHERTYPE_IP6

To be honest, I haven't checked yet the differences in that architecture - possibly indeed just using ETHERTYPE_IP6 was enough to fix this. From browsing the sources it seems this should be done anyway already for consistency reasons.

fklassen commented 2 years ago

I'll investigate Monday. If I find something I should have time In Tuesday to work on it.

fklassen commented 2 years ago

Fixed in PR #707