format: use constant
format: fix warnings in tcp.c
format: move MP to separate unit
format: decode MP diagnostic messages