This PR is a follow-up to #24078.
a message is not a command, but simply a message of some type
The first commit covers the message_command variable name and comments not addressed in the original PR in src/net* files.
The second commit goes beyond the original src/net* limit of #24078 and does similar changes in the src/rpc/net.cpp file.