Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
44973796
Commit
44973796
authored
Mar 06, 2003
by
Randy Dunlap
Committed by
David S. Miller
Mar 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4/IPV6]: ICMP cleanups.
parent
d63b5a73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
net/ipv4/icmp.c
net/ipv4/icmp.c
+1
-1
net/ipv6/icmp.c
net/ipv6/icmp.c
+3
-3
No files found.
net/ipv4/icmp.c
View file @
44973796
...
...
@@ -116,7 +116,7 @@ struct icmp_bxm {
DEFINE_SNMP_STAT
(
struct
icmp_mib
,
icmp_statistics
);
/* An array of errno for error messages from dest unreach. */
/* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOS
_UNREACH and SR_FAIEL
D MUST be considered 'transient errs'. */
/* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOS
T_UNREACH and SR_FAILE
D MUST be considered 'transient errs'. */
struct
icmp_err
icmp_err_convert
[]
=
{
{
...
...
net/ipv6/icmp.c
View file @
44973796
...
...
@@ -353,7 +353,7 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
ip6_build_xmit
(
sk
,
icmpv6_getfrag
,
&
msg
,
&
fl
,
len
,
NULL
,
-
1
,
MSG_DONTWAIT
);
if
(
type
>=
ICMPV6_DEST_UNREACH
&&
type
<=
ICMPV6_PARAMPROB
)
ICMP6_STATS_PTR_BH
(
Icmp6OutDestUnreachs
)
[
type
-
1
]
++
;
ICMP6_STATS_PTR_BH
(
Icmp6OutDestUnreachs
)
[
type
-
ICMPV6_DEST_UNREACH
]
++
;
ICMP6_INC_STATS_BH
(
Icmp6OutMsgs
);
out:
icmpv6_xmit_unlock
();
...
...
@@ -524,7 +524,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
break
;
case
ICMPV6_ECHO_REPLY
:
/* we coul
nd
't care less */
/* we coul
dn
't care less */
break
;
case
ICMPV6_PKT_TOOBIG
:
...
...
@@ -577,7 +577,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
default:
if
(
net_ratelimit
())
printk
(
KERN_DEBUG
"icmpv6: msg of unkown type
\n
"
);
printk
(
KERN_DEBUG
"icmpv6: msg of unk
n
own type
\n
"
);
/* informational */
if
(
type
&
ICMPV6_INFOMSG_MASK
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment