mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 13:56:17 +08:00
Add generated files
This avoids dependencies on a particular generator tool version. On MinGW and Cygwin hosts these tools tend to be outdated or somehow incapable.
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -4,14 +4,6 @@
|
||||
*.exe
|
||||
*.map
|
||||
libbsd.html
|
||||
freebsd/sbin/route/keywords.h
|
||||
freebsd/include/rpc/rpcb_prot.h
|
||||
freebsd/lib/libipsec/y.tab.h
|
||||
freebsd/lib/libipsec/policy_parse.c
|
||||
freebsd/lib/libipsec/policy_token.c
|
||||
freebsd/lib/libc/net/nsparser.h
|
||||
freebsd/lib/libc/net/nslexer.c
|
||||
freebsd/lib/libc/net/nsparser.c
|
||||
rtemsbsd/rtems/rtems-kvm-symbols.c
|
||||
testsuite/include/rtems/bsd/test/network-config.h
|
||||
/*.i
|
||||
|
6
Makefile
6
Makefile
@@ -144,22 +144,18 @@ LIB_GEN_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
|
||||
LIB_C_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
|
||||
rtemsbsd/rtems/rtems-kvm-symbols.c: rtemsbsd/rtems/generate_kvm_symbols
|
||||
./$< > $@
|
||||
LIB_GEN_FILES += freebsd/lib/libc/net/nslexer.c
|
||||
LIB_C_FILES += freebsd/lib/libc/net/nslexer.c
|
||||
freebsd/lib/libc/net/nslexer.c: freebsd/lib/libc/net/nslexer.l freebsd/lib/libc/net/nsparser.c
|
||||
${LEX} -P _nsyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
|
||||
LIB_GEN_FILES += freebsd/lib/libc/net/nsparser.c
|
||||
LIB_C_FILES += freebsd/lib/libc/net/nsparser.c
|
||||
freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
|
||||
yacc -b _nsyy -d -p _nsyy $<
|
||||
sed -e /YY_BUF_SIZE/s/16384/1024/ < _nsyy.tab.c > $@
|
||||
rm -f _nsyy.tab.c
|
||||
mv _nsyy.tab.h freebsd/lib/libc/net/nsparser.h
|
||||
LIB_GEN_FILES += freebsd/lib/libipsec/policy_token.c
|
||||
LIB_C_FILES += freebsd/lib/libipsec/policy_token.c
|
||||
freebsd/lib/libipsec/policy_token.c: freebsd/lib/libipsec/policy_token.l freebsd/lib/libipsec/policy_parse.c
|
||||
${LEX} -P __libipsecyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
|
||||
LIB_GEN_FILES += freebsd/lib/libipsec/policy_parse.c
|
||||
LIB_C_FILES += freebsd/lib/libipsec/policy_parse.c
|
||||
freebsd/lib/libipsec/policy_parse.c: freebsd/lib/libipsec/policy_parse.y
|
||||
yacc -b __libipsecyy -d -p __libipsecyy $<
|
||||
@@ -616,11 +612,9 @@ endif
|
||||
ifeq ($(RTEMS_CPU), v850)
|
||||
LIB_C_FILES += freebsd/sys/v850/v850/in_cksum.c
|
||||
endif
|
||||
LIB_GEN_FILES += freebsd/include/rpc/rpcb_prot.h
|
||||
freebsd/include/rpc/rpcb_prot.h: freebsd/include/rpc/rpcb_prot.x
|
||||
rm -f $@
|
||||
rpcgen -h -o $@ $<
|
||||
LIB_GEN_FILES += freebsd/sbin/route/keywords.h
|
||||
freebsd/sbin/route/keywords.h: freebsd/sbin/route/keywords
|
||||
sed -e '/^#/d' -e '/^$$/d' $< > freebsd/sbin/route/keywords.tmp
|
||||
LC_ALL=C tr 'a-z' 'A-Z' < freebsd/sbin/route/keywords.tmp | paste freebsd/sbin/route/keywords.tmp - | \
|
||||
|
@@ -2230,8 +2230,7 @@ userSpace.addUserSpaceHeaderFiles(
|
||||
class RPCGENMakefileFragmentComposer(MakefileFragmentComposer):
|
||||
def compose(self, path):
|
||||
headerPath = path[:-2] + '.h'
|
||||
return 'LIB_GEN_FILES += ' + headerPath + '\n' \
|
||||
+ headerPath + ': ' + path + '\n' \
|
||||
return headerPath + ': ' + path + '\n' \
|
||||
'\t rm -f $@\n' \
|
||||
'\t rpcgen -h -o $@ $<\n'
|
||||
|
||||
@@ -2241,8 +2240,7 @@ class RouteKeywordsMakefileFragmentComposer(MakefileFragmentComposer):
|
||||
def compose(self, path):
|
||||
headerPath = path + '.h'
|
||||
tmpPath = path + '.tmp'
|
||||
return 'LIB_GEN_FILES += ' + headerPath + '\n' \
|
||||
+ headerPath + ': ' + path + '\n' \
|
||||
return headerPath + ': ' + path + '\n' \
|
||||
'\tsed -e \'/^#/d\' -e \'/^$$/d\' $< > ' + tmpPath + '\n' \
|
||||
'\tLC_ALL=C tr \'a-z\' \'A-Z\' < ' + tmpPath + ' | paste ' + tmpPath + ' - | \\\n' \
|
||||
'\tawk \'{ if (NF > 1) printf "#define\\tK_%s\\t%d\\n\\t{\\"%s\\", K_%s},\\n", $$2, NR, $$1, $$2 }\' > $@\n' \
|
||||
@@ -2258,8 +2256,7 @@ class LexMakefileFragmentComposer(MakefileFragmentComposer):
|
||||
def compose(self, path):
|
||||
src = path[:-2] + '.c'
|
||||
dep = path[:path.rfind('/')] + '/' + self.dep
|
||||
return 'LIB_GEN_FILES += ' + src + '\n' \
|
||||
'LIB_C_FILES += ' + src + '\n' \
|
||||
return 'LIB_C_FILES += ' + src + '\n' \
|
||||
+ src + ': ' + path + ' ' + dep + '\n' \
|
||||
'\t${LEX} -P ' + self.sym + ' -t $< | sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > $@\n'
|
||||
|
||||
@@ -2271,8 +2268,7 @@ class YaccMakefileFragmentComposer(MakefileFragmentComposer):
|
||||
def compose(self, path):
|
||||
src = path[:-2] + '.c'
|
||||
hdr = path[:path.rfind('/')] + '/' + self.header
|
||||
return 'LIB_GEN_FILES += ' + src + '\n' \
|
||||
'LIB_C_FILES += ' + src + '\n' \
|
||||
return 'LIB_C_FILES += ' + src + '\n' \
|
||||
+ src + ': ' + path + '\n' \
|
||||
'\tyacc -b ' + self.sym + ' -d -p ' + self.sym + ' $<\n' \
|
||||
'\tsed -e ''/YY_BUF_SIZE/s/16384/1024/'' < ' + self.sym + '.tab.c > $@\n' \
|
||||
|
659
freebsd/include/rpc/rpcb_prot.h
Normal file
659
freebsd/include/rpc/rpcb_prot.h
Normal file
@@ -0,0 +1,659 @@
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
||||
#ifndef _RPCB_PROT_H_RPCGEN
|
||||
#define _RPCB_PROT_H_RPCGEN
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*-
|
||||
* $FreeBSD$
|
||||
*
|
||||
* Copyright (c) 2009, Sun Microsystems, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* - Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* - Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
* - Neither the name of Sun Microsystems, Inc. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 1988 by Sun Microsystems, Inc.
|
||||
*/
|
||||
/* from rpcb_prot.x */
|
||||
|
||||
/* #pragma ident "@(#)rpcb_prot.x 1.5 94/04/29 SMI" */
|
||||
|
||||
#ifndef _KERNEL
|
||||
|
||||
|
||||
/*
|
||||
* The following procedures are supported by the protocol in version 3:
|
||||
*
|
||||
* RPCBPROC_NULL() returns ()
|
||||
* takes nothing, returns nothing
|
||||
*
|
||||
* RPCBPROC_SET(rpcb) returns (bool_t)
|
||||
* TRUE is success, FALSE is failure. Registers the tuple
|
||||
* [prog, vers, address, owner, netid].
|
||||
* Finds out owner and netid information on its own.
|
||||
*
|
||||
* RPCBPROC_UNSET(rpcb) returns (bool_t)
|
||||
* TRUE is success, FALSE is failure. Un-registers tuple
|
||||
* [prog, vers, netid]. addresses is ignored.
|
||||
* If netid is NULL, unregister all.
|
||||
*
|
||||
* RPCBPROC_GETADDR(rpcb) returns (string).
|
||||
* 0 is failure. Otherwise returns the universal address where the
|
||||
* triple [prog, vers, netid] is registered. Ignore address and owner.
|
||||
*
|
||||
* RPCBPROC_DUMP() RETURNS (rpcblist_ptr)
|
||||
* used to dump the entire rpcbind maps
|
||||
*
|
||||
* RPCBPROC_CALLIT(rpcb_rmtcallargs)
|
||||
* RETURNS (rpcb_rmtcallres);
|
||||
* Calls the procedure on the remote machine. If it is not registered,
|
||||
* this procedure is quiet; i.e. it does not return error information!!!
|
||||
* This routine only passes null authentication parameters.
|
||||
* It has no interface to xdr routines for RPCBPROC_CALLIT.
|
||||
*
|
||||
* RPCBPROC_GETTIME() returns (int).
|
||||
* Gets the remote machines time
|
||||
*
|
||||
* RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf)
|
||||
* Returns the netbuf address from universal address.
|
||||
*
|
||||
* RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string)
|
||||
* Returns the universal address from netbuf address.
|
||||
*
|
||||
* END OF RPCBIND VERSION 3 PROCEDURES
|
||||
*/
|
||||
/*
|
||||
* Except for RPCBPROC_CALLIT, the procedures above are carried over to
|
||||
* rpcbind version 4. Those below are added or modified for version 4.
|
||||
* NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER
|
||||
* AS RPCBPROC_CALLIT.
|
||||
*
|
||||
* RPCBPROC_BCAST(rpcb_rmtcallargs)
|
||||
* RETURNS (rpcb_rmtcallres);
|
||||
* Calls the procedure on the remote machine. If it is not registered,
|
||||
* this procedure IS quiet; i.e. it DOES NOT return error information!!!
|
||||
* This routine should be used for broadcasting and nothing else.
|
||||
*
|
||||
* RPCBPROC_GETVERSADDR(rpcb) returns (string).
|
||||
* 0 is failure. Otherwise returns the universal address where the
|
||||
* triple [prog, vers, netid] is registered. Ignore address and owner.
|
||||
* Same as RPCBPROC_GETADDR except that if the given version number
|
||||
* is not available, the address is not returned.
|
||||
*
|
||||
* RPCBPROC_INDIRECT(rpcb_rmtcallargs)
|
||||
* RETURNS (rpcb_rmtcallres);
|
||||
* Calls the procedure on the remote machine. If it is not registered,
|
||||
* this procedure is NOT quiet; i.e. it DOES return error information!!!
|
||||
* as any normal application would expect.
|
||||
*
|
||||
* RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr).
|
||||
* Same as RPCBPROC_GETADDR except that it returns a list of all the
|
||||
* addresses registered for the combination (prog, vers) (for all
|
||||
* transports).
|
||||
*
|
||||
* RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers)
|
||||
* Returns the statistics about the kind of requests received by rpcbind.
|
||||
*/
|
||||
|
||||
/*
|
||||
* A mapping of (program, version, network ID) to address
|
||||
*/
|
||||
|
||||
struct rpcb {
|
||||
rpcprog_t r_prog;
|
||||
rpcvers_t r_vers;
|
||||
char *r_netid;
|
||||
char *r_addr;
|
||||
char *r_owner;
|
||||
};
|
||||
typedef struct rpcb rpcb;
|
||||
|
||||
typedef rpcb RPCB;
|
||||
|
||||
|
||||
/*
|
||||
* A list of mappings
|
||||
*
|
||||
* Below are two definitions for the rpcblist structure. This is done because
|
||||
* xdr_rpcblist() is specified to take a struct rpcblist **, rather than a
|
||||
* struct rpcblist * that rpcgen would produce. One version of the rpcblist
|
||||
* structure (actually called rp__list) is used with rpcgen, and the other is
|
||||
* defined only in the header file for compatibility with the specified
|
||||
* interface.
|
||||
*/
|
||||
|
||||
struct rp__list {
|
||||
rpcb rpcb_map;
|
||||
struct rp__list *rpcb_next;
|
||||
};
|
||||
typedef struct rp__list rp__list;
|
||||
|
||||
typedef rp__list *rpcblist_ptr;
|
||||
|
||||
typedef struct rp__list rpcblist;
|
||||
typedef struct rp__list RPCBLIST;
|
||||
|
||||
#ifndef __cplusplus
|
||||
struct rpcblist {
|
||||
RPCB rpcb_map;
|
||||
struct rpcblist *rpcb_next;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern bool_t xdr_rpcblist(XDR *, rpcblist**);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Arguments of remote calls
|
||||
*/
|
||||
|
||||
struct rpcb_rmtcallargs {
|
||||
rpcprog_t prog;
|
||||
rpcvers_t vers;
|
||||
rpcproc_t proc;
|
||||
struct {
|
||||
u_int args_len;
|
||||
char *args_val;
|
||||
} args;
|
||||
};
|
||||
typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
|
||||
|
||||
/*
|
||||
* Client-side only representation of rpcb_rmtcallargs structure.
|
||||
*
|
||||
* The routine that XDRs the rpcb_rmtcallargs structure must deal with the
|
||||
* opaque arguments in the "args" structure. xdr_rpcb_rmtcallargs() needs to
|
||||
* be passed the XDR routine that knows the args' structure. This routine
|
||||
* doesn't need to go over-the-wire (and it wouldn't make sense anyway) since
|
||||
* the application being called already knows the args structure. So we use a
|
||||
* different "XDR" structure on the client side, r_rpcb_rmtcallargs, which
|
||||
* includes the args' XDR routine.
|
||||
*/
|
||||
struct r_rpcb_rmtcallargs {
|
||||
rpcprog_t prog;
|
||||
rpcvers_t vers;
|
||||
rpcproc_t proc;
|
||||
struct {
|
||||
u_int args_len;
|
||||
char *args_val;
|
||||
} args;
|
||||
xdrproc_t xdr_args; /* encodes args */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Results of the remote call
|
||||
*/
|
||||
|
||||
struct rpcb_rmtcallres {
|
||||
char *addr;
|
||||
struct {
|
||||
u_int results_len;
|
||||
char *results_val;
|
||||
} results;
|
||||
};
|
||||
typedef struct rpcb_rmtcallres rpcb_rmtcallres;
|
||||
|
||||
/*
|
||||
* Client-side only representation of rpcb_rmtcallres structure.
|
||||
*/
|
||||
struct r_rpcb_rmtcallres {
|
||||
char *addr;
|
||||
struct {
|
||||
u_int32_t results_len;
|
||||
char *results_val;
|
||||
} results;
|
||||
xdrproc_t xdr_res; /* decodes results */
|
||||
};
|
||||
|
||||
/*
|
||||
* rpcb_entry contains a merged address of a service on a particular
|
||||
* transport, plus associated netconfig information. A list of rpcb_entrys
|
||||
* is returned by RPCBPROC_GETADDRLIST. See netconfig.h for values used
|
||||
* in r_nc_* fields.
|
||||
*/
|
||||
|
||||
struct rpcb_entry {
|
||||
char *r_maddr;
|
||||
char *r_nc_netid;
|
||||
u_int r_nc_semantics;
|
||||
char *r_nc_protofmly;
|
||||
char *r_nc_proto;
|
||||
};
|
||||
typedef struct rpcb_entry rpcb_entry;
|
||||
|
||||
/*
|
||||
* A list of addresses supported by a service.
|
||||
*/
|
||||
|
||||
struct rpcb_entry_list {
|
||||
rpcb_entry rpcb_entry_map;
|
||||
struct rpcb_entry_list *rpcb_entry_next;
|
||||
};
|
||||
typedef struct rpcb_entry_list rpcb_entry_list;
|
||||
|
||||
typedef rpcb_entry_list *rpcb_entry_list_ptr;
|
||||
|
||||
/*
|
||||
* rpcbind statistics
|
||||
*/
|
||||
|
||||
#define rpcb_highproc_2 RPCBPROC_CALLIT
|
||||
#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
|
||||
#define rpcb_highproc_4 RPCBPROC_GETSTAT
|
||||
#define RPCBSTAT_HIGHPROC 13
|
||||
#define RPCBVERS_STAT 3
|
||||
#define RPCBVERS_4_STAT 2
|
||||
#define RPCBVERS_3_STAT 1
|
||||
#define RPCBVERS_2_STAT 0
|
||||
|
||||
/* Link list of all the stats about getport and getaddr */
|
||||
|
||||
struct rpcbs_addrlist {
|
||||
rpcprog_t prog;
|
||||
rpcvers_t vers;
|
||||
int success;
|
||||
int failure;
|
||||
char *netid;
|
||||
struct rpcbs_addrlist *next;
|
||||
};
|
||||
typedef struct rpcbs_addrlist rpcbs_addrlist;
|
||||
|
||||
/* Link list of all the stats about rmtcall */
|
||||
|
||||
struct rpcbs_rmtcalllist {
|
||||
rpcprog_t prog;
|
||||
rpcvers_t vers;
|
||||
rpcproc_t proc;
|
||||
int success;
|
||||
int failure;
|
||||
int indirect;
|
||||
char *netid;
|
||||
struct rpcbs_rmtcalllist *next;
|
||||
};
|
||||
typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
|
||||
|
||||
typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
|
||||
|
||||
typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
|
||||
|
||||
typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
|
||||
|
||||
struct rpcb_stat {
|
||||
rpcbs_proc info;
|
||||
int setinfo;
|
||||
int unsetinfo;
|
||||
rpcbs_addrlist_ptr addrinfo;
|
||||
rpcbs_rmtcalllist_ptr rmtinfo;
|
||||
};
|
||||
typedef struct rpcb_stat rpcb_stat;
|
||||
|
||||
/*
|
||||
* One rpcb_stat structure is returned for each version of rpcbind
|
||||
* being monitored.
|
||||
*/
|
||||
|
||||
typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
|
||||
|
||||
/*
|
||||
* We don't define netbuf in RPCL, since it would contain structure member
|
||||
* names that would conflict with the definition of struct netbuf in
|
||||
* <tiuser.h>. Instead we merely declare the XDR routine xdr_netbuf() here,
|
||||
* and implement it ourselves in rpc/rpcb_prot.c.
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
|
||||
|
||||
#else /* __STDC__ */
|
||||
extern bool_t xdr_netbuf(XDR *, struct netbuf *);
|
||||
|
||||
#endif
|
||||
|
||||
#define RPCBVERS_3 RPCBVERS
|
||||
#define RPCBVERS_4 RPCBVERS4
|
||||
|
||||
#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
|
||||
|
||||
#else /* ndef _KERNEL */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* A mapping of (program, version, network ID) to address
|
||||
*/
|
||||
struct rpcb {
|
||||
rpcprog_t r_prog; /* program number */
|
||||
rpcvers_t r_vers; /* version number */
|
||||
char *r_netid; /* network id */
|
||||
char *r_addr; /* universal address */
|
||||
char *r_owner; /* owner of the mapping */
|
||||
};
|
||||
typedef struct rpcb RPCB;
|
||||
|
||||
/*
|
||||
* A list of mappings
|
||||
*/
|
||||
struct rpcblist {
|
||||
RPCB rpcb_map;
|
||||
struct rpcblist *rpcb_next;
|
||||
};
|
||||
typedef struct rpcblist RPCBLIST;
|
||||
typedef struct rpcblist *rpcblist_ptr;
|
||||
|
||||
/*
|
||||
* Remote calls arguments
|
||||
*/
|
||||
struct rpcb_rmtcallargs {
|
||||
rpcprog_t prog; /* program number */
|
||||
rpcvers_t vers; /* version number */
|
||||
rpcproc_t proc; /* procedure number */
|
||||
u_int32_t arglen; /* arg len */
|
||||
caddr_t args_ptr; /* argument */
|
||||
xdrproc_t xdr_args; /* XDR routine for argument */
|
||||
};
|
||||
typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
|
||||
|
||||
/*
|
||||
* Remote calls results
|
||||
*/
|
||||
struct rpcb_rmtcallres {
|
||||
char *addr_ptr; /* remote universal address */
|
||||
u_int32_t resultslen; /* results length */
|
||||
caddr_t results_ptr; /* results */
|
||||
xdrproc_t xdr_results; /* XDR routine for result */
|
||||
};
|
||||
typedef struct rpcb_rmtcallres rpcb_rmtcallres;
|
||||
|
||||
struct rpcb_entry {
|
||||
char *r_maddr;
|
||||
char *r_nc_netid;
|
||||
unsigned int r_nc_semantics;
|
||||
char *r_nc_protofmly;
|
||||
char *r_nc_proto;
|
||||
};
|
||||
typedef struct rpcb_entry rpcb_entry;
|
||||
|
||||
/*
|
||||
* A list of addresses supported by a service.
|
||||
*/
|
||||
|
||||
struct rpcb_entry_list {
|
||||
rpcb_entry rpcb_entry_map;
|
||||
struct rpcb_entry_list *rpcb_entry_next;
|
||||
};
|
||||
typedef struct rpcb_entry_list rpcb_entry_list;
|
||||
|
||||
typedef rpcb_entry_list *rpcb_entry_list_ptr;
|
||||
|
||||
/*
|
||||
* rpcbind statistics
|
||||
*/
|
||||
|
||||
#define rpcb_highproc_2 RPCBPROC_CALLIT
|
||||
#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
|
||||
#define rpcb_highproc_4 RPCBPROC_GETSTAT
|
||||
#define RPCBSTAT_HIGHPROC 13
|
||||
#define RPCBVERS_STAT 3
|
||||
#define RPCBVERS_4_STAT 2
|
||||
#define RPCBVERS_3_STAT 1
|
||||
#define RPCBVERS_2_STAT 0
|
||||
|
||||
/* Link list of all the stats about getport and getaddr */
|
||||
|
||||
struct rpcbs_addrlist {
|
||||
rpcprog_t prog;
|
||||
rpcvers_t vers;
|
||||
int success;
|
||||
int failure;
|
||||
char *netid;
|
||||
struct rpcbs_addrlist *next;
|
||||
};
|
||||
typedef struct rpcbs_addrlist rpcbs_addrlist;
|
||||
|
||||
/* Link list of all the stats about rmtcall */
|
||||
|
||||
struct rpcbs_rmtcalllist {
|
||||
rpcprog_t prog;
|
||||
rpcvers_t vers;
|
||||
rpcproc_t proc;
|
||||
int success;
|
||||
int failure;
|
||||
int indirect;
|
||||
char *netid;
|
||||
struct rpcbs_rmtcalllist *next;
|
||||
};
|
||||
typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
|
||||
|
||||
typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
|
||||
|
||||
typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
|
||||
|
||||
typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
|
||||
|
||||
struct rpcb_stat {
|
||||
rpcbs_proc info;
|
||||
int setinfo;
|
||||
int unsetinfo;
|
||||
rpcbs_addrlist_ptr addrinfo;
|
||||
rpcbs_rmtcalllist_ptr rmtinfo;
|
||||
};
|
||||
typedef struct rpcb_stat rpcb_stat;
|
||||
|
||||
/*
|
||||
* One rpcb_stat structure is returned for each version of rpcbind
|
||||
* being monitored.
|
||||
*/
|
||||
|
||||
typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ndef _KERNEL */
|
||||
|
||||
#define RPCBPROG 100000
|
||||
#define RPCBVERS 3
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
#define RPCBPROC_SET 1
|
||||
extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_UNSET 2
|
||||
extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_GETADDR 3
|
||||
extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
|
||||
extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_DUMP 4
|
||||
extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
|
||||
extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
|
||||
#define RPCBPROC_CALLIT 5
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
|
||||
#define RPCBPROC_GETTIME 6
|
||||
extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
|
||||
extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
|
||||
#define RPCBPROC_UADDR2TADDR 7
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
|
||||
#define RPCBPROC_TADDR2UADDR 8
|
||||
extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
|
||||
extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
|
||||
extern int rpcbprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
|
||||
|
||||
#else /* K&R C */
|
||||
#define RPCBPROC_SET 1
|
||||
extern bool_t * rpcbproc_set_3();
|
||||
extern bool_t * rpcbproc_set_3_svc();
|
||||
#define RPCBPROC_UNSET 2
|
||||
extern bool_t * rpcbproc_unset_3();
|
||||
extern bool_t * rpcbproc_unset_3_svc();
|
||||
#define RPCBPROC_GETADDR 3
|
||||
extern char ** rpcbproc_getaddr_3();
|
||||
extern char ** rpcbproc_getaddr_3_svc();
|
||||
#define RPCBPROC_DUMP 4
|
||||
extern rpcblist_ptr * rpcbproc_dump_3();
|
||||
extern rpcblist_ptr * rpcbproc_dump_3_svc();
|
||||
#define RPCBPROC_CALLIT 5
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3();
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
|
||||
#define RPCBPROC_GETTIME 6
|
||||
extern u_int * rpcbproc_gettime_3();
|
||||
extern u_int * rpcbproc_gettime_3_svc();
|
||||
#define RPCBPROC_UADDR2TADDR 7
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3();
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
|
||||
#define RPCBPROC_TADDR2UADDR 8
|
||||
extern char ** rpcbproc_taddr2uaddr_3();
|
||||
extern char ** rpcbproc_taddr2uaddr_3_svc();
|
||||
extern int rpcbprog_3_freeresult ();
|
||||
#endif /* K&R C */
|
||||
#define RPCBVERS4 4
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
|
||||
extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
|
||||
extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
|
||||
extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
|
||||
extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
|
||||
extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
|
||||
#define RPCBPROC_BCAST RPCBPROC_CALLIT
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
|
||||
extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
|
||||
extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
|
||||
extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
|
||||
extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
|
||||
#define RPCBPROC_GETVERSADDR 9
|
||||
extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
|
||||
extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_INDIRECT 10
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
|
||||
#define RPCBPROC_GETADDRLIST 11
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_GETSTAT 12
|
||||
extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
|
||||
extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
|
||||
extern int rpcbprog_4_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
|
||||
|
||||
#else /* K&R C */
|
||||
extern bool_t * rpcbproc_set_4();
|
||||
extern bool_t * rpcbproc_set_4_svc();
|
||||
extern bool_t * rpcbproc_unset_4();
|
||||
extern bool_t * rpcbproc_unset_4_svc();
|
||||
extern char ** rpcbproc_getaddr_4();
|
||||
extern char ** rpcbproc_getaddr_4_svc();
|
||||
extern rpcblist_ptr * rpcbproc_dump_4();
|
||||
extern rpcblist_ptr * rpcbproc_dump_4_svc();
|
||||
#define RPCBPROC_BCAST RPCBPROC_CALLIT
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4();
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
|
||||
extern u_int * rpcbproc_gettime_4();
|
||||
extern u_int * rpcbproc_gettime_4_svc();
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4();
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
|
||||
extern char ** rpcbproc_taddr2uaddr_4();
|
||||
extern char ** rpcbproc_taddr2uaddr_4_svc();
|
||||
#define RPCBPROC_GETVERSADDR 9
|
||||
extern char ** rpcbproc_getversaddr_4();
|
||||
extern char ** rpcbproc_getversaddr_4_svc();
|
||||
#define RPCBPROC_INDIRECT 10
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4();
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
|
||||
#define RPCBPROC_GETADDRLIST 11
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
|
||||
#define RPCBPROC_GETSTAT 12
|
||||
extern rpcb_stat * rpcbproc_getstat_4();
|
||||
extern rpcb_stat * rpcbproc_getstat_4_svc();
|
||||
extern int rpcbprog_4_freeresult ();
|
||||
#endif /* K&R C */
|
||||
|
||||
/* the xdr functions */
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
extern bool_t xdr_rpcb (XDR *, rpcb*);
|
||||
extern bool_t xdr_rp__list (XDR *, rp__list*);
|
||||
extern bool_t xdr_rpcblist_ptr (XDR *, rpcblist_ptr*);
|
||||
extern bool_t xdr_rpcb_rmtcallargs (XDR *, rpcb_rmtcallargs*);
|
||||
extern bool_t xdr_rpcb_rmtcallres (XDR *, rpcb_rmtcallres*);
|
||||
extern bool_t xdr_rpcb_entry (XDR *, rpcb_entry*);
|
||||
extern bool_t xdr_rpcb_entry_list (XDR *, rpcb_entry_list*);
|
||||
extern bool_t xdr_rpcb_entry_list_ptr (XDR *, rpcb_entry_list_ptr*);
|
||||
extern bool_t xdr_rpcbs_addrlist (XDR *, rpcbs_addrlist*);
|
||||
extern bool_t xdr_rpcbs_rmtcalllist (XDR *, rpcbs_rmtcalllist*);
|
||||
extern bool_t xdr_rpcbs_proc (XDR *, rpcbs_proc);
|
||||
extern bool_t xdr_rpcbs_addrlist_ptr (XDR *, rpcbs_addrlist_ptr*);
|
||||
extern bool_t xdr_rpcbs_rmtcalllist_ptr (XDR *, rpcbs_rmtcalllist_ptr*);
|
||||
extern bool_t xdr_rpcb_stat (XDR *, rpcb_stat*);
|
||||
extern bool_t xdr_rpcb_stat_byvers (XDR *, rpcb_stat_byvers);
|
||||
|
||||
#else /* K&R C */
|
||||
extern bool_t xdr_rpcb ();
|
||||
extern bool_t xdr_rp__list ();
|
||||
extern bool_t xdr_rpcblist_ptr ();
|
||||
extern bool_t xdr_rpcb_rmtcallargs ();
|
||||
extern bool_t xdr_rpcb_rmtcallres ();
|
||||
extern bool_t xdr_rpcb_entry ();
|
||||
extern bool_t xdr_rpcb_entry_list ();
|
||||
extern bool_t xdr_rpcb_entry_list_ptr ();
|
||||
extern bool_t xdr_rpcbs_addrlist ();
|
||||
extern bool_t xdr_rpcbs_rmtcalllist ();
|
||||
extern bool_t xdr_rpcbs_proc ();
|
||||
extern bool_t xdr_rpcbs_addrlist_ptr ();
|
||||
extern bool_t xdr_rpcbs_rmtcalllist_ptr ();
|
||||
extern bool_t xdr_rpcb_stat ();
|
||||
extern bool_t xdr_rpcb_stat_byvers ();
|
||||
|
||||
#endif /* K&R C */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !_RPCB_PROT_H_RPCGEN */
|
1939
freebsd/lib/libc/net/nslexer.c
Normal file
1939
freebsd/lib/libc/net/nslexer.c
Normal file
File diff suppressed because it is too large
Load Diff
1810
freebsd/lib/libc/net/nsparser.c
Normal file
1810
freebsd/lib/libc/net/nsparser.c
Normal file
File diff suppressed because it is too large
Load Diff
107
freebsd/lib/libc/net/nsparser.h
Normal file
107
freebsd/lib/libc/net/nsparser.h
Normal file
@@ -0,0 +1,107 @@
|
||||
/* A Bison parser, made by GNU Bison 2.7. */
|
||||
|
||||
/* Bison interface for Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* As a special exception, you may create a larger work that contains
|
||||
part or all of the Bison parser skeleton and distribute that work
|
||||
under terms of your choice, so long as that work isn't itself a
|
||||
parser generator using the skeleton or a modified version thereof
|
||||
as a parser skeleton. Alternatively, if you modify or redistribute
|
||||
the parser skeleton itself, you may (at your option) remove this
|
||||
special exception, which will cause the skeleton and the resulting
|
||||
Bison output files to be licensed under the GNU General Public
|
||||
License without this special exception.
|
||||
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
#ifndef YY__NSYY_NSYY_TAB_H_INCLUDED
|
||||
# define YY__NSYY_NSYY_TAB_H_INCLUDED
|
||||
/* Enabling traces. */
|
||||
#ifndef YYDEBUG
|
||||
# define YYDEBUG 0
|
||||
#endif
|
||||
#if YYDEBUG
|
||||
extern int _nsyydebug;
|
||||
#endif
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||
know about them. */
|
||||
enum yytokentype {
|
||||
NL = 258,
|
||||
SUCCESS = 259,
|
||||
UNAVAIL = 260,
|
||||
NOTFOUND = 261,
|
||||
TRYAGAIN = 262,
|
||||
RETURN = 263,
|
||||
CONTINUE = 264,
|
||||
ERRORTOKEN = 265,
|
||||
STRING = 266
|
||||
};
|
||||
#endif
|
||||
/* Tokens. */
|
||||
#define NL 258
|
||||
#define SUCCESS 259
|
||||
#define UNAVAIL 260
|
||||
#define NOTFOUND 261
|
||||
#define TRYAGAIN 262
|
||||
#define RETURN 263
|
||||
#define CONTINUE 264
|
||||
#define ERRORTOKEN 265
|
||||
#define STRING 266
|
||||
|
||||
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
{
|
||||
/* Line 2058 of yacc.c */
|
||||
#line 58 "freebsd/lib/libc/net/nsparser.y"
|
||||
|
||||
char *str;
|
||||
int mapval;
|
||||
|
||||
|
||||
/* Line 2058 of yacc.c */
|
||||
#line 85 "_nsyy.tab.h"
|
||||
} YYSTYPE;
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
#endif
|
||||
|
||||
extern YYSTYPE _nsyylval;
|
||||
|
||||
#ifdef YYPARSE_PARAM
|
||||
#if defined __STDC__ || defined __cplusplus
|
||||
int _nsyyparse (void *YYPARSE_PARAM);
|
||||
#else
|
||||
int _nsyyparse ();
|
||||
#endif
|
||||
#else /* ! YYPARSE_PARAM */
|
||||
#if defined __STDC__ || defined __cplusplus
|
||||
int _nsyyparse (void);
|
||||
#else
|
||||
int _nsyyparse ();
|
||||
#endif
|
||||
#endif /* ! YYPARSE_PARAM */
|
||||
|
||||
#endif /* !YY__NSYY_NSYY_TAB_H_INCLUDED */
|
2022
freebsd/lib/libipsec/policy_parse.c
Normal file
2022
freebsd/lib/libipsec/policy_parse.c
Normal file
File diff suppressed because it is too large
Load Diff
2057
freebsd/lib/libipsec/policy_token.c
Normal file
2057
freebsd/lib/libipsec/policy_token.c
Normal file
File diff suppressed because it is too large
Load Diff
114
freebsd/lib/libipsec/y.tab.h
Normal file
114
freebsd/lib/libipsec/y.tab.h
Normal file
@@ -0,0 +1,114 @@
|
||||
/* A Bison parser, made by GNU Bison 2.7. */
|
||||
|
||||
/* Bison interface for Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* As a special exception, you may create a larger work that contains
|
||||
part or all of the Bison parser skeleton and distribute that work
|
||||
under terms of your choice, so long as that work isn't itself a
|
||||
parser generator using the skeleton or a modified version thereof
|
||||
as a parser skeleton. Alternatively, if you modify or redistribute
|
||||
the parser skeleton itself, you may (at your option) remove this
|
||||
special exception, which will cause the skeleton and the resulting
|
||||
Bison output files to be licensed under the GNU General Public
|
||||
License without this special exception.
|
||||
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
#ifndef YY__LIBIPSECYY_LIBIPSECYY_TAB_H_INCLUDED
|
||||
# define YY__LIBIPSECYY_LIBIPSECYY_TAB_H_INCLUDED
|
||||
/* Enabling traces. */
|
||||
#ifndef YYDEBUG
|
||||
# define YYDEBUG 0
|
||||
#endif
|
||||
#if YYDEBUG
|
||||
extern int __libipsecyydebug;
|
||||
#endif
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||
know about them. */
|
||||
enum yytokentype {
|
||||
DIR = 258,
|
||||
ACTION = 259,
|
||||
PROTOCOL = 260,
|
||||
MODE = 261,
|
||||
LEVEL = 262,
|
||||
LEVEL_SPECIFY = 263,
|
||||
IPADDRESS = 264,
|
||||
ME = 265,
|
||||
ANY = 266,
|
||||
SLASH = 267,
|
||||
HYPHEN = 268
|
||||
};
|
||||
#endif
|
||||
/* Tokens. */
|
||||
#define DIR 258
|
||||
#define ACTION 259
|
||||
#define PROTOCOL 260
|
||||
#define MODE 261
|
||||
#define LEVEL 262
|
||||
#define LEVEL_SPECIFY 263
|
||||
#define IPADDRESS 264
|
||||
#define ME 265
|
||||
#define ANY 266
|
||||
#define SLASH 267
|
||||
#define HYPHEN 268
|
||||
|
||||
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
{
|
||||
/* Line 2058 of yacc.c */
|
||||
#line 98 "freebsd/lib/libipsec/policy_parse.y"
|
||||
|
||||
u_int num;
|
||||
struct _val {
|
||||
int len;
|
||||
char *buf;
|
||||
} val;
|
||||
|
||||
|
||||
/* Line 2058 of yacc.c */
|
||||
#line 92 "__libipsecyy.tab.h"
|
||||
} YYSTYPE;
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
#endif
|
||||
|
||||
extern YYSTYPE __libipsecyylval;
|
||||
|
||||
#ifdef YYPARSE_PARAM
|
||||
#if defined __STDC__ || defined __cplusplus
|
||||
int __libipsecyyparse (void *YYPARSE_PARAM);
|
||||
#else
|
||||
int __libipsecyyparse ();
|
||||
#endif
|
||||
#else /* ! YYPARSE_PARAM */
|
||||
#if defined __STDC__ || defined __cplusplus
|
||||
int __libipsecyyparse (void);
|
||||
#else
|
||||
int __libipsecyyparse ();
|
||||
#endif
|
||||
#endif /* ! YYPARSE_PARAM */
|
||||
|
||||
#endif /* !YY__LIBIPSECYY_LIBIPSECYY_TAB_H_INCLUDED */
|
110
freebsd/sbin/route/keywords.h
Normal file
110
freebsd/sbin/route/keywords.h
Normal file
@@ -0,0 +1,110 @@
|
||||
#define K_4 1
|
||||
{"4", K_4},
|
||||
#define K_6 2
|
||||
{"6", K_6},
|
||||
#define K_ADD 3
|
||||
{"add", K_ADD},
|
||||
#define K_ATALK 4
|
||||
{"atalk", K_ATALK},
|
||||
#define K_BLACKHOLE 5
|
||||
{"blackhole", K_BLACKHOLE},
|
||||
#define K_CHANGE 6
|
||||
{"change", K_CHANGE},
|
||||
#define K_CLONING 7
|
||||
{"cloning", K_CLONING},
|
||||
#define K_DEL 8
|
||||
{"del", K_DEL},
|
||||
#define K_DELETE 9
|
||||
{"delete", K_DELETE},
|
||||
#define K_DST 10
|
||||
{"dst", K_DST},
|
||||
#define K_EXPIRE 11
|
||||
{"expire", K_EXPIRE},
|
||||
#define K_FIB 12
|
||||
{"fib", K_FIB},
|
||||
#define K_FLUSH 13
|
||||
{"flush", K_FLUSH},
|
||||
#define K_GATEWAY 14
|
||||
{"gateway", K_GATEWAY},
|
||||
#define K_GENMASK 15
|
||||
{"genmask", K_GENMASK},
|
||||
#define K_GET 16
|
||||
{"get", K_GET},
|
||||
#define K_HOST 17
|
||||
{"host", K_HOST},
|
||||
#define K_HOPCOUNT 18
|
||||
{"hopcount", K_HOPCOUNT},
|
||||
#define K_IFACE 19
|
||||
{"iface", K_IFACE},
|
||||
#define K_INTERFACE 20
|
||||
{"interface", K_INTERFACE},
|
||||
#define K_IFA 21
|
||||
{"ifa", K_IFA},
|
||||
#define K_IFP 22
|
||||
{"ifp", K_IFP},
|
||||
#define K_INET 23
|
||||
{"inet", K_INET},
|
||||
#define K_INET6 24
|
||||
{"inet6", K_INET6},
|
||||
#define K_ISO 25
|
||||
{"iso", K_ISO},
|
||||
#define K_LINK 26
|
||||
{"link", K_LINK},
|
||||
#define K_LLINFO 27
|
||||
{"llinfo", K_LLINFO},
|
||||
#define K_LOCK 28
|
||||
{"lock", K_LOCK},
|
||||
#define K_LOCKREST 29
|
||||
{"lockrest", K_LOCKREST},
|
||||
#define K_MASK 30
|
||||
{"mask", K_MASK},
|
||||
#define K_MONITOR 31
|
||||
{"monitor", K_MONITOR},
|
||||
#define K_MTU 32
|
||||
{"mtu", K_MTU},
|
||||
#define K_NET 33
|
||||
{"net", K_NET},
|
||||
#define K_NETMASK 34
|
||||
{"netmask", K_NETMASK},
|
||||
#define K_NOSTATIC 35
|
||||
{"nostatic", K_NOSTATIC},
|
||||
#define K_NOSTICK 36
|
||||
{"nostick", K_NOSTICK},
|
||||
#define K_OSI 37
|
||||
{"osi", K_OSI},
|
||||
#define K_PREFIXLEN 38
|
||||
{"prefixlen", K_PREFIXLEN},
|
||||
#define K_PROTO1 39
|
||||
{"proto1", K_PROTO1},
|
||||
#define K_PROTO2 40
|
||||
{"proto2", K_PROTO2},
|
||||
#define K_PROXY 41
|
||||
{"proxy", K_PROXY},
|
||||
#define K_RECVPIPE 42
|
||||
{"recvpipe", K_RECVPIPE},
|
||||
#define K_REJECT 43
|
||||
{"reject", K_REJECT},
|
||||
#define K_RTT 44
|
||||
{"rtt", K_RTT},
|
||||
#define K_RTTVAR 45
|
||||
{"rttvar", K_RTTVAR},
|
||||
#define K_SA 46
|
||||
{"sa", K_SA},
|
||||
#define K_SENDPIPE 47
|
||||
{"sendpipe", K_SENDPIPE},
|
||||
#define K_SHOW 48
|
||||
{"show", K_SHOW},
|
||||
#define K_SSTHRESH 49
|
||||
{"ssthresh", K_SSTHRESH},
|
||||
#define K_STATIC 50
|
||||
{"static", K_STATIC},
|
||||
#define K_STICKY 51
|
||||
{"sticky", K_STICKY},
|
||||
#define K_WEIGHT 52
|
||||
{"weight", K_WEIGHT},
|
||||
#define K_X25 53
|
||||
{"x25", K_X25},
|
||||
#define K_XNS 54
|
||||
{"xns", K_XNS},
|
||||
#define K_XRESOLVE 55
|
||||
{"xresolve", K_XRESOLVE},
|
Reference in New Issue
Block a user