Use gre condition in conf/files for compiling netinet/ip_gre.c only
if needed. Remove #if NGRE > 0 from ip_gre.c that caused ramdisk
build to compile an empty C file.
OK kn@ deraadt@; input jsg@
-# $OpenBSD: files,v 1.733 2024/06/12 12:54:54 bluhm Exp $
+# $OpenBSD: files,v 1.734 2024/07/13 13:20:44 bluhm Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
file netinet/tcp_timer.c
file netinet/tcp_usrreq.c
file netinet/udp_usrreq.c
-file netinet/ip_gre.c
+file netinet/ip_gre.c gre
file netinet/ip_ipsp.c ipsec | tcp_signature
file netinet/ip_spd.c ipsec | tcp_signature
file netinet/ip_ipip.c
-/* $OpenBSD: ip_gre.c,v 1.87 2023/12/15 00:24:56 bluhm Exp $ */
+/* $OpenBSD: ip_gre.c,v 1.88 2024/07/13 13:20:44 bluhm Exp $ */
/* $NetBSD: ip_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
* This currently handles IPPROTO_GRE, IPPROTO_MOBILE
*/
-
-#include "gre.h"
-#if NGRE > 0
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
#endif
return rip_send(so, m, nam, control);
}
-
-#endif /* if NGRE > 0 */