diff options
author | suz <suz@FreeBSD.org> | 2005-10-19 10:09:19 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2005-10-19 10:09:19 +0000 |
commit | 21f42e535fa6a4e118a72f5e8130dfff7456036a (patch) | |
tree | c362eb3bd52a94047053ab1b3c10c895d818bd69 /sys/netinet6/icmp6.c | |
parent | 2043307751112834c9e2c0d1201a38aed095a6da (diff) | |
download | FreeBSD-src-21f42e535fa6a4e118a72f5e8130dfff7456036a.zip FreeBSD-src-21f42e535fa6a4e118a72f5e8130dfff7456036a.tar.gz |
sync with KAME in the following points:
- fixed typos
- improved some comment descriptions
- use NULL, instead of 0, to denote a NULL pointer
- avoid embedding a magic number in the code
- use nd6log() instead of log() to record NDP-specific logs
- nuked an unnecessay white space
Obtained from: KAME
MFC after: 1 day
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r-- | sys/netinet6/icmp6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index cb7d313..16f40ec 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -511,8 +511,10 @@ icmp6_input(mp, offp, proto) icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_timeexceed); switch (code) { case ICMP6_TIME_EXCEED_TRANSIT: + code = PRC_TIMXCEED_INTRANS; + break; case ICMP6_TIME_EXCEED_REASSEMBLY: - code += PRC_TIMXCEED_INTRANS; + code = PRC_TIMXCEED_REASS; break; default: goto badcode; |