IPN_ICMPQUERY
if (np->in_flags & IPN_ICMPQUERY) {
else if (np->in_flags & IPN_ICMPQUERY)
nat->in_flags = IPN_ICMPQUERY;
if (!(nat->in_flags & IPN_ICMPQUERY)) {
if (nat->nat_flags & (IPN_TCPUDP | IPN_ICMPQUERY)) {
if ((port == 0) && (flags & (IPN_TCPUDPICMP|IPN_ICMPQUERY)))
} else if (flags & IPN_ICMPQUERY) {
} else if (flags & IPN_ICMPQUERY) {
} else if (flags & IPN_ICMPQUERY) {
flags = IPN_ICMPERR|IPN_ICMPQUERY;
else if (np->nl_flags & (IPN_ICMPERR|IPN_ICMPQUERY))
nflags = IPN_ICMPQUERY;
if ((fin->fin_p == IPPROTO_ICMP) && !(nflags & IPN_ICMPQUERY) &&
if ((nat->nat_outport != 0) && (nflags & IPN_ICMPQUERY)) {
nflags = IPN_ICMPQUERY;
if ((fin->fin_p == IPPROTO_ICMP) && !(nflags & IPN_ICMPQUERY) &&
if ((nat->nat_inport != 0) && (nflags & IPN_ICMPQUERY)) {
if ((nflags & IPN_ICMPQUERY) != 0) {
if ((nflags & IPN_ICMPQUERY) != 0) {
flags = IPN_ICMPERR|IPN_ICMPQUERY;
else if (np->nl_flags & (IPN_ICMPERR|IPN_ICMPQUERY))
nflags = IPN_ICMPQUERY;
if ((fin->fin_p == IPPROTO_ICMPV6) && !(nflags & IPN_ICMPQUERY) &&
if ((nat->nat_outport != 0) && (nflags & IPN_ICMPQUERY)) {
nflags = IPN_ICMPQUERY;
if ((fin->fin_p == IPPROTO_ICMPV6) && !(nflags & IPN_ICMPQUERY) &&
if ((nat->nat_inport != 0) && (nflags & IPN_ICMPQUERY)) {
if ((port == 0) && (flags & (IPN_TCPUDPICMP|IPN_ICMPQUERY)))
} else if (flags & IPN_ICMPQUERY) {
} else if (flags & IPN_ICMPQUERY) {
} else if (flags & IPN_ICMPQUERY) {
#define IPN_TCPUDPICMPQ (IPN_TCP|IPN_UDP|IPN_ICMPQUERY)
IPN_FRAG|IPN_STICKY|IPN_FIXEDDPORT|IPN_ICMPQUERY|\