Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/net Pull up revision 1.5 (requested by groo in tick...



details:   https://anonhg.NetBSD.org/src/rev/df55769dceb2
branches:  netbsd-1-6
changeset: 529005:df55769dceb2
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Aug 17 05:36:00 2002 +0000

description:
Pull up revision 1.5 (requested by groo in ticket #669):
Don't throw away the name and the secret lengths. This eliminates all the
strlen() calls, and there was a whole bunch of them.

diffstat:

 sys/net/if_spppvar.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r e09aaa682f4e -r df55769dceb2 sys/net/if_spppvar.h
--- a/sys/net/if_spppvar.h      Sat Aug 17 05:35:48 2002 +0000
+++ b/sys/net/if_spppvar.h      Sat Aug 17 05:36:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppvar.h,v 1.4 2002/03/02 16:23:42 martin Exp $    */
+/*     $NetBSD: if_spppvar.h,v 1.4.8.1 2002/08/17 05:36:00 lukem Exp $ */
 
 /*
  * Defines for synchronous PPP/Cisco link level subroutines.
@@ -63,6 +63,8 @@
        u_short flags;
        char    *name;                  /* system identification name */
        char    *secret;                /* secret password */
+       u_char  name_len;               /* no need to have a bigger size */
+       u_char  secret_len;             /* because proto gives size in a byte */
        char    challenge[16];          /* random challenge [don't change size! it's realy hardcoded!] */
 };
 



Home | Main Index | Thread Index | Old Index