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 #ifndef __dnsjit_core_object_h 22 #define __dnsjit_core_object_h 23 24 #define CORE_OBJECT_NONE 0 25 #define CORE_OBJECT_PCAP 1 26 /* link level objects */ 27 #define CORE_OBJECT_ETHER 10 28 #define CORE_OBJECT_NULL 11 29 #define CORE_OBJECT_LOOP 12 30 #define CORE_OBJECT_LINUXSLL 13 31 #define CORE_OBJECT_IEEE802 14 32 #define CORE_OBJECT_GRE 15 33 /* protocol objects */ 34 #define CORE_OBJECT_IP 20 35 #define CORE_OBJECT_IP6 21 36 #define CORE_OBJECT_ICMP 22 37 #define CORE_OBJECT_ICMP6 23 38 /* payload carrying objects */ 39 #define CORE_OBJECT_UDP 30 40 #define CORE_OBJECT_TCP 31 41 /* payload */ 42 #define CORE_OBJECT_PAYLOAD 40 43 /* service object(s) */ 44 #define CORE_OBJECT_DNS 50 45 46 #include <stdint.h> 47 #include <dnsjit/core/object.hh> 48 49 #define CORE_OBJECT_INIT(type, prev) (core_object_t*)prev, type 50 51 #endif 52