/* Validate whether the value of protocol is illegal or not. Protocol is the 'Next Header' field in the last IPv6 extension header, or basic IPv6 header is there's no extension header. */
BOOLEAN Ip6IsIllegalProtocol(IN UINT8 Protocol)
/* Validate whether the value of protocol is illegal or not. Protocol is the 'Next Header' field in the last IPv6 extension header, or basic IPv6 header is there's no extension header. */
BOOLEAN Ip6IsIllegalProtocol(IN UINT8 Protocol)
{
  if ((Protocol == IP6_HOP_BY_HOP) || (Protocol == EFI_IP_PROTO_ICMP) || (Protocol == IP4_PROTO_IGMP)) {
    return TRUE;
  }
  if ((Protocol == 41) || (Protocol == 43) || (Protocol == 44) || (Protocol == 59) || (Protocol == 60) || (Protocol == 124)) {
    return TRUE;
  }
  return FALSE;
}