Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I have not any strong objection about this. But I prefer the commented code should be left here. I added it to be compatible with current behavior, but in future we can change this.
I think removing the code's ok, but maybe a better XXX comment should be put in so someone could fill in the blanks later (I ran into some code in lib/libc/rpc recently like this with unimplemented paths)?
sys/net/if_gre.c | ||
---|---|---|
718 ↗ | (On Diff #11737) | XXX: The current implementation uses the key only for outgoing packets. But we can check the key value here, or even in the encapcheck function. |
Address @ae comments, and for now we don't remove the code.
We will still have the gcc-4.9 warning, but for those that are cleaning it up, they will know by
the comment, it is something not implemented yet.
sys/net/if_gre.c | ||
---|---|---|
718 ↗ | (On Diff #11787) | Please add a newline before the XXX per style(9). |
Sidenote: I'm fine (personally) with removing the variables or commenting out the code under another #ifdef (e.g. KEY_SUPPORT_NOTYET), as long as the comments are there documenting the item that needs to be implemented (so two birds could be killed with one stone)
sys/net/if_gre.c | ||
---|---|---|
719 ↗ | (On Diff #11788) | Please add a space between the XXX: and The. |
I would prefer a #ifdef too, the meaning of this patch is to lower the compiler warnings. I will address @ngie suggestion together with the 'space'.