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
5a977b30
Commit
5a977b30
authored
Jul 09, 2003
by
Ville Nuorvala
Committed by
Stephen Hemminger
Jul 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Fix tunnel device bugs added by alloc_netdev() changes.
parent
d5a61fa4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+6
-1
net/ipv4/ipip.c
net/ipv4/ipip.c
+6
-0
net/ipv6/sit.c
net/ipv6/sit.c
+6
-0
No files found.
net/ipv4/ip_gre.c
View file @
5a977b30
...
...
@@ -1153,7 +1153,9 @@ static int ipgre_tunnel_init(struct net_device *dev)
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
memcpy
(
dev
->
dev_addr
,
&
tunnel
->
parms
.
iph
.
saddr
,
4
);
memcpy
(
dev
->
broadcast
,
&
tunnel
->
parms
.
iph
.
daddr
,
4
);
...
...
@@ -1215,6 +1217,9 @@ int __init ipgre_fb_tunnel_init(struct net_device *dev)
struct
ip_tunnel
*
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
struct
iphdr
*
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
iph
->
version
=
4
;
iph
->
protocol
=
IPPROTO_GRE
;
iph
->
ihl
=
5
;
...
...
net/ipv4/ipip.c
View file @
5a977b30
...
...
@@ -805,7 +805,10 @@ static int ipip_tunnel_init(struct net_device *dev)
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
memcpy
(
dev
->
dev_addr
,
&
tunnel
->
parms
.
iph
.
saddr
,
4
);
memcpy
(
dev
->
broadcast
,
&
tunnel
->
parms
.
iph
.
daddr
,
4
);
...
...
@@ -841,6 +844,9 @@ static int __init ipip_fb_tunnel_init(struct net_device *dev)
struct
ip_tunnel
*
tunnel
=
dev
->
priv
;
struct
iphdr
*
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
iph
->
version
=
4
;
iph
->
protocol
=
IPPROTO_IPIP
;
iph
->
ihl
=
5
;
...
...
net/ipv6/sit.c
View file @
5a977b30
...
...
@@ -743,7 +743,10 @@ static int ipip6_tunnel_init(struct net_device *dev)
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
memcpy
(
dev
->
dev_addr
,
&
tunnel
->
parms
.
iph
.
saddr
,
4
);
memcpy
(
dev
->
broadcast
,
&
tunnel
->
parms
.
iph
.
daddr
,
4
);
...
...
@@ -780,6 +783,9 @@ int __init ipip6_fb_tunnel_init(struct net_device *dev)
struct
ip_tunnel
*
tunnel
=
dev
->
priv
;
struct
iphdr
*
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
iph
->
version
=
4
;
iph
->
protocol
=
IPPROTO_IPV6
;
iph
->
ihl
=
5
;
...
...
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