1 /*
2  * Copyright (c) 2018-2021, OARC, Inc.
3  * All rights reserved.
4  *
5  * This file is part of dnsjit.
6  *
7  * dnsjit is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * dnsjit is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with dnsjit.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 //lua:require("dnsjit.core.object_h")
22 
23 typedef struct core_object_udp {
24     const core_object_t* obj_prev;
25     int32_t              obj_type;
26 
27     uint16_t sport;
28     uint16_t dport;
29     uint16_t ulen;
30     uint16_t sum;
31 } core_object_udp_t;
32 
33 core_object_udp_t* core_object_udp_copy(const core_object_udp_t* self);
34 void               core_object_udp_free(core_object_udp_t* self);
35