|
| From: | Anton Ivanov |
| Subject: | Re: [Qemu-devel] [PATCH v5] net: L2TPv3 transport |
| Date: | Tue, 25 Mar 2014 10:37:28 +0000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9 |
>> + if (!s->header_mismatch) {
>> + error_report("unknown cookie id\n");
>> + }
> Do we need to set s->header_mismatch = true to prevent flooding logs?
>
>> + return -1;
>> + }
>> + }
>> + session = (uint32_t *) (buf + s->session_offset);
>> + if (ldl_be_p(session) != s->rx_session) {
>> + if (!s->header_mismatch) {
>> + error_report("session mismatch");
>> + }
> Same here.
Just reviewed it - it is set one level up in the send function. Probably
wrong place to set it, makes the code not very readable.
A.
| [Prev in Thread] | Current Thread | [Next in Thread] |