freebsd_net.cdl
来自「开放源码实时操作系统源码.」· CDL 代码 · 共 481 行 · 第 1/2 页
CDL
481 行
# ====================================================================
#
# freebsd_net.cdl
#
# Networking configuration data
#
# ====================================================================
#####ECOSPDCOPYRIGHTBEGIN####
#
# Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
# All Rights Reserved.
#
# Permission is granted to use, copy, modify and redistribute this
# file.
#
#####ECOSPDCOPYRIGHTEND####
# ====================================================================
######DESCRIPTIONBEGIN####
#
# Author(s): gthomas
# Original data: gthomas
# Contributors:
# Date: 1999-11-29
#
#####DESCRIPTIONEND####
#
# ====================================================================
cdl_package CYGPKG_NET_FREEBSD_STACK {
display "FreeBSD networking stack"
parent CYGPKG_NET
doc ref/tcpip-freebsd.html
include_dir .
requires CYGPKG_IO
requires CYGPKG_ISOINFRA
requires CYGINT_ISO_C_TIME_TYPES
requires CYGINT_ISO_STRERROR
requires CYGINT_ISO_ERRNO
requires CYGINT_ISO_ERRNO_CODES
requires CYGINT_ISO_MALLOC
requires CYGINT_ISO_STRING_BSD_FUNCS
requires CYGPKG_IO_FILEIO
description "Basic networking support, including TCP/IP."
cdl_interface CYGINT_NET_IPSEC_BSD_CRYPTO {
display "Implementation of BSD CRYPTO functions"
description "
In order to avoid potential export problems of crypto
functions, they are distributed in a separate package which
must implement this interface"
}
implements CYGPKG_NET_STACK
implements CYGPKG_NET_STACK_INET
implements CYGPKG_NET_STACK_INET6
# Note: separating the stack implementation from the common support leads
# to some rather incestious config file relationships.
define_proc {
puts $::cdl_system_header "/***** Networking stack proc output start *****/"
puts $::cdl_header "#include <pkgconf/net.h>"
puts $::cdl_system_header "#define CYGDAT_NET_STACK_CFG <pkgconf/net_freebsd_stack.h>"
puts $::cdl_system_header "/***** Networking stack proc output end *****/"
}
# Export our types to <sys/types.h>
implements CYGINT_ISO_BSDTYPES
requires { CYGBLD_ISO_BSDTYPES_HEADER == "<sys/bsdtypes.h>" }
# These files are unique to eCos
compile ecos/support.c \
ecos/synch.c \
ecos/timeout.c \
ecos/init.cxx
compile -library=libextras.a sys/kern/sockio.c
# These files were derived from FreeBSD and carry their copyright
compile sys/net/if.c \
sys/net/rtsock.c \
sys/net/raw_cb.c \
sys/net/raw_usrreq.c \
sys/net/route.c \
sys/net/radix.c \
sys/net/if_ethersubr.c \
sys/net/if_loop.c \
sys/netinet/igmp.c \
sys/netinet/raw_ip.c \
sys/netinet/in.c \
sys/netinet/in_cksum.c \
sys/netinet/in_pcb.c \
sys/netinet/in_proto.c \
sys/netinet/in_rmx.c \
sys/netinet/ip_encap.c \
sys/netinet/ip_id.c \
sys/netinet/ip_icmp.c \
sys/netinet/ip_flow.c \
sys/netinet/ip_input.c \
sys/netinet/ip_output.c \
sys/netinet/ip_mroute.c \
sys/netinet/if_ether.c \
sys/netinet/udp_usrreq.c \
sys/netinet/tcp_input.c \
sys/netinet/tcp_output.c \
sys/netinet/tcp_debug.c \
sys/netinet/tcp_usrreq.c \
sys/netinet/tcp_timer.c \
sys/netinet/tcp_subr.c \
sys/kern/md5c.c \
sys/kern/uipc_domain.c \
sys/kern/uipc_socket.c \
sys/kern/uipc_socket2.c \
sys/kern/uipc_mbuf.c \
sys/kern/uipc_mbuf2.c \
sys/kern/uipc_accf.c \
sys/kern/kern_subr.c
cdl_component CYGPKG_NET_FREEBSD_INET {
display "INET support"
active_if CYGPKG_NET_INET
flavor bool
no_define
default_value 1
description "
This option enables support for INET (IPv4) network processing."
cdl_option CYGPKG_NET_FREEBSD_INET6 {
display "IPv6 support"
active_if CYGPKG_NET_INET6
flavor bool
default_value 1
description "
This option enables support for new IPv6."
# These files were derived from FreeBSD and carry their copyright
compile \
sys/netinet6/dest6.c \
sys/netinet6/frag6.c \
sys/netinet6/icmp6.c \
sys/netinet6/in6.c \
sys/netinet6/in6_cksum.c \
sys/netinet6/in6_ifattach.c \
sys/netinet6/in6_pcb.c \
sys/netinet6/in6_proto.c \
sys/netinet6/in6_rmx.c \
sys/netinet6/in6_src.c \
sys/netinet6/ip6_forward.c \
sys/netinet6/ip6_input.c \
sys/netinet6/ip6_mroute.c \
sys/netinet6/ip6_output.c \
sys/netinet6/mld6.c \
sys/netinet6/nd6.c \
sys/netinet6/nd6_nbr.c \
sys/netinet6/nd6_rtr.c \
sys/netinet6/raw_ip6.c \
sys/netinet6/route6.c \
sys/netinet6/scope6.c \
sys/netinet6/udp6_output.c \
sys/netinet6/udp6_usrreq.c \
## Only if firewall enabled
## sys/netinet6/ip6_fw.c \
##
}
cdl_option CYGPKG_NET_FREEBSD_IPSEC {
display "IPSEC support"
requires CYGPKG_COMPRESS_ZLIB
implements CYGPKG_NET_STACK_IPSEC
flavor bool
default_value CYGPKG_NET_IPSEC_BSD_CRYPTO
description "
This option enables support for IPSEC."
# These files were derived from FreeBSD/KAME and carry their copyright
compile \
sys/netkey/key.c \
sys/netkey/key_debug.c \
sys/netkey/keydb.c\
sys/netkey/keysock.c \
sys/netinet6/ipsec.c \
sys/netinet6/ah_core.c \
sys/netinet6/ah_input.c \
sys/netinet6/ah_output.c \
sys/netinet6/ipcomp_core.c \
sys/netinet6/esp_core.c \
sys/netinet6/esp_output.c \
sys/netinet6/esp_input.c \
sys/netinet6/esp_rijndael.c \
sys/netinet6/esp_twofish.c \
sys/netinet6/ipcomp_core.c \
sys/netinet6/ipcomp_output.c \
sys/netinet6/ipcomp_input.c \
sys/netinet/ip_ecn.c
}
cdl_option CYGPKG_NET_FREEBSD_IPSEC6 {
display "IPSEC support for IPv6"
active_if CYGPKG_NET_INET6
active_if CYGPKG_NET_FREEBSD_IPSEC
flavor bool
default_value 1
description "
This option enables support for IPSEC with IPv6"
compile \
sys/netinet6/in6_gif.c
}
cdl_option CYGPKG_NET_FREEBSD_SYSCTL {
display "sysctl support"
flavor bool
default_value 0
description "
This option enables support for the system call sysctl used
to configure options/variables in the stack and retrieve statistics. "
# This file was derived from FreeBSD and carries that copyright
compile \
sys/kern/kern_sysctl.c
}
cdl_option CYGPKG_NET_RANDOM_PORTS {
display "Random source ports"
flavor bool
default_value 0
description "
This option enables support for random source ports when the source
port is not specified. This option is useful when connecting
through firewalls."
}
}
cdl_option CYGPKG_NET_NGIF {
display "Number of GIF things"
flavor data
default_value 0
description "
This option controls the number of active GIF things."
define NGIF
}
cdl_option CYGPKG_NET_NLOOP {
display "Number of loopback interfaces"
flavor data
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?