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
96655561
Commit
96655561
authored
May 17, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o ipv6/icmp: use C99 struct style init for tab_unreach
parent
1c320830
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
net/ipv6/icmp.c
net/ipv6/icmp.c
+20
-5
No files found.
net/ipv6/icmp.c
View file @
96655561
...
...
@@ -737,11 +737,26 @@ static struct icmp6_err {
int
err
;
int
fatal
;
}
tab_unreach
[]
=
{
{
ENETUNREACH
,
0
},
/* NOROUTE */
{
EACCES
,
1
},
/* ADM_PROHIBITED */
{
EHOSTUNREACH
,
0
},
/* Was NOT_NEIGHBOUR, now reserved */
{
EHOSTUNREACH
,
0
},
/* ADDR_UNREACH */
{
ECONNREFUSED
,
1
},
/* PORT_UNREACH */
{
/* NOROUTE */
.
err
=
ENETUNREACH
,
.
fatal
=
0
,
},
{
/* ADM_PROHIBITED */
.
err
=
EACCES
,
.
fatal
=
1
,
},
{
/* Was NOT_NEIGHBOUR, now reserved */
.
err
=
EHOSTUNREACH
,
.
fatal
=
0
,
},
{
/* ADDR_UNREACH */
.
err
=
EHOSTUNREACH
,
.
fatal
=
0
,
},
{
/* PORT_UNREACH */
.
err
=
ECONNREFUSED
,
.
fatal
=
1
,
},
};
int
icmpv6_err_convert
(
int
type
,
int
code
,
int
*
err
)
...
...
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