From: Ted Lemon Date: Thu, 25 Jun 1998 06:06:10 +0000 (+0000) Subject: Add DLPI support. X-Git-Tag: V2-BETA-1^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e24f11a0002ed7f2c5b59e6b742ca1bb80f4048;p=thirdparty%2Fdhcp.git Add DLPI support. --- diff --git a/includes/osdep.h b/includes/osdep.h index ed725db6b..deacaedde 100644 --- a/includes/osdep.h +++ b/includes/osdep.h @@ -3,7 +3,8 @@ Operating system dependencies... */ /* - * Copyright (c) 1996 The Internet Software Consortium. All rights reserved. + * Copyright (c) 1996, 1997, 1998 The Internet Software Consortium. + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -52,7 +53,9 @@ !defined (USE_BPF_RECEIVE) && \ !defined (USE_NIT) && \ !defined (USE_NIT_SEND) && \ - !defined (USE_NIT_RECEIVE) + !defined (USE_NIT_RECEIVE) && \ + !defined (USR_DLPI_SEND) && \ + !defined (USE_DLPI_RECEIVE) # define USE_DEFAULT_NETWORK #endif @@ -139,6 +142,11 @@ # define USE_NIT_RECEIVE #endif +#ifdef USE_DLPI +# define USE_DLPI_SEND +# define USE_DLPI_RECEIVE +#endif + #ifdef USE_UPF # define USE_UPF_SEND # define USE_UPF_RECEIVE @@ -152,7 +160,8 @@ Currently, all low-level packet interfaces use BSD sockets as a fallback. */ -#if defined (USE_BPF_SEND) || defined (USE_NIT_SEND) || defined (USE_UPF_SEND) +#if defined (USE_BPF_SEND) || defined (USE_NIT_SEND) || \ + defined (USE_DLPI_SEND) || defined (USE_UPF_SEND) # define USE_SOCKET_FALLBACK # define USE_FALLBACK #endif @@ -164,7 +173,8 @@ definition for your interface to the list tested below. */ #if defined (USE_RAW_SEND) || defined (USE_BPF_SEND) || \ - defined (USE_NIT_SEND) || defined (USE_UPF_SEND) + defined (USE_NIT_SEND) || defined (USE_UPF_SEND) || \ + defined (USE_DLPI_SEND) # define PACKET_ASSEMBLY #endif @@ -175,10 +185,17 @@ definition for your interface to the list tested below. */ #if defined (USE_RAW_RECEIVE) || defined (USE_BPF_SEND) || \ - defined (USE_NIT_RECEIVE) || defined (USE_UPF_SEND) + defined (USE_NIT_RECEIVE) || defined (USE_UPF_RECEIVE) || \ + defined (USE_DLPI_RECEIVE) # define PACKET_DECODING #endif +/* If we don't have a DLPI packet filter, we have to filter in userland. + Probably not worth doing, actually. */ +#if defined (USE_DLPI_RECEIVE) && !defined (USE_DLPI_PFMOD) +# define USERLAND_FILTER +#endif + /* jmp_buf is assumed to be a struct unless otherwise defined in the system header. */ #ifndef jbp_decl