Lines Matching defs:code
297 * There's a lot duplicated code here, but...
467 u_char code=ICMP_UNREACH_PORT;
469 if(errno == EHOSTUNREACH) code=ICMP_UNREACH_HOST;
470 else if(errno == ENETUNREACH) code=ICMP_UNREACH_NET;
474 icmp_error(so->so_m, ICMP_UNREACH,code, 0,errno_str);
508 u_char code=ICMP_UNREACH_PORT;
510 if(errno == EHOSTUNREACH) code=ICMP_UNREACH_HOST;
511 else if(errno == ENETUNREACH) code=ICMP_UNREACH_NET;
513 DEBUG_MISC((dfd," rx error, tx icmp ICMP_UNREACH:%i\n", code));
514 icmp_error(so->so_m, ICMP_UNREACH,code, 0,errno_str);