Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/netinet



Unfortunately pfctl references them if it sees ICMP_PHOTURIS defined.

A quick search for these does show a lot of use out there between
*BSD, linux, etc.

And 
http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xml#icmp-parameters-codes-40
shows a few more even and RFC2521 seems to be defining all of this.

BTW: What happens if icmp_error gets something above ICMP_MAX_TYPE in?
It appears we hard panic:

        if ((u_int)type > ICMP_MAXTYPE)
                panic("icmp_error");


James


On Fri, Dec 23, 2011 at 2:12 PM, Christos Zoulas 
<christos%astron.com@localhost> wrote:
> In article <20111223220300.9E70B175DF%cvs.netbsd.org@localhost>,
> James Chacon <source-changes-d%NetBSD.org@localhost> wrote:
>>-=-=-=-=-=-
>>
>> #define       ICMP_PHOTURIS           40              /* security */
>>+#define               ICMP_PHOTURIS_UNKNOWN_INDEX     1       /* Bad index */
>>+#define               ICMP_PHOTURIS_AUTH_FAILED       2       /* Auth failed 
>>*/
>>+#define               ICMP_PHOTURIS_DECRYPT_FAILED    3       /* Decrypt 
>>failed */
>>
>
> I don't know where ip_compat.h got these from, but they are wrong according
> to the IANA assigment, and this is why I did not copy them.
>
> http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xml#icmp-parameters-codes-40
>
> christos
>


Home | Main Index | Thread Index | Old Index