Changeset 7cdf7fc1 in rtems


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.

Location:
c/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/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/*
  • c/src/lib/libbsp/i386/pc386/dec21140/Makefile.in

    r202d54e r7cdf7fc1  
    3535#
    3636
    37 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    38      -DDIAGNOSTIC -DBOOTP_COMPAT
     37DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3938CPPFLAGS +=
    4039CFLAGS   +=
  • c/src/lib/libbsp/i386/pc386/ne2000/Makefile.in

    r202d54e r7cdf7fc1  
    3535#
    3636
    37 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    38      -DDIAGNOSTIC -DBOOTP_COMPAT
     37DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3938CPPFLAGS +=
    4039CFLAGS   +=
  • c/src/lib/libbsp/i386/pc386/wd8003/Makefile.in

    r202d54e r7cdf7fc1  
    3535#
    3636
    37 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    38      -DDIAGNOSTIC -DBOOTP_COMPAT
     37DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3938CPPFLAGS +=
    4039CFLAGS   +=
  • c/src/lib/libbsp/m68k/gen68360/network/Makefile.in

    r202d54e r7cdf7fc1  
    3535#
    3636
    37 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    38      -DDIAGNOSTIC -DBOOTP_COMPAT
     37DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3938CPPFLAGS +=
    4039CFLAGS   +=
  • c/src/lib/libbsp/powerpc/dmv177/sonic/Makefile.in

    r202d54e r7cdf7fc1  
    4040#
    4141
    42 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    43      -DDIAGNOSTIC -DBOOTP_COMPAT
     42DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    4443CPPFLAGS +=
    4544CFLAGS   +=
  • c/src/lib/libbsp/powerpc/eth_comm/network/Makefile.in

    r202d54e r7cdf7fc1  
    3535#
    3636
    37 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    38      -DDIAGNOSTIC -DBOOTP_COMPAT
     37DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3938CPPFLAGS +=
    4039CFLAGS   +=
  • c/src/lib/libchip/network/Makefile.in

    r202d54e r7cdf7fc1  
    3636#
    3737
    38 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    39      -DDIAGNOSTIC -DBOOTP_COMPAT
     38DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    4039CPPFLAGS +=
    4140CFLAGS   += $(LIBC_DEFINES)
  • 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/*
  • c/src/lib/libnetworking/rtems_servers/Makefile.in

    r202d54e r7cdf7fc1  
    3434#
    3535
    36 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    37     -DDIAGNOSTIC -DBOOTP_COMPAT
     36DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3837CPPFLAGS +=
    3938CFLAGS   +=
Note: See TracChangeset for help on using the changeset viewer.