tomac / yersinia

A framework for layer 2 attacks
GNU General Public License v2.0
702 stars 119 forks source link

Support cross compiling (when libpcap and libnet includes are specified) #80

Closed soxrok2212 closed 11 months ago

soxrok2212 commented 1 year ago

This is a little bit of a hack, but it allows for cross compiling out-of-the-box. There are probably better ways about this, but this is what I came up with that worked when specifying custom libpcap and libnet paths.

Caveats:

Feedback is appreciated. Tested on arm64: native arm64 binary builds and mips64 cross compile works.