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/netipx/ipx_if.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 /*-
    2  * Copyright (c) 1984, 1985, 1986, 1987, 1993
    3  *      The Regents of the University of California.  All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 4. Neither the name of the University nor the names of its contributors
   14  *    may be used to endorse or promote products derived from this software
   15  *    without specific prior written permission.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   27  * SUCH DAMAGE.
   28 
   29  * Copyright (c) 1995, Mike Mitchell
   30  *
   31  * Redistribution and use in source and binary forms, with or without
   32  * modification, are permitted provided that the following conditions
   33  * are met:
   34  * 1. Redistributions of source code must retain the above copyright
   35  *    notice, this list of conditions and the following disclaimer.
   36  * 2. Redistributions in binary form must reproduce the above copyright
   37  *    notice, this list of conditions and the following disclaimer in the
   38  *    documentation and/or other materials provided with the distribution.
   39  * 3. All advertising materials mentioning features or use of this software
   40  *    must display the following acknowledgement:
   41  *      This product includes software developed by the University of
   42  *      California, Berkeley and its contributors.
   43  * 4. Neither the name of the University nor the names of its contributors
   44  *    may be used to endorse or promote products derived from this software
   45  *    without specific prior written permission.
   46  *
   47  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   48  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   49  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   50  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   51  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   52  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   53  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   54  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   55  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   56  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   57  * SUCH DAMAGE.
   58  *
   59  *      @(#)ipx_if.h
   60  *
   61  * $FreeBSD: releng/7.4/sys/netipx/ipx_if.h 170664 2007-06-13 14:01:43Z rwatson $
   62  */
   63 
   64 #ifndef _NETIPX_IPX_IF_H_
   65 #define _NETIPX_IPX_IF_H_
   66 
   67 /*
   68  * Interface address.  One of these structures
   69  * is allocated for each interface with an internet address.
   70  * The ifaddr structure contains the protocol-independent part
   71  * of the structure and is assumed to be first.
   72  */
   73 
   74 struct ipx_ifaddr {
   75         struct  ifaddr ia_ifa;          /* protocol-independent info */
   76 #define ia_ifp          ia_ifa.ifa_ifp
   77 #define ia_flags        ia_ifa.ifa_flags
   78         struct  ipx_ifaddr *ia_next;    /* next in list of ipx addresses */
   79         struct  sockaddr_ipx ia_addr;   /* reserve space for my address */
   80         struct  sockaddr_ipx ia_dstaddr;        /* space for my broadcast address */
   81 #define ia_broadaddr    ia_dstaddr
   82         struct  sockaddr_ipx ia_netmask;        /* space for my network mask */
   83 };
   84 
   85 struct  ipx_aliasreq {
   86         char    ifra_name[IFNAMSIZ];            /* if name, e.g. "en0" */
   87         struct  sockaddr_ipx ifra_addr;
   88         struct  sockaddr_ipx ifra_broadaddr;
   89 #define ifra_dstaddr ifra_broadaddr
   90 };
   91 /*
   92  * Given a pointer to an ipx_ifaddr (ifaddr),
   93  * return a pointer to the addr as a sockadd_ipx.
   94  */
   95 
   96 #define IA_SIPX(ia) (&(((struct ipx_ifaddr *)(ia))->ia_addr))
   97 
   98 /* This is not the right place for this but where is? */
   99 
  100 #define ETHERTYPE_IPX_8022      0x00e0  /* Ethernet_802.2 */
  101 #define ETHERTYPE_IPX_8023      0x0000  /* Ethernet_802.3 */
  102 #define ETHERTYPE_IPX_II        0x8137  /* Ethernet_II */
  103 #define ETHERTYPE_IPX_SNAP      0x8137  /* Ethernet_SNAP */
  104 
  105 #define ETHERTYPE_IPX           0x8137  /* Only  Ethernet_II Available */
  106 
  107 #ifdef  _KERNEL
  108 extern struct   ipx_ifaddr *ipx_ifaddr;
  109 
  110 struct ipx_ifaddr       *ipx_iaonnetof(struct ipx_addr *dst);
  111 #endif
  112 
  113 #endif /* !_NETIPX_IPX_IF_H_ */

Cache object: 330cdccc1df2085e89a65b151af654fe


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