Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
protocol.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
20 #ifndef HICN_PROTOCOL_H
21 #define HICN_PROTOCOL_H
22 
23 #include "protocol/ah.h"
24 #include "protocol/ipv4.h"
25 #include "protocol/ipv6.h"
26 #include "protocol/icmp.h"
27 #include "protocol/icmprd.h"
28 #include "protocol/tcp.h"
29 #include "protocol/udp.h"
30 
31 typedef union
32 {
33  _ipv4_header_t ipv4;
34  _ipv6_header_t ipv6;
35  _tcp_header_t tcp;
36  _udp_header_t udp;
37  _icmp_header_t icmp;
38  _icmprd_header_t icmprd;
39  _ah_header_t ah;
40  void *bytes;
42 
43 #endif /* HICN_PROTOCOL_H */
44 
45 /*
46  * fd.io coding-style-patch-verification: ON
47  *
48  * Local Variables:
49  * eval: (c-set-style "gnu")
50  * End:
51  */
_ah_header_t
Definition: ah.h:36
_icmprd_header_t
Definition: icmprd.h:50
_icmp_header_t
Definition: icmp.h:30
_udp_header_t
Definition: udp.h:24
_tcp_header_t
Definition: tcp.h:33
hicn_protocol_t
Definition: protocol.h:31
_ipv4_header_t
Definition: ipv4.h:30
_ipv6_header_t
Definition: ipv6.h:26