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
71b1bb03
Commit
71b1bb03
authored
Aug 31, 2003
by
Ville Nuorvala
Committed by
David S. Miller
Aug 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Set dev->{dev_addr,broadcast} in ip6_tnls.
parent
9729e2c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_tunnel.c
+5
-4
No files found.
net/ipv6/ip6_tunnel.c
View file @
71b1bb03
...
@@ -851,6 +851,10 @@ static void ip6ip6_tnl_link_config(struct ip6_tnl *t)
...
@@ -851,6 +851,10 @@ static void ip6ip6_tnl_link_config(struct ip6_tnl *t)
struct
net_device
*
dev
=
t
->
dev
;
struct
net_device
*
dev
=
t
->
dev
;
struct
ip6_tnl_parm
*
p
=
&
t
->
parms
;
struct
ip6_tnl_parm
*
p
=
&
t
->
parms
;
struct
flowi
*
fl
;
struct
flowi
*
fl
;
memcpy
(
&
dev
->
dev_addr
,
&
p
->
laddr
,
sizeof
(
struct
in6_addr
));
memcpy
(
&
dev
->
broadcast
,
&
p
->
raddr
,
sizeof
(
struct
in6_addr
));
/* Set up flowi template */
/* Set up flowi template */
fl
=
&
t
->
fl
;
fl
=
&
t
->
fl
;
ipv6_addr_copy
(
&
fl
->
fl6_src
,
&
p
->
laddr
);
ipv6_addr_copy
(
&
fl
->
fl6_src
,
&
p
->
laddr
);
...
@@ -1093,10 +1097,7 @@ static void ip6ip6_tnl_dev_setup(struct net_device *dev)
...
@@ -1093,10 +1097,7 @@ static void ip6ip6_tnl_dev_setup(struct net_device *dev)
dev
->
mtu
=
ETH_DATA_LEN
-
sizeof
(
struct
ipv6hdr
);
dev
->
mtu
=
ETH_DATA_LEN
-
sizeof
(
struct
ipv6hdr
);
dev
->
flags
|=
IFF_NOARP
;
dev
->
flags
|=
IFF_NOARP
;
dev
->
iflink
=
0
;
dev
->
iflink
=
0
;
/* Hmm... MAX_ADDR_LEN is 8, so the ipv6 addresses can't be
dev
->
addr_len
=
sizeof
(
struct
in6_addr
);
copied to dev->dev_addr and dev->broadcast, like the ipv4
addresses were in ipip.c, ip_gre.c and sit.c. */
dev
->
addr_len
=
0
;
}
}
...
...
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