[BACK]Return to telnet.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / telnet

Diff for /src/usr.bin/telnet/telnet.c between version 1.27 and 1.28

version 1.27, 2014/07/20 10:32:23 version 1.28, 2014/07/20 10:55:26
Line 54 
Line 54 
 #define SB_EOF()        (subpointer >= subend)  #define SB_EOF()        (subpointer >= subend)
 #define SB_LEN()        (subend - subpointer)  #define SB_LEN()        (subend - subpointer)
   
   static void     lm_will(unsigned char *, int);
   static void     lm_wont(unsigned char *, int);
   static void     lm_do(unsigned char *, int);
   static void     lm_dont(unsigned char *, int);
   
   static void     slc_init(void);
   static void     slc_import(int);
   static void     slc_export(void);
   static void     slc_start_reply(void);
   static void     slc_add_reply(unsigned char, unsigned char, cc_t);
   static void     slc_end_reply(void);
   static void     slc(unsigned char *, int);
   static int      slc_update(void);
   
   static void     env_opt(unsigned char *, int);
   static void     env_opt_start(void);
   
 char    options[256];           /* The combined options */  char    options[256];           /* The combined options */
 char    do_dont_resp[256];  char    do_dont_resp[256];
 char    will_wont_resp[256];  char    will_wont_resp[256];
Line 229 
Line 246 
 }  }
   
   
         void  static void
 willoption(option)  willoption(option)
         int option;          int option;
 {  {
Line 283 
Line 300 
   
 }  }
   
         void  static void
 wontoption(option)  wontoption(option)
         int option;          int option;
 {  {
Line 332 
Line 349 
         set_my_state_dont(option);          set_my_state_dont(option);
 }  }
   
         static void  static void
 dooption(option)  dooption(option)
         int option;          int option;
 {  {
Line 422 
Line 439 
         set_my_state_will(option);          set_my_state_will(option);
 }  }
   
         static void  static void
 dontoption(option)  dontoption(option)
         int option;          int option;
 {  {
Line 794 
Line 811 
   
 static unsigned char str_lm[] = { IAC, SB, TELOPT_LINEMODE, 0, 0, IAC, SE };  static unsigned char str_lm[] = { IAC, SB, TELOPT_LINEMODE, 0, 0, IAC, SE };
   
     void  static void
 lm_will(cmd, len)  lm_will(cmd, len)
     unsigned char *cmd;      unsigned char *cmd;
     int len;      int len;
Line 817 
Line 834 
     }      }
 }  }
   
     void  static void
 lm_wont(cmd, len)  lm_wont(cmd, len)
     unsigned char *cmd;      unsigned char *cmd;
     int len;      int len;
Line 834 
Line 851 
     }      }
 }  }
   
     void  static void
 lm_do(cmd, len)  lm_do(cmd, len)
     unsigned char *cmd;      unsigned char *cmd;
     int len;      int len;
Line 857 
Line 874 
     }      }
 }  }
   
     void  static void
 lm_dont(cmd, len)  lm_dont(cmd, len)
     unsigned char *cmd;      unsigned char *cmd;
     int len;      int len;
Line 920 
Line 937 
 #define SLC_RVALUE      2  #define SLC_RVALUE      2
 static int slc_mode = SLC_EXPORT;  static int slc_mode = SLC_EXPORT;
   
         void  static void
 slc_init()  slc_init()
 {  {
         struct spc *spcp;          struct spc *spcp;
Line 1005 
Line 1022 
         IAC, SB, TELOPT_LINEMODE, LM_SLC, 0, SLC_DEFAULT, 0, IAC, SE          IAC, SB, TELOPT_LINEMODE, LM_SLC, 0, SLC_DEFAULT, 0, IAC, SE
 };  };
   
     void  static void
 slc_import(def)  slc_import(def)
     int def;      int def;
 {  {
Line 1021 
Line 1038 
 /*@*/ else printf("slc_import: not enough room\n");  /*@*/ else printf("slc_import: not enough room\n");
 }  }
   
     void  static void
 slc_export()  slc_export()
 {  {
     struct spc *spcp;      struct spc *spcp;
Line 1045 
Line 1062 
     setconnmode(1);     /* Make sure the character values are set */      setconnmode(1);     /* Make sure the character values are set */
 }  }
   
         void  static void
 slc(cp, len)  slc(cp, len)
         unsigned char *cp;          unsigned char *cp;
         int len;          int len;
Line 1147 
Line 1164 
         return *slc_replyp++ = ch;          return *slc_replyp++ = ch;
 }  }
   
         void  static void
 slc_start_reply()  slc_start_reply()
 {  {
         slc_replyp = slc_reply;          slc_replyp = slc_reply;
Line 1157 
Line 1174 
         slc_add(LM_SLC);          slc_add(LM_SLC);
 }  }
   
         void  static void
 slc_add_reply(func, flags, value)  slc_add_reply(func, flags, value)
         unsigned char func;          unsigned char func;
         unsigned char flags;          unsigned char flags;
Line 1175 
Line 1192 
                 slc_add(IAC);                  slc_add(IAC);
 }  }
   
     void  static void
 slc_end_reply()  slc_end_reply()
 {  {
     int len;      int len;
Line 1197 
Line 1214 
 /*@*/else printf("slc_end_reply: not enough room\n");  /*@*/else printf("slc_end_reply: not enough room\n");
 }  }
   
         int  static int
 slc_update()  slc_update()
 {  {
         struct spc *spcp;          struct spc *spcp;
Line 1215 
Line 1232 
         return(need_update);          return(need_update);
 }  }
   
         void  static void
 env_opt(buf, len)  env_opt(buf, len)
         unsigned char *buf;          unsigned char *buf;
         int len;          int len;
Line 1276 
Line 1293 
                 return;                  return;
         *opt_replyp++ = ch;          *opt_replyp++ = ch;
 }  }
         void  static void
 env_opt_start()  env_opt_start()
 {  {
         unsigned char *p;          unsigned char *p;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28