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
26ddadee
Commit
26ddadee
authored
Feb 12, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Fix mis-patch of previous changes.
parent
e1be85a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
net/key/af_key.c
net/key/af_key.c
+15
-0
No files found.
net/key/af_key.c
View file @
26ddadee
...
...
@@ -1416,6 +1416,21 @@ static struct sk_buff * pfkey_xfrm_policy2msg_prep(struct xfrm_policy *xp)
if
(
skb
==
NULL
)
return
ERR_PTR
(
-
ENOBUFS
);
return
skb
;
}
static
void
pfkey_xfrm_policy2msg
(
struct
sk_buff
*
skb
,
struct
xfrm_policy
*
xp
,
int
dir
)
{
struct
sadb_msg
*
hdr
;
struct
sadb_address
*
addr
;
struct
sadb_lifetime
*
lifetime
;
struct
sadb_x_policy
*
pol
;
struct
sockaddr_in
*
sin
;
int
i
;
int
size
;
size
=
pfkey_xfrm_policy2msg_size
(
xp
);
/* call should fill header later */
hdr
=
(
struct
sadb_msg
*
)
skb_put
(
skb
,
sizeof
(
struct
sadb_msg
));
memset
(
hdr
,
0
,
size
);
/* XXX do we need this ? */
...
...
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