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
nexedi
linux
Commits
464f9b3f
Commit
464f9b3f
authored
Sep 26, 2002
by
Hideaki Yoshifuji
Committed by
David S. Miller
Sep 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPv6]: Verify ND options properly.
parent
5568a809
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
208 additions
and
111 deletions
+208
-111
include/net/ndisc.h
include/net/ndisc.h
+19
-0
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+189
-111
No files found.
include/net/ndisc.h
View file @
464f9b3f
...
...
@@ -51,6 +51,25 @@ struct ra_msg {
__u32
retrans_timer
;
};
struct
nd_opt_hdr
{
__u8
nd_opt_type
;
__u8
nd_opt_len
;
}
__attribute__
((
__packed__
));
struct
ndisc_options
{
struct
nd_opt_hdr
*
nd_opt_array
[
7
];
struct
nd_opt_hdr
*
nd_opt_piend
;
};
#define nd_opts_src_lladdr nd_opt_array[ND_OPT_SOURCE_LL_ADDR]
#define nd_opts_tgt_lladdr nd_opt_array[ND_OPT_TARGET_LL_ADDR]
#define nd_opts_pi nd_opt_array[ND_OPT_PREFIX_INFO]
#define nd_opts_pi_end nd_opt_piend
#define nd_opts_rh nd_opt_array[ND_OPT_REDIRECT_HDR]
#define nd_opts_mtu nd_opt_array[ND_OPT_MTU]
extern
struct
nd_opt_hdr
*
ndisc_next_option
(
struct
nd_opt_hdr
*
cur
,
struct
nd_opt_hdr
*
end
);
extern
struct
ndisc_options
*
ndisc_parse_options
(
u8
*
opt
,
int
opt_len
,
struct
ndisc_options
*
ndopts
);
extern
int
ndisc_init
(
struct
net_proto_family
*
ops
);
...
...
net/ipv6/ndisc.c
View file @
464f9b3f
This diff is collapsed.
Click to expand it.
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