FreeBSD Bugzilla – Attachment 272 Details for
Bug 1253
if_tun counts packets but not bytes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 509 bytes, created by
jc
on 1996-05-27 00:10:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
jc
Created:
1996-05-27 00:10:03 UTC
Size:
509 bytes
patch
obsolete
>*** /usr/stable/src/sys/net/if_tun.c Sun May 5 02:15:28 1996 >--- sys/net/if_tun.c Sun May 5 14:14:07 1996 >*************** >*** 343,348 **** >--- 343,349 ---- > ifp->if_collisions++; > return (ENOBUFS); > } >+ ifp->if_obytes += m0->m_pkthdr.len; > IF_ENQUEUE(&ifp->if_snd, m0); > splx(s); > ifp->if_opackets++; >*************** >*** 564,569 **** >--- 565,571 ---- > m_freem(top); > return ENOBUFS; > } >+ ifp->if_ibytes += tlen; > IF_ENQUEUE(&ipintrq, top); > splx(s); > ifp->if_ipackets++;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1253
: 272