History

Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next

Steffen Klassert says: ==================== 1) Introduce skb_to_sgvec_nomark function to add further data to the sg list without calling sg_unmark_end first. Needed to add extended sequence number informations. From Fan Du. 2) Add IPsec extended sequence numbers support to the Authentication Header protocol for ipv4 and ipv6. From Fan Du. 3) Make the IPsec flowcache namespace aware, from Fan Du. 4) Avoid creating temporary SA for every packet when no key manager is registered. From Horia Geanta. 5) Support filtering of SA dumps to show only the SAs that match a given filter. From Nicolas Dichtel. 6) Remove caching of xfrm_policy_sk_bundles. The cached socket policy bundles are never used, instead we create a new cache entry whenever xfrm_lookup() is called on a socket policy. Most protocols cache the used routes to the socket, so this caching is not needed. 7) Fix a forgotten SADB_X_EXT_FILTER length check in pfkey, from Nicolas Dichtel. 8) Cleanup error handling of xfrm_state_clone. ====================

David S. Miller committed 12 years ago

Commit 1f5a7402 parents 3b5c8ab cc9ab6017 files · +396 −149Browse files

Showing the changes to include/uapi/linux (2 of 17 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/pfkeyv2.h +14 −1
  2. include/uapi/linux/xfrm.h +10 −0
include/uapi/linux/pfkeyv2.h+14−1
@@ -235,6 +235,18 @@ struct sadb_x_kmaddress { · 234 unmodified lines
235235 } __attribute__((packed));
236236 /* sizeof(struct sadb_x_kmaddress) == 8 */
237237
238+/* To specify the SA dump filter */
239+struct sadb_x_filter {
240+ __u16 sadb_x_filter_len;
241+ __u16 sadb_x_filter_exttype;
242+ __u32 sadb_x_filter_saddr[4];
243+ __u32 sadb_x_filter_daddr[4];
244+ __u16 sadb_x_filter_family;
245+ __u8 sadb_x_filter_splen;
246+ __u8 sadb_x_filter_dplen;
247+} __attribute__((packed));
248+/* sizeof(struct sadb_x_filter) == 40 */
249+
238250 /* Message types */
239251 #define SADB_RESERVED 0
240252 #define SADB_GETSPI 1
@@ -358,7 +370,8 @@ struct sadb_x_kmaddress { · 117 unmodified lines
358370 #define SADB_X_EXT_SEC_CTX 24
359371 /* Used with MIGRATE to pass @ to IKE for negotiation */
360372 #define SADB_X_EXT_KMADDRESS 25
361−#define SADB_EXT_MAX 25
373+#define SADB_X_EXT_FILTER 26
374+#define SADB_EXT_MAX 26
362375
363376 /* Identity Extension values */
364377 #define SADB_IDENTTYPE_RESERVED 0
include/uapi/linux/xfrm.h+10−0
@@ -298,6 +298,8 @@ enum xfrm_attr_type_t { · 297 unmodified lines
298298 XFRMA_TFCPAD, /* __u32 */
299299 XFRMA_REPLAY_ESN_VAL, /* struct xfrm_replay_esn */
300300 XFRMA_SA_EXTRA_FLAGS, /* __u32 */
301+ XFRMA_PROTO, /* __u8 */
302+ XFRMA_FILTER, /* struct xfrm_filter */
301303 __XFRMA_MAX
302304
303305 #define XFRMA_MAX (__XFRMA_MAX - 1)
@@ -474,6 +476,14 @@ struct xfrm_user_mapping { · 170 unmodified lines
474476 __be16 new_sport;
475477 };
476478
479+struct xfrm_filter {
480+ xfrm_address_t saddr;
481+ xfrm_address_t daddr;
482+ __u16 family;
483+ __u8 splen;
484+ __u8 dplen;
485+};
486+
477487 #ifndef __KERNEL__
478488 /* backwards compatibility for userspace */
479489 #define XFRMGRP_ACQUIRE 1