home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / net / dli_var.h < prev    next >
Text File  |  1992-07-29  |  2KB  |  50 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  *
  7.  **********************************************************************
  8.  * HISTORY
  9.  * 06-May-87  Mike Accetta (mja) at Carnegie-Mellon University
  10.  *    Created.
  11.  *    [ V5.1(F10) ]
  12.  *
  13.  **********************************************************************
  14.  */
  15.  
  16.  
  17.  
  18. /*
  19.  *  Data-link interface address structure.
  20.  *
  21.  *  The standard interface address header plus a pointer to the DLI protocol
  22.  *  specific block.
  23.  */
  24. struct dli_ifaddr {
  25.     struct ifaddr    da_ifa;
  26. #define    da_addr         da_ifa.ifa_addr
  27. #define    da_broadaddr da_ifa.ifa_broadaddr
  28. #define    da_ifp       da_ifa.ifa_ifp
  29.     struct dli_var  *da_dlv;
  30. };
  31.  
  32.  
  33. /*
  34.  *  Per-interface data block
  35.  *
  36.  *  Each network device driver which supports this protocol will allocate
  37.  *  one of these blocks for each network interface with which it is
  38.  *  configured.  The driver will call dli_init() with the appropriate
  39.  *  parameters to initialize the block and DLI protocol for the interface
  40.  *  every time that it is initialized.
  41.  */
  42. struct dli_var {
  43.     struct dli_ifaddr dlv_da;      /* interface address (linked into the */
  44.                   /*  master address list for the interface) */ 
  45.     struct sockproto V_rproto; /* protocol of current input packet */
  46.     struct sockaddr   dlv_rsrc;   /* src addr of current input packet */
  47.     u_char            dlv_hln;    /* hardware address length (bytes) */
  48.     u_char            dlv_lhl;      /* local interface header length (bytes) */
  49. };
  50.