diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ipv6.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 9bed5d483405..81d4455f6e14 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -411,6 +411,25 @@ struct ip6_create_arg { | |||
411 | void ip6_frag_init(struct inet_frag_queue *q, void *a); | 411 | void ip6_frag_init(struct inet_frag_queue *q, void *a); |
412 | bool ip6_frag_match(struct inet_frag_queue *q, void *a); | 412 | bool ip6_frag_match(struct inet_frag_queue *q, void *a); |
413 | 413 | ||
414 | /* | ||
415 | * Equivalent of ipv4 struct ip | ||
416 | */ | ||
417 | struct frag_queue { | ||
418 | struct inet_frag_queue q; | ||
419 | |||
420 | __be32 id; /* fragment id */ | ||
421 | u32 user; | ||
422 | struct in6_addr saddr; | ||
423 | struct in6_addr daddr; | ||
424 | |||
425 | int iif; | ||
426 | unsigned int csum; | ||
427 | __u16 nhoffset; | ||
428 | }; | ||
429 | |||
430 | void ip6_expire_frag_queue(struct net *net, struct frag_queue *fq, | ||
431 | struct inet_frags *frags); | ||
432 | |||
414 | static inline bool ipv6_addr_any(const struct in6_addr *a) | 433 | static inline bool ipv6_addr_any(const struct in6_addr *a) |
415 | { | 434 | { |
416 | #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 | 435 | #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 |