diff options
author | Yuyang Huang <yuyanghuang@google.com> | 2024-04-03 00:19:05 +0900 |
---|---|---|
committer | Yuyang Huang <yuyanghuang@google.com> | 2024-04-02 16:22:24 +0000 |
commit | 4b33e23ae715062c61de94f77eeaf17a2d1efce0 (patch) | |
tree | 8ca9ed0faf39f2896ba637b844eb33397c152bb8 | |
parent | f9d30ca196a15415fa9f3ea3352d745b739a038d (diff) | |
download | apf-4b33e23ae715062c61de94f77eeaf17a2d1efce0.tar.gz |
Remove the unused IPPROTO_{ICMP|ICMPV6|TCP|UDP} constants
Test: TH
Change-Id: I962e709e332bbf74cb15da6ab0733068dff20e3c
-rw-r--r-- | apf_defs.h | 16 | ||||
-rw-r--r-- | v5/apf_interpreter.c | 16 |
2 files changed, 0 insertions, 32 deletions
@@ -16,22 +16,6 @@ typedef enum { #define ETH_P_IP 0x0800 #define ETH_P_IPV6 0x86DD -#ifndef IPPROTO_ICMP -#define IPPROTO_ICMP 1 -#endif - -#ifndef IPPROTO_TCP -#define IPPROTO_TCP 6 -#endif - -#ifndef IPPROTO_UDP -#define IPPROTO_UDP 17 -#endif - -#ifndef IPPROTO_ICMPV6 -#define IPPROTO_ICMPV6 58 -#endif - #define ETH_HLEN 14 #define IPV4_HLEN 20 #define IPV6_HLEN 40 diff --git a/v5/apf_interpreter.c b/v5/apf_interpreter.c index 4bba410..16fce48 100644 --- a/v5/apf_interpreter.c +++ b/v5/apf_interpreter.c @@ -45,22 +45,6 @@ typedef enum { #define ETH_P_IP 0x0800 #define ETH_P_IPV6 0x86DD -#ifndef IPPROTO_ICMP -#define IPPROTO_ICMP 1 -#endif - -#ifndef IPPROTO_TCP -#define IPPROTO_TCP 6 -#endif - -#ifndef IPPROTO_UDP -#define IPPROTO_UDP 17 -#endif - -#ifndef IPPROTO_ICMPV6 -#define IPPROTO_ICMPV6 58 -#endif - #define ETH_HLEN 14 #define IPV4_HLEN 20 #define IPV6_HLEN 40 |