[Bug 264625] Including <arpa/inet.h> and <netinet/if_ether.h> causes unknown type name 'u_char'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 12 Jun 2022 06:55:22 UTC

            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:

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.