1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Pass the pppoe packets into do_ppp_print correctly.

This commit is contained in:
Brian Somers 1999-11-27 18:04:57 +00:00
parent cb815af365
commit 40e7a3d7fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53774

View File

@ -588,13 +588,11 @@ pppoe_print(const u_char *p, u_int length)
ntohs(*(u_short *)(p + 2)), len);
if (type == 0x00) {
p += 4;
length -= 4;
if (len > length)
len = length; /* puke ! */
/* This is a data packet */
p += 4;
fputs("] ", stdout);
do_ppp_print(p, len, len);
/* If eflag is set, ignore the trailing 2 bytes for LCP... */
do_ppp_print(p, eflag ? len - 2 : len + 2, len + 4);
return;
}