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
4e766f6c
Commit
4e766f6c
authored
Oct 18, 2003
by
Herbert Xu
Committed by
David S. Miller
Oct 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: More build fixes for CONFIG_XFRM disabled.
parent
385016f2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
include/net/xfrm.h
include/net/xfrm.h
+9
-0
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+1
-2
net/ipv4/ipip.c
net/ipv4/ipip.c
+1
-2
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_tunnel.c
+1
-2
net/ipv6/sit.c
net/ipv6/sit.c
+1
-4
No files found.
include/net/xfrm.h
View file @
4e766f6c
...
...
@@ -562,6 +562,15 @@ secpath_put(struct sec_path *sp)
extern
struct
sec_path
*
secpath_dup
(
struct
sec_path
*
src
);
static
inline
void
secpath_reset
(
struct
sk_buff
*
skb
)
{
#ifdef CONFIG_XFRM
secpath_put
(
skb
->
sp
);
skb
->
sp
=
NULL
;
#endif
}
static
inline
int
__xfrm4_state_addr_cmp
(
struct
xfrm_tmpl
*
tmpl
,
struct
xfrm_state
*
x
)
{
...
...
net/ipv4/ip_gre.c
View file @
4e766f6c
...
...
@@ -601,8 +601,7 @@ int ipgre_rcv(struct sk_buff *skb)
read_lock
(
&
ipgre_lock
);
if
((
tunnel
=
ipgre_tunnel_lookup
(
iph
->
saddr
,
iph
->
daddr
,
key
))
!=
NULL
)
{
secpath_put
(
skb
->
sp
);
skb
->
sp
=
NULL
;
secpath_reset
(
skb
);
skb
->
mac
.
raw
=
skb
->
nh
.
raw
;
skb
->
nh
.
raw
=
__pskb_pull
(
skb
,
offset
);
...
...
net/ipv4/ipip.c
View file @
4e766f6c
...
...
@@ -483,8 +483,7 @@ static int ipip_rcv(struct sk_buff *skb)
return
0
;
}
secpath_put
(
skb
->
sp
);
skb
->
sp
=
NULL
;
secpath_reset
(
skb
);
skb
->
mac
.
raw
=
skb
->
nh
.
raw
;
skb
->
nh
.
raw
=
skb
->
data
;
...
...
net/ipv6/ip6_tunnel.c
View file @
4e766f6c
...
...
@@ -515,8 +515,7 @@ int ip6ip6_rcv(struct sk_buff **pskb, unsigned int *nhoffp)
read_unlock
(
&
ip6ip6_lock
);
goto
discard
;
}
secpath_put
(
skb
->
sp
);
skb
->
sp
=
NULL
;
secpath_reset
(
skb
);
skb
->
mac
.
raw
=
skb
->
nh
.
raw
;
skb
->
nh
.
raw
=
skb
->
data
;
skb
->
protocol
=
htons
(
ETH_P_IPV6
);
...
...
net/ipv6/sit.c
View file @
4e766f6c
...
...
@@ -377,10 +377,7 @@ static int ipip6_rcv(struct sk_buff *skb)
read_lock
(
&
ipip6_lock
);
if
((
tunnel
=
ipip6_tunnel_lookup
(
iph
->
saddr
,
iph
->
daddr
))
!=
NULL
)
{
#ifdef CONFIG_XFRM
secpath_put
(
skb
->
sp
);
skb
->
sp
=
NULL
;
#endif
secpath_reset
(
skb
);
skb
->
mac
.
raw
=
skb
->
nh
.
raw
;
skb
->
nh
.
raw
=
skb
->
data
;
memset
(
&
(
IPCB
(
skb
)
->
opt
),
0
,
sizeof
(
struct
ip_options
));
...
...
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