icmp_type
icmp->icmp_type = type;
icmp->icmp_type = i;
icmpname6(ic->icmp_type, ic->icmp_code));
icmpname(ic->icmp_type, ic->icmp_code));
if (ic->icmp_type == ICMP_UNREACH ||
ic->icmp_type == ICMP_SOURCEQUENCH ||
ic->icmp_type == ICMP_PARAMPROB ||
ic->icmp_type == ICMP_REDIRECT ||
ic->icmp_type == ICMP_TIMXCEED) {
icmp->icmp_type, icmp->icmp_code);
ic->icmp_type = atoi(args);
if (ic->icmp_type == ICMP_REDIRECT && strchr(s, ','))
icp->icmp_type = i;
icp->icmp_type = 255;
icp->icmp_type = 3;
icp->icmp_type = 4;
icp->icmp_type = 5;
icp->icmp_type = ict1[i];
icp->icmp_type = 12;
icp->icmp_type = ict1[i];
i * 4, icp->icmp_type);
i * 4 + 1, icp->icmp_type);
i * 4 + 2, icp->icmp_type);
i * 4 + 3, icp->icmp_type);
ic->icmp_type = geticmptype(AF_INET, *cpp);
if (ic->icmp_type == ICMP_ECHO ||
ic->icmp_type == ICMP_ECHOREPLY)
icmp->icmp_type = ICMP_UNREACH;
icmphdr->icmp_type,
LOOP_THROUGH(struct node_icmp, icmp_type, icmp_types,
r->type = icmp_type->type;
r->code = icmp_type->code;
if (icmp_type->proto && r->proto != icmp_type->proto) {
rdr_dst_host, src_port, uid, gid, rcv, icmp_type);
for (i=0; i < nitems(icmp_type); i++) {
if (type == icmp_type[i].type)
return (&icmp_type[i]);
for (i=0; i < nitems(icmp_type); i++) {
if (!strcmp(w, icmp_type[i].name))
return (&icmp_type[i]);
static const struct icmptypeent icmp_type[] = {
icp.icmp_type = icmp_type;
if (icp.icmp_type == icmp_type_rsp) {
(oicmp.icmp_type == ICMP_ECHO) &&
switch(icp->icmp_type) {
(void)printf("Bad ICMP type: %d\n", icp->icmp_type);
static u_char icmp_type = ICMP_ECHO;
icmp_type = ICMP_MASKREQ;
icmp_type = ICMP_TSTAMP;
if (p->icmp.icmp_type == ICMP_ROUTERADVERT) {
u_int8_t icmp_type; /* type of message */
u_int8_t icmp_type; /* type of message */
u.ad.icmp_type = ICMP_ROUTERADVERT;
u.so.icmp_type = ICMP_ROUTERSOLICIT;
if (p->icmp.icmp_type == ICMP_ROUTERADVERT) {
} else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) {
switch (p->icmp.icmp_type) {
u8 icmp_type[0x8];
icmph->icmp_type = ICMP_ECHO;
oiphlen))->icmp_type)) {
icp->icmp_type = type;
switch (icp->icmp_type) {
printf("icmp_input, type %d code %d\n", icp->icmp_type,
if (icp->icmp_type > ICMP_MAXTYPE)
ICMPSTAT_INC2(icps_inhist, icp->icmp_type);
switch (icp->icmp_type) {
icp->icmp_type = ICMP_ECHOREPLY;
icp->icmp_type = ICMP_TSTAMPREPLY;
icp->icmp_type = ICMP_MASKREPLY;
ICMPSTAT_INC2(icps_outhist, icp->icmp_type);
u_char icmp_type; /* type of message, see below */
u_char icmp_type; /* type of message, see below */
if (ic2->icmp_type == ICMP_ECHO ||
ic2->icmp_type == ICMP_TSTAMP) {
switch (ic->icmp_type) {
if (ic2->icmp_type == ICMP_ECHO ||
ic2->icmp_type == ICMP_TSTAMP) {
switch (ic->icmp_type) {
uint8_t icmp_type,
if (icmp_type != ICMP_UNREACH) {
icmp->icmp_type,
type = icmp->icmp_type;
if (V_icmp_may_rst && icp->icmp_type == ICMP_TIMXCEED)
switch (icmp->icmp_type)
if ((!rev && (icmp->icmp_type == ictype)) ||
(rev && (icmpreplytype4[ictype] == icmp->icmp_type))) {
if (icmp->icmp_type != ICMP_ECHOREPLY)
if ((!rev && (icmp->icmp_type == ictype)) ||
(rev && (icmpreplytype6[ictype] == icmp->icmp_type))) {
if (icmp->icmp_type != ICMP6_ECHO_REPLY)
icmp->icmp_type = type;
switch (icmp->icmp_type)
if (ipf_nat_icmpquerytype(orgicmp->icmp_type)) {
switch (ic->icmp_type)
is->is_icmp.ici_type = ic->icmp_type;
switch (ic->icmp_type)
is->is_icmp.ici_type = ic->icmp_type;
if ((ic->icmp_type == ICMP6_ECHO_REQUEST) ||
(ic->icmp_type == ICMP6_ECHO_REPLY)) {
int type = icmp->icmp_type;
int type = icmp->icmp_type;
icmp->icmp_type, icmp->icmp_code);
" code %d, pptr %d", icmp->icmp_type,
" code %d, pptr %d", icmp->icmp_type,
icmp->icmp_type, icmp->icmp_code);
if (icmp->icmp_type != ICMP_ECHO) {
if (!ICMP_INFOTYPE(icmp->icmp_type)) {
icmp->icmp_type = type;
switch (icmp->icmp_type) {
icmp->icmp_type, icmp->icmp_code);
switch (icmp->icmp_type) {
if (icmp->icmp_type != ICMP_ECHO)
type = icmp4->icmp_type;
if (icmp4->icmp_type != type) {
icmp4->icmp_type, type, 0);
icmp4->icmp_type = type;
ctx.icmptype = pd->hdr.icmp.icmp_type;
icmptype = pd->hdr.icmp.icmp_type;
pf_icmp_mapping(&pd2, iih->icmp_type,
icmp.icmp.icmp_type = ICMP_ECHO;
sport = ih->icmp_type;
"ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmph->icmp_type);
type = icp->icmp_type;
icmpheader->icmp_type = ICMP_ECHO;