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
3577484e
Commit
3577484e
authored
Mar 19, 2003
by
James Morris
Committed by
David S. Miller
Mar 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: return error when no dst in ah & esp output.
parent
b952a29d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
net/ipv4/ah.c
net/ipv4/ah.c
+3
-1
net/ipv4/esp.c
net/ipv4/esp.c
+3
-1
net/ipv6/ah6.c
net/ipv6/ah6.c
+3
-1
net/ipv6/esp6.c
net/ipv6/esp6.c
+3
-1
No files found.
net/ipv4/ah.c
View file @
3577484e
...
@@ -141,8 +141,10 @@ static int ah_output(struct sk_buff *skb)
...
@@ -141,8 +141,10 @@ static int ah_output(struct sk_buff *skb)
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
packets
++
;
x
->
curlft
.
packets
++
;
spin_unlock_bh
(
&
x
->
lock
);
spin_unlock_bh
(
&
x
->
lock
);
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
{
err
=
-
EHOSTUNREACH
;
goto
error_nolock
;
goto
error_nolock
;
}
return
NET_XMIT_BYPASS
;
return
NET_XMIT_BYPASS
;
error:
error:
...
...
net/ipv4/esp.c
View file @
3577484e
...
@@ -145,8 +145,10 @@ int esp_output(struct sk_buff *skb)
...
@@ -145,8 +145,10 @@ int esp_output(struct sk_buff *skb)
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
packets
++
;
x
->
curlft
.
packets
++
;
spin_unlock_bh
(
&
x
->
lock
);
spin_unlock_bh
(
&
x
->
lock
);
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
{
err
=
-
EHOSTUNREACH
;
goto
error_nolock
;
goto
error_nolock
;
}
return
NET_XMIT_BYPASS
;
return
NET_XMIT_BYPASS
;
error:
error:
...
...
net/ipv6/ah6.c
View file @
3577484e
...
@@ -136,8 +136,10 @@ int ah6_output(struct sk_buff *skb)
...
@@ -136,8 +136,10 @@ int ah6_output(struct sk_buff *skb)
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
packets
++
;
x
->
curlft
.
packets
++
;
spin_unlock_bh
(
&
x
->
lock
);
spin_unlock_bh
(
&
x
->
lock
);
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
{
err
=
-
EHOSTUNREACH
;
goto
error_nolock
;
goto
error_nolock
;
}
return
NET_XMIT_BYPASS
;
return
NET_XMIT_BYPASS
;
error:
error:
spin_unlock_bh
(
&
x
->
lock
);
spin_unlock_bh
(
&
x
->
lock
);
...
...
net/ipv6/esp6.c
View file @
3577484e
...
@@ -241,8 +241,10 @@ int esp6_output(struct sk_buff *skb)
...
@@ -241,8 +241,10 @@ int esp6_output(struct sk_buff *skb)
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
bytes
+=
skb
->
len
;
x
->
curlft
.
packets
++
;
x
->
curlft
.
packets
++
;
spin_unlock_bh
(
&
x
->
lock
);
spin_unlock_bh
(
&
x
->
lock
);
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
if
((
skb
->
dst
=
dst_pop
(
dst
))
==
NULL
)
{
err
=
-
EHOSTUNREACH
;
goto
error_nolock
;
goto
error_nolock
;
}
return
NET_XMIT_BYPASS
;
return
NET_XMIT_BYPASS
;
error:
error:
...
...
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