Add a header file that defines a "byte-swap a 32-bit integer" macro. - #1457
Add a header file that defines a "byte-swap a 32-bit integer" macro.#1457guyharris wants to merge 1 commit into
Conversation
|
Please make the new file say and use a BSD-2-Clause or BSD-3-Clause. There's a lot of pending BSD clarification work pending, so let's at least not complicate it. Also I can add a commit with byte swap builtins to libpcap, if you want to copy that in the same go. |
83268ae to
14cd485
Compare
Done, with a BSD 2-Clause "Simplified" License. Should we use SPDX short identifiers, instead?
If you have that change ready, go ahead. Update the commit message, and the title and first comment of the pull request, as appropriate. |
|
Short identifiers are being introduced, typically after it is clear the complete boilerplate is correct rather than copied and pasted from another file. This turned out to be a bigger job than I thought and due to a number of higher-priority interruptions even the clean-up in the-tcpdump-group/libpcap#1441 has not been completed yet. For now it would be sensible enough not to make it worse. |
|
Also |
Remove the macro from dissectors that use it, and have them include the header file. Go with the renamed macro from libpcap, and declare the variables on which it's used to be uint32_t.
14cd485 to
89aa800
Compare
Done. |
|
Also |
Remove the macro from dissectors that use it, and have them include the header file.
Go with the renamed macro from libpcap, and declare the variables on which it's used to be uint32_t.