Revert to previous handling of config.hwp.layer2 variable.

Try to document why we're using something other than 0 and 1 for values for layer2, protocol, and portno.