The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/ipkdb/ipkdb.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: ipkdb.h,v 1.4 2000/03/22 20:58:29 ws Exp $     */
    2 
    3 /*
    4  * Copyright (C) 1993-2000 Wolfgang Solfrank.
    5  * Copyright (C) 1993-2000 TooLs GmbH.
    6  * All rights reserved.
    7  *
    8  * Redistribution and use in source and binary forms, with or without
    9  * modification, are permitted provided that the following conditions
   10  * are met:
   11  * 1. Redistributions of source code must retain the above copyright
   12  *    notice, this list of conditions and the following disclaimer.
   13  * 2. Redistributions in binary form must reproduce the above copyright
   14  *    notice, this list of conditions and the following disclaimer in the
   15  *    documentation and/or other materials provided with the distribution.
   16  * 3. All advertising materials mentioning features or use of this software
   17  *    must display the following acknowledgement:
   18  *      This product includes software developed by TooLs GmbH.
   19  * 4. The name of TooLs GmbH may not be used to endorse or promote products
   20  *    derived from this software without specific prior written permission.
   21  *
   22  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
   23  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   24  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   25  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
   27  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
   28  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
   29  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
   30  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
   31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   32  */
   33 #ifndef _IPKDB_H
   34 #define _IPKDB_H
   35 
   36 extern int ipkdbpanic;
   37 
   38 #define IPKDBPORT       1138    /* debugging port */
   39 
   40 struct ipkdb_if {
   41         /* These fields are used by IPKDB itself: */
   42         u_int8_t        myenetaddr[6];  /* to be filled by the driver */
   43         u_int8_t        myinetaddr[4];
   44         u_int8_t        hisenetaddr[6];
   45         u_int8_t        hisinetaddr[4];
   46         u_int16_t       hisport;
   47         u_char          pkt[1500];
   48         int             pktlen;
   49         u_int32_t       seq;
   50         u_int32_t       id;
   51         int             mtu;
   52         u_char          ass[1500];
   53         u_int8_t        assbit[1500/8/8 + 1];
   54         u_int16_t       asslen;
   55         u_int8_t        flags;          /* driver marks IPKDB_MYHW here */
   56         /* Data from here on is to be filled by the driver */
   57         char            *name;
   58         void            *port;
   59         void            (*start) __P((struct ipkdb_if *));
   60         void            (*leave) __P((struct ipkdb_if *));
   61         int             (*receive) __P((struct ipkdb_if *, u_char *, int));
   62         void            (*send) __P((struct ipkdb_if *, u_char *, int));
   63 };
   64 
   65 /* flags: */
   66 #define IPKDB_MYHW      0x01
   67 #define IPKDB_MYIP      0x02
   68 #define IPKDB_HISHW     0x04
   69 #define IPKDB_HISIP     0x08
   70 #define IPKDB_CONNECTED 0x10
   71 
   72 /*
   73  * Interface routines, to be called by machine dependent code.
   74  */
   75 extern void ipkdb_init __P((void));
   76 extern void ipkdb_connect __P((int));
   77 extern void ipkdb_panic __P((void));
   78 extern int ipkdbcmds __P((void));
   79 /* Return values from ipkdbcmds: */
   80 #define IPKDB_CMD_RUN   0
   81 #define IPKDB_CMD_STEP  1
   82 #define IPKDB_CMD_EXIT  2
   83 
   84 /* To be called by udp_input on receipt of a possible debugging packet */
   85 struct in_addr;
   86 struct mbuf;
   87 extern int checkipkdb __P((struct in_addr *, u_short, u_short,
   88                         struct mbuf *, int, int));
   89 
   90 /*
   91  * Interface routines, to be called by ipkdb itself.
   92  */
   93 extern int ipkdbifinit __P((struct ipkdb_if *));
   94 
   95 /*
   96  * Utilities (used to avoid calling system routines during debugging).
   97  */
   98 extern void ipkdbcopy __P((void *, void *, int));
   99 extern void ipkdbzero __P((void *, int));
  100 extern int ipkdbcmp __P((void *, void *, int));
  101 
  102 /*
  103  * Machine dependent routines for IPKDB.
  104  */
  105 extern void ipkdbinit __P((void));
  106 extern void ipkdb_trap __P((void));
  107 extern int ipkdb_poll __P((void));
  108 
  109 extern int ipkdbif_init __P((struct ipkdb_if *));
  110 
  111 extern int ipkdbfbyte __P((u_char *));
  112 extern int ipkdbsbyte __P((u_char *, int));
  113 
  114 #endif  /* _IPKDB_H */

Cache object: ca73428a2b78f7094d362a2cc2430cba


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.