home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / SUN / PPP / SUNOS_OL / PPP_1_2.TAR / NOTES < prev    next >
Encoding:
Text File  |  1993-03-04  |  2.8 KB  |  98 lines

  1. General notes:
  2.  
  3.     To call another PPP system, it's helpful to use the "chat" program
  4.     to dial the modem.  I use the following command line:
  5.  
  6.     pppd connect 'chat "" ATDT5551212 CONNECT "" ogin: ppp' netmask 255.255.255.0 /dev/ttya 38400
  7.  
  8.     which says, "dial 555-1212, watch for 'login:' then type 'ppp'". It
  9.     sets the netmask and uses ttya at 38400.
  10.  
  11.     The "other" side could be running a pppd like:
  12.  
  13.     pppd passive netmask 255.255.255.0 /dev/ttya 38400
  14.  
  15. Debugging notes:
  16.  
  17.     SunOS /Streams:
  18.  
  19.     Be sure to leave in the PPP_STATS define (in ppp_if.c) and
  20.     DEBUGS defines in both ppp_if.c and ppp_async.c    to enable the
  21.     use of slstats and kernel debugging if you need    it in the future.
  22.  
  23.     If you experience problems, you may wish to enable the streams debug
  24.     statements in the kernel, you can do this using adb.
  25.  
  26.     % adb -w -k /vmunix /dev/mem
  27.  
  28.         ppp_if_debug
  29.         / D
  30.         / W 1
  31.         ppp_async_debug
  32.         / D
  33.         / W 1
  34.         ^D
  35.  
  36.     Error messages and diagnostics will show up in /usr/adm/messages.
  37.  
  38.     You can also enable debugging of the incoming raw PPP frames that
  39.     are passed from the ppp_async streams module to the ppp_if
  40.         module.  Note that doing so will add quite a bit of 
  41.         overhead to each incoming frame and can cause timeouts to
  42.         occur in the higher level PPP functions.  Because of this,
  43.         you should limit the number of bytes to be printed.  If a
  44.         frame is received that is larger that the specified maximum,  a ">"
  45.         character is appended in the log.  The maximum number of bytes
  46.         per frame that will be logged can be set by changing the value
  47.         of ppp_async_input_debug in the kernel.  A value of zero turns
  48.         off the logging altogether. Do the following to enable this feature: 
  49.  
  50.     % adb -w -k /vmunix /dev/mem
  51.  
  52.         ppp_async_input_debug
  53.         / D
  54.         / W 80  (or however many bytes (in hex) you wish to dump)
  55.         ^D
  56.  
  57.  
  58.     If you experience problems 'uploading' binary files from your PPP
  59.     client through the PPP gateway, you may wish to alter the asyncmap
  60.     of the gateway using the -as <hex map value> on the ppp command line.
  61.  
  62.  
  63. Bugs to:
  64.  
  65.     brad@fcr.com
  66.     Brad Parker
  67.     FCR Software, Inc.
  68.     398 Columbus Ave, suite 201
  69.     Boston, Ma 02116
  70.  
  71. Thanks to:
  72.  
  73.     Greg Christy (gmc@quotron.com)
  74.     Drew D. Perkins (ddp@andrew.cmu.edu)
  75.     Rick Adams (rick@seismo.ARPA)
  76.     Chris Torek (chris@mimsy.umd.edu, umcp-cs!chris).
  77.  
  78.  
  79. Copyrights:
  80.  
  81.     Copyright Restrictions (applies to ppp_if.c, ppp_async.c and
  82.     #ifdef STREAMS changes in the ppp.c and related modules)
  83.  
  84.     This code is Copyright (C) 1989, 1990 By Brad K. Clements, 
  85.     All Rights Reserved.
  86.  
  87.     You may use this code for your personal use, to provide a non-profit
  88.     service to others, or to use as a test platform for a commercial
  89.     implementation.
  90.  
  91.     You may NOT use this code in a commercial product, nor to provide a 
  92.     commercial service, nor may you sell this code without express
  93.     written permission of the author.
  94.  
  95.     Otherwise, Enjoy!
  96.  
  97.     
  98.