tcpreplay icon indicating copy to clipboard operation
tcpreplay copied to clipboard

Fix building on OpenBSD

Open brad0 opened this issue 1 year ago • 0 comments

In file included from ../../src/common/sendpacket.h:30: 
/usr/include/netinet/if_ether.h:154:17: fatal error: field has incomplete type 'struct arphdr'
        struct   arphdr ea_hdr;                 /* fixed-size header */
                        ^
/usr/include/netinet/if_ether.h:154:10: note: forward declaration of 'struct arphdr'
        struct   arphdr ea_hdr;                 /* fixed-size header */
                 ^
1 error generated.

Standards checklist:

  • [X] The PR title is descriptive.
  • [X] The PR doesn't replicate another PR which is already open.
  • [X] I have read the contribution guide and followed all the instructions.
  • [X] The code follows the code style guide detailed in the wiki.
  • [X] The code is mine or it's from somewhere with an MIT-compatible license.
  • [X] The code is efficient, to the best of my ability, and does not waste computer resources.
  • [X] The code is stable and I have tested it myself, to the best of my abilities.
  • [X] If the code introduces new aliases, I provide a valid use case for all plugin users down below.

brad0 avatar Dec 09 '24 23:12 brad0