[Bug 264625] Including <arpa/inet.h> and <netinet/if_ether.h> causes unknown type name 'u_char'
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264625] Including <arpa/inet.h> and <netinet/if_ether.h> causes unknown type name 'u_char'"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264625] Including <arpa/inet.h> and <netinet/if_ether.h> causes unknown type name 'u_char'"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Jun 2022 06:55:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264625
Bug ID: 264625
Summary: Including <arpa/inet.h> and <netinet/if_ether.h>
causes unknown type name 'u_char'
Product: Base System
Version: 13.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: bugs@FreeBSD.org
Reporter: yuri@freebsd.org
The nemesis project includes these headers
(https://github.com/libnet/nemesis/blob/master/src/nemesis-proto_igmp.c#L9) for
the ETHER_MAP_IP_MULTICAST macro here:
https://github.com/libnet/nemesis/blob/master/src/nemesis-proto_igmp.c#L68
This causes unknown type names errors like this:
> /usr/include/net/ethernet.h:61:2: error: unknown type name 'u_char'; did you mean 'char'?
> u_char ether_dhost[ETHER_ADDR_LEN];
> ^
I am not sure what's wrong here. Are these headers wrong headers for this
macro? It doesn't have a manpage.
--
You are receiving this mail because:
You are the assignee for the bug.