projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f95ac9
)
key: Use xfrm_addr_cmp() where appropriate.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Sun, 27 Apr 2008 18:17:38 +0000
(
03:17
+0900)
committer
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Wed, 11 Jun 2008 17:38:17 +0000
(
02:38
+0900)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/key/af_key.c
patch
|
blob
|
blame
|
history
diff --git
a/net/key/af_key.c
b/net/key/af_key.c
index 771bd61d63032d91dc50a18d12249ba2d39d811d..841af9f2d5e0d5d341ac077d44d459a9a1946fcd 100644
(file)
--- a/
net/key/af_key.c
+++ b/
net/key/af_key.c
@@
-767,14
+767,7
@@
static struct sk_buff *__pfkey_xfrm_state2msg(struct xfrm_state *x,
}
/* identity & sensitivity */
-
- if ((x->props.family == AF_INET &&
- x->sel.saddr.a4 != x->props.saddr.a4)
-#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
- || (x->props.family == AF_INET6 &&
- memcmp (x->sel.saddr.a6, x->props.saddr.a6, sizeof (struct in6_addr)))
-#endif
- )
+ if (xfrm_addr_cmp(&x->sel.saddr, &x->props.saddr, x->props.family))
size += sizeof(struct sadb_address) + sockaddr_size;
if (add_keys) {