On Thu, 12 Dec 2002, Ian Dowse wrote:
> --- ip_fw.c   21 Nov 2002 01:27:30 -0000      1.131.2.38
> +++ ip_fw.c   12 Dec 2002 00:43:22 -0000
> @@ -1573,6 +1573,11 @@
>                       break;
>                 }
>               default:        /* Send an ICMP unreachable using code */
> +                     /* Must convert to host order for icmp_error(). */
> +                     if (BRIDGED) {
> +                             NTOHS(ip->ip_len);
> +                             NTOHS(ip->ip_off);
> +                     }
>                       icmp_error(*m, ICMP_UNREACH,
>                           f->fw_reject_code, 0L, 0);
>                       *m = NULL;

Since the REJECT case needs several headers in host order, why not put
this there (line 1546), taking care of potential problems in the tcp RST
case?

-Nate


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to