Colin Cross | 07a5832 | 2022-02-08 19:45:27 -0800 | [diff] [blame^] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _IPT_CLUSTERIP_H_target |
| 20 | #define _IPT_CLUSTERIP_H_target |
| 21 | #include <linux/types.h> |
| 22 | #include <linux/if_ether.h> |
| 23 | enum clusterip_hashmode { |
| 24 | CLUSTERIP_HASHMODE_SIP = 0, |
| 25 | CLUSTERIP_HASHMODE_SIP_SPT, |
| 26 | CLUSTERIP_HASHMODE_SIP_SPT_DPT, |
| 27 | }; |
| 28 | #define CLUSTERIP_HASHMODE_MAX CLUSTERIP_HASHMODE_SIP_SPT_DPT |
| 29 | #define CLUSTERIP_MAX_NODES 16 |
| 30 | #define CLUSTERIP_FLAG_NEW 0x00000001 |
| 31 | struct clusterip_config; |
| 32 | struct ipt_clusterip_tgt_info { |
| 33 | __u32 flags; |
| 34 | __u8 clustermac[ETH_ALEN]; |
| 35 | __u16 num_total_nodes; |
| 36 | __u16 num_local_nodes; |
| 37 | __u16 local_nodes[CLUSTERIP_MAX_NODES]; |
| 38 | __u32 hash_mode; |
| 39 | __u32 hash_initval; |
| 40 | struct clusterip_config * config; |
| 41 | }; |
| 42 | #endif |