Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 95247 Details for
Bug 145313
net-dialup/ppp-2.4.4 - maxoctets 2G limit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
maxoctets_2Glimit.patch
maxoctets_2Glimit.patch (text/plain), 606 bytes, created by
Serhij S. Stasyuk
on 2006-08-27 23:12:20 UTC
(
hide
)
Description:
maxoctets_2Glimit.patch
Filename:
MIME Type:
Creator:
Serhij S. Stasyuk
Created:
2006-08-27 23:12:20 UTC
Size:
606 bytes
patch
obsolete
>diff -Nru ppp-2.4.3.orig/pppd/auth.c ppp-2.4.3/pppd/auth.c >--- ppp-2.4.3.orig/pppd/auth.c 2006-08-27 17:09:25 +0300 >+++ ppp-2.4.3/pppd/auth.c 2006-08-27 22:54:38 +0300 >@@ -1123,7 +1123,6 @@ > check_maxoctets(arg) > void *arg; > { >- int diff; > unsigned int used; > > update_link_stats(ifunit); >@@ -1144,8 +1143,7 @@ > used = link_stats.bytes_in+link_stats.bytes_out; > break; > } >- diff = maxoctets - used; >- if(diff < 0) { >+ if (maxoctets <= used) { > notice("Traffic limit reached. Limit: %u Used: %u", maxoctets, used); > lcp_close(0, "Traffic limit"); > need_holdoff = 0;
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 145313
: 95247 |
95248