FreeBSD Bugzilla – Attachment 50649 Details for
Bug 77111
After pppd establishes connection, if "options MAC" is enabled in the kernel, kernel panic happens.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
diff.0.ppp_tty.c
diff.0.ppp_tty.c (text/plain; charset=us-ascii), 644 bytes, created by
Wojciech A. Koszek
on 2005-02-15 00:32:24 UTC
(
hide
)
Description:
diff.0.ppp_tty.c
Filename:
MIME Type:
Creator:
Wojciech A. Koszek
Created:
2005-02-15 00:32:24 UTC
Size:
644 bytes
patch
obsolete
>Patch against FreeBSD 5.3-STABLE, kern.osreldate: 503102. > >diff -upr /usr/src/sys/net/ppp_tty.c src/sys/net/ppp_tty.c >--- /usr/src/sys/net/ppp_tty.c Sat Feb 12 09:36:38 2005 >+++ src/sys/net/ppp_tty.c Tue Feb 15 00:29:38 2005 >@@ -396,6 +396,16 @@ pppwrite(tp, uio, flag) > splx(s); > return (ENOBUFS); > } >+ /* >+ * mbuf has to hold packet header in order to pass tests made by >+ * mac_check_ifnet_transmit() in pppoutput(), when MAC is present in >+ * the kernel. >+ */ >+ if (!(m->m_flags & M_PKTHDR)) { >+ m_free(m0); >+ splx(s); >+ return (EIO); >+ } > m->m_len = 0; > if (uio->uio_resid >= MCLBYTES / 2) > MCLGET(m, M_DONTWAIT);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 77111
: 50649