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-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: tp_var.h,v 1.18 2008/08/06 15:01:23 plunky 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  *
   19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   29  * POSSIBILITY OF SUCH DAMAGE.
   30  */
   31 
   32 #ifndef _NETISO_TP_VAR_H_
   33 #define _NETISO_TP_VAR_H_
   34 
   35 #ifdef _KERNEL
   36 struct isopcb;
   37 struct mbuf;
   38 struct sockaddr_iso;
   39 struct tp_pcb;
   40 struct sockaddr_in;
   41 struct iso_addr;
   42 struct tp_conn_param;
   43 struct tp_event;
   44 struct inpcb;
   45 struct route;
   46 struct pklcd;
   47 struct sockaddr;
   48 struct x25_packet;
   49 struct in_addr;
   50 
   51 
   52 /* tp_cons.c */
   53 int tpcons_output (struct mbuf *, ...);
   54 
   55 /* tp_driver.c */
   56 int tp_driver   (struct tp_pcb *, struct tp_event *);
   57 
   58 /* tp_emit.c */
   59 int tp_emit (int, struct tp_pcb *, SeqNum, u_int, struct mbuf *);
   60 int tp_error_emit (int, u_long, struct sockaddr_iso *,
   61                        struct sockaddr_iso *, struct mbuf *, int,
   62                        struct tp_pcb *, void *,
   63                        int (*) (struct mbuf *, ...));
   64 
   65 /* tp_inet.c */
   66 void in_getsufx  (void *, u_short *, void *, int);
   67 void in_putsufx (void *, void *, int, int);
   68 void in_recycle_tsuffix (void *);
   69 void in_putnetaddr (void *, struct sockaddr *, int);
   70 int in_cmpnetaddr (void *, struct sockaddr *, int);
   71 void in_getnetaddr (void *, struct mbuf *, int);
   72 int tpip_mtu    (void *);
   73 int tpip_output (struct mbuf *, ...);
   74 int tpip_output_dg (struct mbuf *, ...);
   75 void tpip_input (struct mbuf *, ...);
   76 void tpin_quench (struct inpcb *, int);
   77 void *tpip_ctlinput(int, const struct sockaddr *, void *);
   78 void tpin_abort (struct inpcb *, int);
   79 void dump_inaddr (struct sockaddr_in *);
   80 
   81 /* tp_input.c */
   82 struct mbuf    *tp_inputprep (struct mbuf *);
   83 void tp_input   (struct mbuf *, ...);
   84 int tp_headersize (int, struct tp_pcb *);
   85 
   86 /* tp_iso.c */
   87 void iso_getsufx (void *, u_short *, void *, int);
   88 void iso_putsufx (void *, void *, int, int);
   89 void iso_recycle_tsuffix (void *);
   90 void iso_putnetaddr (void *, struct sockaddr *, int);
   91 int iso_cmpnetaddr (void *, struct sockaddr *, int);
   92 void iso_getnetaddr (void *, struct mbuf *, int);
   93 int tpclnp_mtu  (void *);
   94 int tpclnp_output (struct mbuf *, ...);
   95 int tpclnp_output_dg (struct mbuf *, ...);
   96 void tpclnp_input (struct mbuf *, ...);
   97 void iso_rtchange (struct isopcb *);
   98 void tpiso_decbit (struct isopcb *);
   99 void tpiso_quench (struct isopcb *);
  100 void *tpclnp_ctlinput(int, const struct sockaddr *, void *);
  101 void tpclnp_ctlinput1 (int, struct iso_addr *);
  102 void tpiso_abort (struct isopcb *);
  103 void tpiso_reset (struct isopcb *);
  104 
  105 /* tp_meas.c */
  106 void Tpmeas (u_int, u_int, struct timeval *, u_int, u_int, u_int);
  107 
  108 /* tp_output.c */
  109 int tp_consistency (struct tp_pcb *, u_int, struct tp_conn_param *);
  110 int tp_ctloutput (int, struct socket *, struct sockopt *);
  111 
  112 /* tp_pcb.c */
  113 void tp_init    (void);
  114 void tp_soisdisconnecting (struct socket *);
  115 void tp_soisdisconnected (struct tp_pcb *);
  116 void tp_freeref (RefNum);
  117 u_long tp_getref (struct tp_pcb *);
  118 int tp_set_npcb (struct tp_pcb *);
  119 int tp_attach   (struct socket *, int);
  120 void tp_detach  (struct tp_pcb *);
  121 int tp_tselinuse(int, const char *, struct sockaddr_iso *, int);
  122 int tp_pcbbind  (void *, struct mbuf *, struct lwp *);
  123 
  124 /* tp_subr.c */
  125 int tp_goodXack (struct tp_pcb *, SeqNum);
  126 void tp_rtt_rtv (struct tp_pcb *);
  127 int tp_goodack  (struct tp_pcb *, u_int, SeqNum, u_int);
  128 int tp_sbdrop   (struct tp_pcb *, SeqNum);
  129 void tp_send    (struct tp_pcb *);
  130 int tp_packetize (struct tp_pcb *, struct mbuf *, int);
  131 int tp_stash    (struct tp_pcb *, struct tp_event *);
  132 void tp_rsyflush (struct tp_pcb *);
  133 void tp_rsyset   (struct tp_pcb *);
  134 void tpsbcheck   (struct tp_pcb *, int);
  135 
  136 /* tp_subr2.c */
  137 void tp_local_credit (struct tp_pcb *);
  138 int tp_protocol_error (struct tp_event *, struct tp_pcb *);
  139 void tp_drain   (void);
  140 void tp_indicate (int, struct tp_pcb *, u_int);
  141 void tp_getoptions (struct tp_pcb *);
  142 void tp_recycle_tsuffix (void *);
  143 void tp_quench  (struct inpcb *, int);
  144 void tp_netcmd   (struct tp_pcb *, int);
  145 int tp_mask_to_num (u_char);
  146 void tp_mss     (struct tp_pcb *, int);
  147 int tp_route_to (struct mbuf *, struct tp_pcb *, void *);
  148 void tp0_stash  (struct tp_pcb *, struct tp_event *);
  149 void tp0_openflow (struct tp_pcb *);
  150 int tp_setup_perf (struct tp_pcb *);
  151 void dump_addr   (struct sockaddr *);
  152 
  153 /* tp_timer.c */
  154 void tp_timerinit (void);
  155 void tp_etimeout (struct tp_pcb *, int, int);
  156 void tp_euntimeout (struct tp_pcb *, int);
  157 void tp_slowtimo (void);
  158 void tp_data_retrans (struct tp_pcb *);
  159 void tp_fasttimo (void);
  160 void tp_ctimeout (struct tp_pcb *, int, int);
  161 void tp_ctimeout_MIN (struct tp_pcb *, int, int);
  162 void tp_cuntimeout (struct tp_pcb *, int);
  163 
  164 /* tp_trace.c */
  165 void tpTrace    (struct tp_pcb *, u_int, u_int, u_int, u_int, u_int, u_int);
  166 
  167 /* tp_usrreq.c */
  168 void dump_mbuf  (struct mbuf *, const char *);
  169 int tp_rcvoob   (struct tp_pcb *, struct socket *, struct mbuf *,
  170                      int *, int);
  171 int tp_sendoob  (struct tp_pcb *, struct socket *, struct mbuf *, int *);
  172 int tp_usrreq   (struct socket *, int, struct mbuf *, struct mbuf *,
  173                      struct mbuf *, struct lwp *);
  174 void tp_ltrace   (struct socket *, struct uio *);
  175 int tp_confirm  (struct tp_pcb *);
  176 int tp_snd_control (struct mbuf *, struct socket *, struct mbuf **);
  177 
  178 #endif
  179 
  180 #endif /* !_NETISO_TP_VAR_H_ */

Cache object: b345aa68e7efcc5ef435b229a54fdcbc


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