chiark / gitweb /
magic.h: Present message labels as an encoding of major and minor numbers.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Apr 2017 23:03:08 +0000 (00:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 25 Sep 2019 12:46:44 +0000 (13:46 +0100)
commit7b2ef2245c0607e51a4318ba37691af5aea3f17f
tree82ba8d5d829ef68527fb3fa3bfa448a0859ff908
parentceacd8902d6024c2f38c1cdf453ae3401aa00da1
magic.h: Present message labels as an encoding of major and minor numbers.

The encoding is strange for historical reasons, but represents all pairs
of 16-bit major and minor codes.

I've exhaustively verified that the encoding is invertable, and that it
reproduces the old manually assigned labels; this program is
`msgcode-test.c', which I've added to the standard test run, though it's
rather slow to run.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Makefile.in
magic.h
msgcode-test.c [new file with mode: 0644]
secnet-wireshark.lua