Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ipv6.h File Reference
#include <uapi/linux/ipv6.h>
#include <linux/icmpv6.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <net/inet_sock.h>

Go to the source code of this file.

Data Structures

struct  ipv6_devconf
 
struct  ipv6_params
 
struct  inet6_skb_parm
 
struct  inet6_request_sock
 
struct  tcp6_request_sock
 
struct  ipv6_pinfo
 
struct  raw6_sock
 
struct  udp6_sock
 
struct  tcp6_sock
 
struct  inet6_timewait_sock
 
struct  tcp6_timewait_sock
 

Macros

#define ipv6_optlen(p)   (((p)->hdrlen+1) << 3)
 
#define IP6SKB_XFRM_TRANSFORMED   1
 
#define IP6SKB_FORWARDED   2
 
#define IP6SKB_REROUTED   4
 
#define IP6CB(skb)   ((struct inet6_skb_parm*)((skb)->cb))
 
#define IP6CBMTU(skb)   ((struct ip6_mtuinfo *)((skb)->cb))
 
#define __ipv6_only_sock(sk)   0
 
#define ipv6_only_sock(sk)   0
 
#define __inet6_rcv_saddr(__sk)   NULL
 
#define inet6_rcv_saddr(__sk)   NULL
 
#define tcp_twsk_ipv6only(__sk)   0
 
#define inet_v6_ipv6only(__sk)   0
 
#define INET6_MATCH(__sk, __net, __hash, __saddr, __daddr, __ports, __dif)
 
#define INET6_TW_MATCH(__sk, __net, __hash, __saddr, __daddr, __ports, __dif)
 

Functions

int inet6_sk_rebuild_header (struct sock *sk)
 

Variables

struct ipv6_params ipv6_defaults
 

Macro Definition Documentation

#define __inet6_rcv_saddr (   __sk)    NULL

Definition at line 360 of file ipv6.h.

#define __ipv6_only_sock (   sk)    0

Definition at line 341 of file ipv6.h.

#define INET6_MATCH (   __sk,
  __net,
  __hash,
  __saddr,
  __daddr,
  __ports,
  __dif 
)
Value:
(((__sk)->sk_hash == (__hash)) && sock_net((__sk)) == (__net) && \
((*((__portpair *)&(inet_sk(__sk)->inet_dport))) == (__ports)) && \
((__sk)->sk_family == AF_INET6) && \
ipv6_addr_equal(&inet6_sk(__sk)->daddr, (__saddr)) && \
ipv6_addr_equal(&inet6_sk(__sk)->rcv_saddr, (__daddr)) && \
(!((__sk)->sk_bound_dev_if) || ((__sk)->sk_bound_dev_if == (__dif))))

Definition at line 366 of file ipv6.h.

#define inet6_rcv_saddr (   __sk)    NULL

Definition at line 361 of file ipv6.h.

#define INET6_TW_MATCH (   __sk,
  __net,
  __hash,
  __saddr,
  __daddr,
  __ports,
  __dif 
)
Value:
(((__sk)->sk_hash == (__hash)) && sock_net((__sk)) == (__net) && \
(*((__portpair *)&(inet_twsk(__sk)->tw_dport)) == (__ports)) && \
((__sk)->sk_family == PF_INET6) && \
(ipv6_addr_equal(&inet6_twsk(__sk)->tw_v6_daddr, (__saddr))) && \
(ipv6_addr_equal(&inet6_twsk(__sk)->tw_v6_rcv_saddr, (__daddr))) && \
(!((__sk)->sk_bound_dev_if) || ((__sk)->sk_bound_dev_if == (__dif))))

Definition at line 374 of file ipv6.h.

#define inet_v6_ipv6only (   __sk)    0

Definition at line 363 of file ipv6.h.

#define IP6CB (   skb)    ((struct inet6_skb_parm*)((skb)->cb))

Definition at line 104 of file ipv6.h.

#define IP6CBMTU (   skb)    ((struct ip6_mtuinfo *)((skb)->cb))

Definition at line 105 of file ipv6.h.

#define IP6SKB_FORWARDED   2

Definition at line 100 of file ipv6.h.

#define IP6SKB_REROUTED   4

Definition at line 101 of file ipv6.h.

#define IP6SKB_XFRM_TRANSFORMED   1

Definition at line 99 of file ipv6.h.

#define ipv6_only_sock (   sk)    0

Definition at line 342 of file ipv6.h.

#define ipv6_optlen (   p)    (((p)->hdrlen+1) << 3)

Definition at line 6 of file ipv6.h.

#define tcp_twsk_ipv6only (   __sk)    0

Definition at line 362 of file ipv6.h.

Function Documentation

int inet6_sk_rebuild_header ( struct sock sk)

Definition at line 642 of file af_inet6.c.

Variable Documentation

struct ipv6_params ipv6_defaults

Definition at line 76 of file af_inet6.c.