Read the trap type (notification type) of SNMPv2 traps.

(cherry picked from commit b3acda9bf5381f896568a84bbfb6711b76c76cb3)