User Details
- User Since
- Feb 4 2016, 4:45 PM (509 w, 6 d)
Yesterday
Mon, Nov 10
Sun, Nov 9
Fri, Nov 7
Use the correct sequence sequence of check and action.
Thu, Nov 6
Only improve comments.
Wed, Nov 5
Tue, Nov 4
The third case is only a drop, if we have allocated an entry. If we are using syncookies, we also increment the counter if the syncache_response() call failed.
The suggested fourth case is in its nature different to the first three.
This depends on the semantic of the counter:
- if the semantic is "reply is dropped", it is the same and it should be incremented.
- if the semantic is "syncache entry is dropped", it is not the same and the third pattern should be changed to increment the counter only if we are actually calling syncache_free().
Mon, Nov 3
Use the correct variable: inp->inp_flags2.
Sun, Nov 2
This was committed in f3bba8cd62f2.
Fri, Oct 31
Have a look at D53507 and D53510 which does this in the networking related files.
remove one flag (INP_ORIGDSTADDR), which is actually a flag used in inp_flags2 and not in inp_flags.
Don't we want to print inp_flags2 as well? BTW, it seems very easy to use the wrong flag field. It should at least be called INP2_ORIGDSTADDR or something like that.
Yes, we want to print inp_flags2, too. This will be a separate change. And I agree with your proposed name change. There is something like INP_2PCP_SET, but I would prefer something like INP2_PCP_SET or INP_2_PCP_SET. Any preference?
Use tabs consistently.
Whitespace change.
I agree. But we have this kind of code in more than one place. I can take a look.
remove one flag (INP_ORIGDSTADDR), which is actually a flag used in inp_flags2 and not in inp_flags.
Don't we want to print inp_flags2 as well? BTW, it seems very easy to use the wrong flag field. It should at least be called INP2_ORIGDSTADDR or something like that.
Yes, we want to print inp_flags2, too. This will be a separate change. And I agree with your proposed name change. There is something like INP_2PCP_SET, but I would prefer something like INP2_PCP_SET or INP_2_PCP_SET. Any preference?
Address Mark's comment.
