2 * Copyright (c) 2011 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #error "Use this header only with sparse. It is not a correct implementation."
21 #ifndef __NETINET_IP6_SPARSE
22 #define __NETINET_IP6_SPARSE 1
24 #include <netinet/in.h>
29 ovs_be32 ip6_un1_flow;
30 ovs_be16 ip6_un1_plen;
36 struct in6_addr ip6_src;
37 struct in6_addr ip6_dst;
40 #define ip6_vfc ip6_ctlun.ip6_un2_vfc
41 #define ip6_flow ip6_ctlun.ip6_un1.ip6_un1_flow
42 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen
43 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt
44 #define ip6_hlim ip6_ctlun.ip6_un1.ip6_un1_hlim
45 #define ip6_hops ip6_ctlun.ip6_un1.ip6_un1_hlim
54 uint8_t ip6f_reserved;
59 #define IP6F_OFF_MASK ((OVS_FORCE ovs_be16) 0xfff8)
61 #endif /* netinet/ip6.h sparse */