blob: 9928412baba60e6abb7b45736db0bf9e66c90540 [file] [log] [blame]
Jonghwan Hyun4a9a6712017-11-13 14:43:55 -08001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17#ifndef __CUSTOM_HEADERS__
18#define __CUSTOM_HEADERS__
19struct headers_t {
20 packet_out_header_t packet_out;
21 packet_in_header_t packet_in;
22 ethernet_t ethernet;
23 ipv4_t ipv4;
24 tcp_t tcp;
25 udp_t udp;
26}
27
28struct local_metadata_t {
29 bit<16> l4_src_port;
30 bit<16> l4_dst_port;
31 next_hop_id_t next_hop_id;
32}
33
Frank Wangd7e3b4b2017-09-24 13:37:54 +090034#endif