home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / SUN / PPP / SUNOS_OL / DDP_PPP.TAR / vax.diff < prev   
Encoding:
Text File  |  1991-01-03  |  4.3 KB  |  170 lines

  1. *** conf/files.orig    Thu Sep 21 01:16:47 1989
  2. --- conf/files    Thu Sep 21 01:24:21 1989
  3. ***************
  4. *** 2,7 ****
  5. --- 2,8 ----
  6.   net/if.c        standard
  7.   net/if_loop.c        optional loop
  8.   net/if_sl.c        optional sl
  9. + net/if_ppp.c        optional ppp
  10.   net/raw_cb.c        standard
  11.   net/raw_usrreq.c    standard
  12.   net/route.c        standard
  13. *** h/ioctl.h.orig    Thu Sep 21 00:55:07 1989
  14. --- h/ioctl.h    Thu Sep 21 01:02:43 1989
  15. ***************
  16. *** 229,234 ****
  17. --- 229,235 ----
  18.   #define    NTTYDISC    2        /* new tty discipline */
  19.   #define    TABLDISC    3        /* tablet discipline */
  20.   #define    SLIPDISC    4        /* serial IP discipline */
  21. + #define    PPPDISC        5        /* Point-to-Point Protocol */
  22.   
  23.   #define    FIOCLEX        _IO(f, 1)        /* set exclusive use on fd */
  24.   #define    FIONCLEX    _IO(f, 2)        /* remove exclusive use */
  25. ***************
  26. *** 268,272 ****
  27. --- 269,278 ----
  28.   #define    SIOCSARP    _IOW(i, 30, struct arpreq)    /* set arp entry */
  29.   #define    SIOCGARP    _IOWR(i,31, struct arpreq)    /* get arp entry */
  30.   #define    SIOCDARP    _IOW(i, 32, struct arpreq)    /* delete arp entry */
  31. + #define    SIOCSIFMTU    _IOW(i, 127, struct ifreq)    /* set ifnet mtu */
  32. + #define    SIOCGIFMTU    _IOWR(i,126, struct ifreq)    /* get ifnet mtu */
  33. + #define    SIOCSIFASYNCMAP    _IOW(i, 125, struct ifreq)    /* set ppp asyncmap */
  34. + #define    SIOCGIFASYNCMAP    _IOWR(i,124, struct ifreq)    /* get ppp asyncmap */
  35.   
  36.   #endif
  37. No differences encountered
  38. *** net/if.c.orig    Mon Sep 25 01:20:25 1989
  39. --- net/if.c    Mon Sep 25 01:21:31 1989
  40. ***************
  41. *** 326,331 ****
  42. --- 326,340 ----
  43.           ifp->if_metric = ifr->ifr_metric;
  44.           break;
  45.   
  46. +     case SIOCSIFMTU:
  47. +     case SIOCGIFMTU:
  48. +     case SIOCSIFASYNCMAP:
  49. +     case SIOCGIFASYNCMAP:
  50. +         if (!ifp->if_ioctl)
  51. +             return (EOPNOTSUPP);
  52. +         return ((*ifp->if_ioctl)(ifp, cmd, data));
  53. +         break;
  54.       default:
  55.           if (so->so_proto == 0)
  56.               return (EOPNOTSUPP);
  57. *** sys/init_main.c.orig    Thu Sep 21 00:55:41 1989
  58. --- sys/init_main.c    Thu Sep 21 01:08:24 1989
  59. ***************
  60. *** 111,116 ****
  61. --- 111,120 ----
  62.   #if NSL > 0
  63.       slattach();            /* XXX */
  64.   #endif
  65. + #include "ppp.h"
  66. + #if NPPP > 0
  67. +     pppattach();            /* XXX */
  68. + #endif
  69.   #if NLOOP > 0
  70.       loattach();            /* XXX */
  71.   #endif
  72. *** sys/tty_conf.c.orig    Thu Sep 21 00:55:49 1989
  73. --- sys/tty_conf.c    Thu Sep 21 01:09:50 1989
  74. ***************
  75. *** 32,39 ****
  76. --- 32,45 ----
  77.   #if NSL > 0
  78.   int    slopen(),slclose(),slinput(),sltioctl(),slstart();
  79.   #endif
  80. + #include "ppp.h"
  81. + #if NPPP > 0
  82. + int    pppopen(),pppclose(),pppread(),pppwrite(),pppinput();
  83. + int    ppptioctl(),pppstart(),pppselect();
  84. + #endif
  85.   
  86.   
  87.   struct    linesw linesw[] =
  88.   {
  89.       ttyopen, ttylclose, ttread, ttwrite, nullioctl,    /* 0- OTTYDISC */
  90. ***************
  91. *** 60,65 ****
  92. --- 66,84 ----
  93.   #else
  94.       nodev, nodev, nodev, nodev, nodev,
  95.       nodev, nodev, nodev, nodev, nodev,
  96. + #endif
  97. + #if NPPP > 0
  98. +     {
  99. +     pppopen, pppclose, pppread, pppwrite, ppptioctl,
  100. +     pppinput, nodev, nulldev, pppstart, ttymodem,    /* 5- PPPDISC */
  101. +     pppselect
  102. +     },
  103. + #else
  104. +     {
  105. +     nodev, nodev, nodev, nodev, nodev,
  106. +     nodev, nodev, nodev, nodev, nodev,
  107. +     nodev,
  108. +     },
  109.   #endif
  110.   };
  111.   
  112. *** sys/tty_pty.c.orig    Thu Sep 21 00:55:56 1989
  113. --- sys/tty_pty.c    Thu Sep 21 01:13:21 1989
  114. ***************
  115. *** 478,483 ****
  116. --- 478,491 ----
  117.       register struct pt_ioctl *pti = &pt_ioctl[minor(dev)];
  118.       int stop, error;
  119.       extern ttyinput();
  120. + #include "sl.h"
  121. + #if NSL > 0
  122. +     extern slinput();
  123. + #endif
  124. + #include "ppp.h"
  125. + #if NPPP > 0
  126. +     extern pppinput();
  127. + #endif
  128.   
  129.       /*
  130.        * IF CONTROLLER STTY THEN MUST FLUSH TO PREVENT A HANG.
  131. ***************
  132. *** 526,531 ****
  133. --- 534,542 ----
  134.                   ;
  135.               break;
  136.           }
  137. +     error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag);
  138. +     if (error >= 0)
  139. +         return (error);
  140.       error = ttioctl(tp, cmd, data, flag);
  141.       /*
  142.        * Since we use the tty queues internally,
  143. ***************
  144. *** 533,539 ****
  145.        * the queues.  We can't tell anything about the discipline
  146.        * from here...
  147.        */
  148. !     if (linesw[tp->t_line].l_rint != ttyinput) {
  149.           (*linesw[tp->t_line].l_close)(tp);
  150.           tp->t_line = 0;
  151.           (void)(*linesw[tp->t_line].l_open)(dev, tp);
  152. --- 544,557 ----
  153.        * the queues.  We can't tell anything about the discipline
  154.        * from here...
  155.        */
  156. !     if (linesw[tp->t_line].l_rint != ttyinput
  157. ! #if NSL > 0
  158. !         && linesw[tp->t_line].l_rint != slinput
  159. ! #endif
  160. ! #if NPPP > 0
  161. !         && linesw[tp->t_line].l_rint != pppinput
  162. ! #endif
  163. !         ) {
  164.           (*linesw[tp->t_line].l_close)(tp);
  165.           tp->t_line = 0;
  166.           (void)(*linesw[tp->t_line].l_open)(dev, tp);
  167.