Rename CMD_MAX_LEN=>MSG_MAX_LEN, move to new file