Ignore:
Timestamp:
Apr 19, 1999, 3:27:19 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
11f84b3c
Parents:
202d54e
Message:

After discussion with Eric Norum <eric@…>,
I added INSIDE_RTEMS_BSD_TCPIP_STACK that trips all the needed
macro definitions for a network driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libnetworking/rtems/rtems_bsdnet.h

    r202d54e r7cdf7fc1  
    77
    88#include <rtems.h>
     9
     10/*
     11 *  If this file is included from inside the Network Stack proper or
     12 *  a device driver, then __INSIDE_RTEMS_BSD_TCPIP_STACK__ should be
     13 *  defined.  This triggers a number of internally used definitions.
     14 */
     15
     16#if defined(__INSIDE_RTEMS_BSD_TCPIP_STACK__)
     17#undef _COMPILING_BSD_KERNEL_
     18#undef KERNEL
     19#undef INET
     20#undef NFS
     21#undef DIAGNOSTIC
     22#undef BOOTP_COMPAT
     23
     24#define _COMPILING_BSD_KERNEL_
     25#define KERNEL
     26#define INET
     27#define NFS
     28#define DIAGNOSTIC
     29#define BOOTP_COMPAT
     30#endif
    931
    1032/*
Note: See TracChangeset for help on using the changeset viewer.