Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 145313
Collapse All | Expand All

(-)ppp-2.4.3.orig/pppd/auth.c (-3 / +1 lines)
Lines 1123-1129 Link Here
1123
check_maxoctets(arg)
1123
check_maxoctets(arg)
1124
    void *arg;
1124
    void *arg;
1125
{
1125
{
1126
    int diff;
1127
    unsigned int used;
1126
    unsigned int used;
1128
1127
1129
    update_link_stats(ifunit);
1128
    update_link_stats(ifunit);
Lines 1144-1151 Link Here
1144
	    used = link_stats.bytes_in+link_stats.bytes_out;
1143
	    used = link_stats.bytes_in+link_stats.bytes_out;
1145
	    break;
1144
	    break;
1146
    }
1145
    }
1147
    diff = maxoctets - used;
1146
    if (maxoctets <= used) {
1148
    if(diff < 0) {
1149
	notice("Traffic limit reached. Limit: %u Used: %u", maxoctets, used);
1147
	notice("Traffic limit reached. Limit: %u Used: %u", maxoctets, used);
1150
	lcp_close(0, "Traffic limit");
1148
	lcp_close(0, "Traffic limit");
1151
	need_holdoff = 0;
1149
	need_holdoff = 0;

Return to bug 145313