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/netiso/tp_var.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: tp_var.h,v 1.9 2005/02/26 22:39:49 perry Exp $ */
    2 
    3 /*-
    4  * Copyright (c) 1995 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Christos Zoulas.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  * 3. All advertising materials mentioning features or use of this software
   19  *    must display the following acknowledgement:
   20  *      This product includes software developed by the NetBSD
   21  *      Foundation, Inc. and its contributors.
   22  * 4. Neither the name of The NetBSD Foundation nor the names of its
   23  *    contributors may be used to endorse or promote products derived
   24  *    from this software without specific prior written permission.
   25  *
   26  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   27  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   28  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   29  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   30  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   31  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   32  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   33  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   34  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   35  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   36  * POSSIBILITY OF SUCH DAMAGE.
   37  */
   38 
   39 #ifdef _KERNEL
   40 struct isopcb;
   41 struct mbuf;
   42 struct sockaddr_iso;
   43 struct tp_pcb;
   44 struct sockaddr_in;
   45 struct iso_addr;
   46 struct tp_conn_param;
   47 struct tp_event;
   48 struct inpcb;
   49 struct route;
   50 struct pklcd;
   51 struct sockaddr;
   52 struct x25_packet;
   53 struct in_addr;
   54 
   55 
   56 /* tp_cons.c */
   57 int tpcons_pcbconnect (void *, struct mbuf *);
   58 void *tpcons_ctlinput (int, struct sockaddr *, void *);
   59 void tpcons_input (struct mbuf *, ...);
   60 int tpcons_output (struct mbuf *, ...);
   61 int tpcons_output_dg (struct mbuf *, ...);
   62 
   63 /* tp_driver.c */
   64 int tp_driver   (struct tp_pcb *, struct tp_event *);
   65 
   66 /* tp_emit.c */
   67 int tp_emit (int, struct tp_pcb *, SeqNum, u_int, struct mbuf *);
   68 int tp_error_emit (int, u_long, struct sockaddr_iso *,
   69                        struct sockaddr_iso *, struct mbuf *, int,
   70                        struct tp_pcb *, caddr_t,
   71                        int (*) (struct mbuf *, ...));
   72 
   73 /* tp_inet.c */
   74 void in_getsufx  (void *, u_short *, caddr_t, int);
   75 void in_putsufx (void *, caddr_t, int, int);
   76 void in_recycle_tsuffix (void *);
   77 void in_putnetaddr (void *, struct sockaddr *, int);
   78 int in_cmpnetaddr (void *, struct sockaddr *, int);
   79 void in_getnetaddr (void *, struct mbuf *, int);
   80 int tpip_mtu    (void *);
   81 int tpip_output (struct mbuf *, ...);
   82 int tpip_output_dg (struct mbuf *, ...);
   83 void tpip_input (struct mbuf *, ...);
   84 void tpin_quench (struct inpcb *, int);
   85 void *tpip_ctlinput (int, struct sockaddr *, void *);
   86 void tpin_abort (struct inpcb *, int);
   87 void dump_inaddr (struct sockaddr_in *);
   88 
   89 /* tp_input.c */
   90 struct mbuf    *tp_inputprep (struct mbuf *);
   91 void tp_input   (struct mbuf *, ...);
   92 int tp_headersize (int, struct tp_pcb *);
   93 
   94 /* tp_iso.c */
   95 void iso_getsufx (void *, u_short *, caddr_t, int);
   96 void iso_putsufx (void *, caddr_t, int, int);
   97 void iso_recycle_tsuffix (void *);
   98 void iso_putnetaddr (void *, struct sockaddr *, int);
   99 int iso_cmpnetaddr (void *, struct sockaddr *, int);
  100 void iso_getnetaddr (void *, struct mbuf *, int);
  101 int tpclnp_mtu  (void *);
  102 int tpclnp_output (struct mbuf *, ...);
  103 int tpclnp_output_dg (struct mbuf *, ...);
  104 void tpclnp_input (struct mbuf *, ...);
  105 void iso_rtchange (struct isopcb *);
  106 void tpiso_decbit (struct isopcb *);
  107 void tpiso_quench (struct isopcb *);
  108 void *tpclnp_ctlinput (int, struct sockaddr *, void *);
  109 void tpclnp_ctlinput1 (int, struct iso_addr *);
  110 void tpiso_abort (struct isopcb *);
  111 void tpiso_reset (struct isopcb *);
  112 
  113 /* tp_meas.c */
  114 void Tpmeas (u_int, u_int, struct timeval *, u_int, u_int, u_int);
  115 
  116 /* tp_output.c */
  117 int tp_consistency (struct tp_pcb *, u_int, struct tp_conn_param *);
  118 int tp_ctloutput (int, struct socket *, int, int, struct mbuf **);
  119 
  120 /* tp_pcb.c */
  121 void tp_init    (void);
  122 void tp_soisdisconnecting (struct socket *);
  123 void tp_soisdisconnected (struct tp_pcb *);
  124 void tp_freeref (RefNum);
  125 u_long tp_getref (struct tp_pcb *);
  126 int tp_set_npcb (struct tp_pcb *);
  127 int tp_attach   (struct socket *, int);
  128 void tp_detach  (struct tp_pcb *);
  129 int tp_tselinuse (int, caddr_t, struct sockaddr_iso *, int);
  130 int tp_pcbbind  (void *, struct mbuf *, struct proc *);
  131 
  132 /* tp_subr.c */
  133 int tp_goodXack (struct tp_pcb *, SeqNum);
  134 void tp_rtt_rtv (struct tp_pcb *);
  135 int tp_goodack  (struct tp_pcb *, u_int, SeqNum, u_int);
  136 int tp_sbdrop   (struct tp_pcb *, SeqNum);
  137 void tp_send    (struct tp_pcb *);
  138 int tp_packetize (struct tp_pcb *, struct mbuf *, int);
  139 int tp_stash    (struct tp_pcb *, struct tp_event *);
  140 void tp_rsyflush (struct tp_pcb *);
  141 void tp_rsyset   (struct tp_pcb *);
  142 void tpsbcheck   (struct tp_pcb *, int);
  143 
  144 /* tp_subr2.c */
  145 void tp_local_credit (struct tp_pcb *);
  146 int tp_protocol_error (struct tp_event *, struct tp_pcb *);
  147 void tp_drain   (void);
  148 void tp_indicate (int, struct tp_pcb *, u_int);
  149 void tp_getoptions (struct tp_pcb *);
  150 void tp_recycle_tsuffix (void *);
  151 void tp_quench  (struct inpcb *, int);
  152 void tp_netcmd   (struct tp_pcb *, int);
  153 int tp_mask_to_num (u_char);
  154 void tp_mss     (struct tp_pcb *, int);
  155 int tp_route_to (struct mbuf *, struct tp_pcb *, caddr_t);
  156 void tp0_stash  (struct tp_pcb *, struct tp_event *);
  157 void tp0_openflow (struct tp_pcb *);
  158 int tp_setup_perf (struct tp_pcb *);
  159 void dump_addr   (struct sockaddr *);
  160 void Dump_buf    (caddr_t, int);
  161 
  162 /* tp_timer.c */
  163 void tp_timerinit (void);
  164 void tp_etimeout (struct tp_pcb *, int, int);
  165 void tp_euntimeout (struct tp_pcb *, int);
  166 void tp_slowtimo (void);
  167 void tp_data_retrans (struct tp_pcb *);
  168 void tp_fasttimo (void);
  169 void tp_ctimeout (struct tp_pcb *, int, int);
  170 void tp_ctimeout_MIN (struct tp_pcb *, int, int);
  171 void tp_cuntimeout (struct tp_pcb *, int);
  172 
  173 /* tp_trace.c */
  174 void tpTrace    (struct tp_pcb *, u_int, u_int, u_int, u_int, u_int, u_int);
  175 
  176 /* tp_usrreq.c */
  177 void dump_mbuf  (struct mbuf *, char *);
  178 int tp_rcvoob   (struct tp_pcb *, struct socket *, struct mbuf *,
  179                      int *, int);
  180 int tp_sendoob  (struct tp_pcb *, struct socket *, struct mbuf *, int *);
  181 int tp_usrreq   (struct socket *, int, struct mbuf *, struct mbuf *,
  182                      struct mbuf *, struct proc *);
  183 void tp_ltrace   (struct socket *, struct uio *);
  184 int tp_confirm  (struct tp_pcb *);
  185 int tp_snd_control (struct mbuf *, struct socket *, struct mbuf **);
  186 
  187 #ifdef TPCONS
  188 /* if_cons.c */
  189 void nibble_copy (char *, unsigned, char *, unsigned, int);
  190 int nibble_match (char *, unsigned, char *, unsigned, int);
  191 void cons_init (void);
  192 int tp_incoming (struct mbuf *, void *);
  193 int cons_tpinput (struct mbuf *, void *);
  194 int cons_connect (struct isopcb *);
  195 void *cons_ctlinput (int, struct sockaddr *, void *);
  196 int find_error_reason (struct x25_packet *);
  197 #endif
  198 
  199 #endif

Cache object: abbbacc1b7fc8e441e85ab2d467d1c2e


[ 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.