Ipifc

Ipifc

概要

実装

  210: struct Ipifc
  211: {
  212:         RWlock;
  213:         
  214:         Conv   *conv;            /* link to its conversation structure */
  215:         char   dev[64];  /* device we're attached to */
  216:         Medium *m;             /* Media pointer */
  217:         int    maxtu;             /* Maximum transfer unit */
  218:         int    mintu;             /* Minumum tranfer unit */
  219:         int    mbps;              /* megabits per second */
  220:         void   *arg;             /* medium specific */
  221:         int    reassemble;        /* reassemble IP packets before forwarding */
  222: 
  223:         /* these are used so that we can unbind on the fly */
  224:         Lock   idlock;
  225:         uchar  ifcid;           /* incremented each 'bind/unbind/add/remove' */
  226:         int    ref;               /* number of proc's using this ipifc */
  227:         Rendez wait;           /* where unbinder waits for ref == 0 */
  228:         int    unbinding;
  229: 
  230:         uchar  mac[MAClen];     /* MAC address */
  231: 
  232:         Iplifc *lifc;          /* logical interfaces on this physical one */
  233: 
  234:         ulong  in, out; /* message statistics */
  235:         ulong  inerr, outerr;   /* ... */
  236: 
  237:         uchar  sendra6; /* == 1 => send router advs on this ifc */
  238:         uchar  recvra6; /* == 1 => recv router advs on this ifc */
  239:         Routerparams rp;       /* router parameters as in RFC 2461, pp.40--43. 
  240:                                         used only if node is router */
  241: };