Ticket #472 (closed Bug report: fixed)
PATCH: Error parsing outgoing traffic in iptables_fw_counters_update()
| Reported by: | rgmarelli@… | Owned by: | gbastien |
|---|---|---|---|
| Priority: | low | Milestone: | Gateway 1.1.5 |
| Component: | Gateway | Version: | |
| Keywords: | Cc: |
Description
Hi, it seems that there is a formatting error when parsing outgoing traffic in iptables_fw_counters_update(). Current line only updates the outgoing counter of the first client. Line 503 is:
rt = fscanf(output, "%*s %llu %*s %*s %*s %*s %*s %15[0-9.] %*s %*s %*s %*s %*s 0x%*u", &counter, ip);
but should be:
rc = fscanf(output, "%*s %lu %*s %*s %*s %*s %*s %15[0-9.] %*s %*s %*s 0x%*u", &counter, ip);
Regards,
Guido
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
