mnIsTypeAllowedICMPA

This command is used to check whether the specified ICMP type is allowed.

This command also returns restriction information about whether some local interfaces or remote addresses are blocked for this port. For example, if the port is restricted to the local subnet only.

To determine whether the type and IP version are allowed with any local address use mnIsTypeAllowedICMPB.

Parameters

unsigned char Type: ICMP type. See http://www.iana.org/assignments/icmp-parameters for possible types.

char * LocalAddress: Either a dotted-decimal IPv4 address or an IPv6 hex address specifying the local address of the traffic. Typically, this is the address used with mnSetLocal.

int IPVersion: IP version of the traffic. 0 = V4, 1 = V6. This cannot be any (2).

Returns (Integer)

1 if the port is allowed and not restricted.

2 if the port is allowed and restricted.

3 if the port is not allowed and not restricted.

4 if the port is not allowed and restricted.

-1 if an error occurred.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Internet Control Message Protocol (ICMP)
(1) Windows Firewall
(0) DarkNet Help