Date: Sun, 15 Sep 1996 06:02:16 +0400 (MSD) From: Sandy Kovshov <sandy@Lapkin.RoSprint.ru> To: freebsd-current@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: sppp with cisco hdlc bug fix Message-ID: <199609150202.GAA00358@Lapkin.RoSprint.ru>
next in thread | raw e-mail | index | archive | help
Hello guys, Here is little patch for bug in sppp pseudo driver with cisco hdlc protocol. I've found it when test Riscom/N2 card with Cisco. At unknown reason, Cisco send 20 byte packet (without ppp header) instead of 18 ;) With old version it cause line hangup on keepalive timeout. Index: net/if_spppsubr.c =================================================================== RCS file: /home/sandy/project/freebsd/cvs/src/sys/net/if_spppsubr.c,v retrieving revision 1.13 diff -c -r1.13 if_spppsubr.c *** if_spppsubr.c 1996/08/30 16:44:36 1.13 --- if_spppsubr.c 1996/09/15 01:46:31 *************** *** 848,854 **** struct ifaddr *ifa; struct ifnet *ifp = &sp->pp_if; ! if (m->m_pkthdr.len != CISCO_PACKET_LEN) { if (ifp->if_flags & IFF_DEBUG) printf ("%s%d: invalid cisco packet length: %d bytes\n", ifp->if_name, ifp->if_unit, m->m_pkthdr.len); --- 848,854 ---- struct ifaddr *ifa; struct ifnet *ifp = &sp->pp_if; ! if (m->m_pkthdr.len < CISCO_PACKET_LEN) { if (ifp->if_flags & IFF_DEBUG) printf ("%s%d: invalid cisco packet length: %d bytes\n", ifp->if_name, ifp->if_unit, m->m_pkthdr.len); With best regards. --- Sandy E-mail: Internet: sandy@dream.demos.su sandy@www.RoSprint.ru X.400: (C:USSR,A:SOVMAIL,O:SNUSSR,UN:A.KOVSHOV) X.400: (C:USA,A:TELEMAIL,O:SPRINTINTL,UN:A.KOVSHOV)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609150202.GAA00358>