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
dbbb588c
Commit
dbbb588c
authored
Nov 12, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
1e1af316
a88478b2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
net/ipv4/ah.c
net/ipv4/ah.c
+1
-1
net/ipv4/esp.c
net/ipv4/esp.c
+1
-1
net/ipv4/udp.c
net/ipv4/udp.c
+1
-1
net/ipv4/xfrm_input.c
net/ipv4/xfrm_input.c
+1
-1
No files found.
net/ipv4/ah.c
View file @
dbbb588c
...
@@ -189,7 +189,7 @@ int ah_output(struct sk_buff *skb)
...
@@ -189,7 +189,7 @@ int ah_output(struct sk_buff *skb)
top_iph
->
saddr
=
x
->
props
.
saddr
.
xfrm4_addr
;
top_iph
->
saddr
=
x
->
props
.
saddr
.
xfrm4_addr
;
top_iph
->
daddr
=
x
->
id
.
daddr
.
xfrm4_addr
;
top_iph
->
daddr
=
x
->
id
.
daddr
.
xfrm4_addr
;
ah
=
(
struct
ip_auth_hdr
*
)(
top_iph
+
1
);
ah
=
(
struct
ip_auth_hdr
*
)(
top_iph
+
1
);
ah
->
nexthdr
=
IPPROTO_IP
;
ah
->
nexthdr
=
IPPROTO_IP
IP
;
}
else
{
}
else
{
memcpy
(
&
tmp_iph
,
skb
->
data
,
iph
->
ihl
*
4
);
memcpy
(
&
tmp_iph
,
skb
->
data
,
iph
->
ihl
*
4
);
top_iph
=
(
struct
iphdr
*
)
skb_push
(
skb
,
x
->
props
.
header_len
);
top_iph
=
(
struct
iphdr
*
)
skb_push
(
skb
,
x
->
props
.
header_len
);
...
...
net/ipv4/esp.c
View file @
dbbb588c
...
@@ -370,7 +370,7 @@ int esp_output(struct sk_buff *skb)
...
@@ -370,7 +370,7 @@ int esp_output(struct sk_buff *skb)
if
(
x
->
props
.
mode
)
{
if
(
x
->
props
.
mode
)
{
top_iph
=
(
struct
iphdr
*
)
skb_push
(
skb
,
x
->
props
.
header_len
);
top_iph
=
(
struct
iphdr
*
)
skb_push
(
skb
,
x
->
props
.
header_len
);
esph
=
(
struct
ip_esp_hdr
*
)(
top_iph
+
1
);
esph
=
(
struct
ip_esp_hdr
*
)(
top_iph
+
1
);
*
(
u8
*
)(
trailer
->
tail
-
1
)
=
IPPROTO_IP
;
*
(
u8
*
)(
trailer
->
tail
-
1
)
=
IPPROTO_IP
IP
;
top_iph
->
ihl
=
5
;
top_iph
->
ihl
=
5
;
top_iph
->
version
=
4
;
top_iph
->
version
=
4
;
top_iph
->
tos
=
iph
->
tos
;
/* DS disclosed */
top_iph
->
tos
=
iph
->
tos
;
/* DS disclosed */
...
...
net/ipv4/udp.c
View file @
dbbb588c
...
@@ -944,7 +944,7 @@ static int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
...
@@ -944,7 +944,7 @@ static int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
/*
/*
* Charge it to the socket, dropping if the queue is full.
* Charge it to the socket, dropping if the queue is full.
*/
*/
if
(
!
xfrm_policy_check
(
NULL
,
XFRM_POLICY_IN
,
skb
))
{
if
(
!
xfrm_policy_check
(
sk
,
XFRM_POLICY_IN
,
skb
))
{
kfree_skb
(
skb
);
kfree_skb
(
skb
);
return
-
1
;
return
-
1
;
}
}
...
...
net/ipv4/xfrm_input.c
View file @
dbbb588c
...
@@ -91,7 +91,7 @@ int xfrm4_rcv(struct sk_buff *skb)
...
@@ -91,7 +91,7 @@ int xfrm4_rcv(struct sk_buff *skb)
iph
=
skb
->
nh
.
iph
;
iph
=
skb
->
nh
.
iph
;
if
(
x
->
props
.
mode
)
{
if
(
x
->
props
.
mode
)
{
if
(
iph
->
protocol
!=
IPPROTO_IP
)
if
(
iph
->
protocol
!=
IPPROTO_IP
IP
)
goto
drop
;
goto
drop
;
skb
->
nh
.
raw
=
skb
->
data
;
skb
->
nh
.
raw
=
skb
->
data
;
iph
=
skb
->
nh
.
iph
;
iph
=
skb
->
nh
.
iph
;
...
...
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