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 __LINUX_DECNET_NETFILTER_H 20#define __LINUX_DECNET_NETFILTER_H 21#include <linux/netfilter.h> 22#include <limits.h> 23#define NFC_DN_SRC 0x0001 24#define NFC_DN_DST 0x0002 25#define NFC_DN_IF_IN 0x0004 26#define NFC_DN_IF_OUT 0x0008 27#define NF_DN_PRE_ROUTING 0 28#define NF_DN_LOCAL_IN 1 29#define NF_DN_FORWARD 2 30#define NF_DN_LOCAL_OUT 3 31#define NF_DN_POST_ROUTING 4 32#define NF_DN_HELLO 5 33#define NF_DN_ROUTE 6 34#define NF_DN_NUMHOOKS 7 35enum nf_dn_hook_priorities { 36 NF_DN_PRI_FIRST = INT_MIN, 37 NF_DN_PRI_CONNTRACK = - 200, 38 NF_DN_PRI_MANGLE = - 150, 39 NF_DN_PRI_NAT_DST = - 100, 40 NF_DN_PRI_FILTER = 0, 41 NF_DN_PRI_NAT_SRC = 100, 42 NF_DN_PRI_DNRTMSG = 200, 43 NF_DN_PRI_LAST = INT_MAX, 44}; 45struct nf_dn_rtmsg { 46 int nfdn_ifindex; 47}; 48#define NFDN_RTMSG(r) ((unsigned char *) (r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg))) 49#define DNRMG_L1_GROUP 0x01 50#define DNRMG_L2_GROUP 0x02 51enum { 52 DNRNG_NLGRP_NONE, 53#define DNRNG_NLGRP_NONE DNRNG_NLGRP_NONE 54 DNRNG_NLGRP_L1, 55#define DNRNG_NLGRP_L1 DNRNG_NLGRP_L1 56 DNRNG_NLGRP_L2, 57#define DNRNG_NLGRP_L2 DNRNG_NLGRP_L2 58 __DNRNG_NLGRP_MAX 59}; 60#define DNRNG_NLGRP_MAX (__DNRNG_NLGRP_MAX - 1) 61#endif 62