Skip to contentSkip to conversation

extension to XFRM for dynamic endpoint update (MIGRATE)

RFC PATCH In review Shinta Sugimoto 2 participants 3 messages Feb 1, 2007 – Feb 2, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 4/5 extension to XFRM for dynamic endpoint update (MIGRATE)

include/linux/pfkeyv2.h +2 -1
index 265bafa..26a518b 100644
@@ -251,7 +251,8 @@ #define SADB_X_SPDSETIDX	20
 #define SADB_X_SPDEXPIRE	21
 #define SADB_X_SPDDELETE2	22
 #define SADB_X_NAT_T_NEW_MAPPING	23
-#define SADB_MAX		23
+#define SADB_X_MIGRATE		24
+#define SADB_MAX		24
 
 /* Security Association flags */
 #define SADB_SAFLAGS_PFS	1
net/key/af_key.c +415 -0

439 lines not on this page · raw message

#1 lore raw

net/key/af_key.c out: · line 2434

Quoted 3 lines · Shinta Sugimoto
net/key/af_key.c +3 -0
+	/* allow IPSEC_PROTO_ANY to match all protocols */
+	//sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
+	sel.proto = sa->sadb_address_proto;

Which one is correct ? :-)

net/key/af_key.c out: · line 2434

Quoted 3 lines
net/key/af_key.c +3 -0
+	/* allow IPSEC_PROTO_ANY to match all protocols */
+	//sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
+	sel.proto = sa->sadb_address_proto;

...

- James

Signature · 2 lines
James Morris
<[email protected]>
#2 lore raw

Re: (usagi-core 32165) Re: [RFC][PATCH][XFRM][4/5] extension to XFRM for dynamic endpoint update (MIGRATE)

Quoted 7 lines · On Thu, 1 Feb 2007 09:50:00 -0500 (EST) James Morris <[email protected]> wrote:

net/key/af_key.c out: · line 2434

Quoted 3 lines · Shinta Sugimoto
net/key/af_key.c +3 -0
+	/* allow IPSEC_PROTO_ANY to match all protocols */
+	//sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
+	sel.proto = sa->sadb_address_proto;

Which one is correct ? :-)

Thank you for point this out. The following should be correct.

sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);

Quoted 6 lines
Quoted 4 lines
net/key/af_key.c +3 -0
+	/* allow IPSEC_PROTO_ANY to match all protocols */
+	//sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
+	sel.proto = sa->sadb_address_proto;

...

Same for this one. I will fix them.

Regards,
Shinta