Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2022 06:55:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264625] Including <arpa/inet.h> and <netinet/if_ether.h> causes unknown type name 'u_char'
Message-ID:  <bug-264625-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264625

            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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264625-227>