Forbid include of netinet6/ip6.h from user-land, and if included,

print an error message which say, "include netinet/ip6.h".
This is postponed to apply to avoid tcpdump compile error.
Now apply this because tcpdump has been already fixed.

Approved by: jkh

Obtained from: KAME project
This commit is contained in:
Yoshinobu Inoue 2000-03-11 20:44:53 +00:00
parent e62b0fd5ae
commit dd251c3820
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57917

View File

@ -68,10 +68,8 @@
#define _NETINET6_IPV6_H_
#if !defined(_KERNEL) && !defined(__KAME_NETINET_IP6_H_INCLUDED_)
#if 0 /* XXX: waiting for contrib/addrtoname.c fix */
#error "do not include netinet6/ip6.h directly, include netinet/ip6.h"
#endif
#endif
/*
* Definition for internet protocol version 6.