├── scripts ├── wrapper │ ├── .gitignore │ ├── qemu │ │ ├── riscv32-unknown-elf-run │ │ ├── riscv64-unknown-elf-run │ │ ├── riscv32-unknown-linux-gnu-run │ │ └── riscv64-unknown-linux-gnu-run │ ├── awk │ │ └── awk.in │ └── sed │ │ └── sed.in ├── spike.exp └── cp_s ├── linux-headers └── include │ ├── linux │ ├── errno.h │ ├── poll.h │ ├── if_ppp.h │ ├── stddef.h │ ├── param.h │ ├── version.h │ ├── irqnr.h │ ├── ioctl.h │ ├── netfilter │ │ ├── xt_MARK.h │ │ ├── xt_helper.h │ │ ├── xt_pkttype.h │ │ ├── xt_CONNMARK.h │ │ ├── xt_cpu.h │ │ ├── xt_CLASSIFY.h │ │ ├── xt_length.h │ │ ├── xt_mac.h │ │ ├── xt_comment.h │ │ ├── xt_realm.h │ │ ├── xt_TCPMSS.h │ │ ├── xt_tcpmss.h │ │ ├── xt_mark.h │ │ ├── xt_connlabel.h │ │ ├── xt_nfacct.h │ │ ├── xt_CONNSECMARK.h │ │ ├── xt_state.h │ │ ├── xt_TEE.h │ │ ├── xt_rpfilter.h │ │ ├── xt_owner.h │ │ ├── xt_RATEEST.h │ │ ├── xt_cluster.h │ │ ├── xt_NFLOG.h │ │ ├── xt_TCPOPTSTRIP.h │ │ ├── xt_esp.h │ │ ├── xt_quota.h │ │ ├── ipset │ │ │ ├── ip_set_bitmap.h │ │ │ ├── ip_set_hash.h │ │ │ └── ip_set_list.h │ │ ├── xt_bpf.h │ │ ├── nf_conntrack_ftp.h │ │ ├── xt_devgroup.h │ │ ├── xt_LED.h │ │ ├── xt_ipcomp.h │ │ ├── xt_cgroup.h │ │ ├── xt_dccp.h │ │ ├── xt_SECMARK.h │ │ ├── xt_CHECKSUM.h │ │ ├── xt_physdev.h │ │ ├── xt_iprange.h │ │ ├── nf_conntrack_sctp.h │ │ ├── xt_TPROXY.h │ │ ├── xt_connbytes.h │ │ ├── xt_connlimit.h │ │ ├── xt_LOG.h │ │ ├── xt_socket.h │ │ ├── xt_limit.h │ │ ├── xt_DSCP.h │ │ ├── xt_ipvs.h │ │ ├── xt_string.h │ │ ├── xt_dscp.h │ │ ├── xt_AUDIT.h │ │ ├── xt_multiport.h │ │ ├── xt_l2tp.h │ │ ├── xt_time.h │ │ ├── xt_statistic.h │ │ ├── xt_connmark.h │ │ ├── xt_ecn.h │ │ ├── nf_tables_compat.h │ │ ├── xt_u32.h │ │ ├── xt_NFQUEUE.h │ │ ├── xt_rateest.h │ │ ├── nf_conntrack_tuple_common.h │ │ ├── xt_CT.h │ │ ├── nfnetlink_acct.h │ │ ├── xt_HMARK.h │ │ ├── xt_recent.h │ │ ├── xt_addrtype.h │ │ ├── xt_policy.h │ │ ├── nf_nat.h │ │ ├── xt_tcpudp.h │ │ └── nfnetlink_cthelper.h │ ├── arcfb.h │ ├── if_ltalk.h │ ├── string.h │ ├── unistd.h │ ├── utime.h │ ├── memfd.h │ ├── signal.h │ ├── veth.h │ ├── tc_ematch │ │ ├── tc_em_nbyte.h │ │ ├── tc_em_text.h │ │ └── tc_em_cmp.h │ ├── times.h │ ├── netfilter_bridge │ │ ├── ebt_pkttype.h │ │ ├── ebt_redirect.h │ │ ├── ebt_arpreply.h │ │ ├── ebt_nat.h │ │ ├── ebt_mark_m.h │ │ ├── ebt_nflog.h │ │ ├── ebt_log.h │ │ ├── ebt_limit.h │ │ ├── ebt_vlan.h │ │ ├── ebt_mark_t.h │ │ ├── ebt_arp.h │ │ ├── ebt_ip.h │ │ ├── ebt_ip6.h │ │ └── ebt_stp.h │ ├── mman.h │ ├── kcmp.h │ ├── un.h │ ├── virtio_rng.h │ ├── tc_act │ │ ├── tc_defact.h │ │ ├── tc_connmark.h │ │ ├── tc_ipt.h │ │ ├── tc_nat.h │ │ ├── tc_csum.h │ │ ├── tc_gact.h │ │ ├── tc_bpf.h │ │ ├── tc_vlan.h │ │ ├── tc_ife.h │ │ ├── tc_pedit.h │ │ └── tc_mirred.h │ ├── kdev_t.h │ ├── radeonfb.h │ ├── raw.h │ ├── netfilter_ipv6 │ │ ├── ip6t_NPT.h │ │ ├── ip6t_mh.h │ │ ├── ip6t_HL.h │ │ ├── ip6t_hl.h │ │ ├── ip6t_REJECT.h │ │ ├── ip6t_ah.h │ │ ├── ip6t_opts.h │ │ ├── ip6t_ipv6header.h │ │ ├── ip6t_LOG.h │ │ ├── ip6t_frag.h │ │ └── ip6t_rt.h │ ├── atm_he.h │ ├── if_phonet.h │ ├── kernel.h │ ├── netfilter_ipv4 │ │ ├── ipt_TTL.h │ │ ├── ipt_ecn.h │ │ ├── ipt_ah.h │ │ ├── ipt_ttl.h │ │ ├── ipt_REJECT.h │ │ ├── ipt_LOG.h │ │ ├── ipt_CLUSTERIP.h │ │ └── ipt_ECN.h │ ├── nfsd │ │ ├── stats.h │ │ └── debug.h │ ├── wanrouter.h │ ├── bcm933xx_hcs.h │ ├── netfilter_arp.h │ ├── oom.h │ ├── nvram.h │ ├── termios.h │ ├── reiserfs_xattr.h │ ├── atmclip.h │ ├── netconf.h │ ├── binfmts.h │ ├── hdlc.h │ ├── atmppp.h │ ├── netfilter_arp │ │ └── arpt_mangle.h │ ├── atm_eni.h │ ├── qnxtypes.h │ ├── usbip.h │ ├── wait.h │ ├── net_namespace.h │ ├── hw_breakpoint.h │ ├── if_plip.h │ ├── udf_fs_i.h │ ├── ncp_no.h │ ├── nfsacl.h │ ├── utsname.h │ ├── usb │ │ └── cdc-wdm.h │ ├── mpls_iptunnel.h │ ├── hpet.h │ ├── const.h │ ├── ila.h │ ├── uio.h │ ├── if_addrlabel.h │ ├── fou.h │ ├── sock_diag.h │ ├── socket.h │ ├── reiserfs_fs.h │ ├── coda_psdev.h │ ├── fadvise.h │ ├── netrom.h │ ├── netfilter_bridge.h │ ├── if_x25.h │ ├── if_slip.h │ ├── gameport.h │ ├── limits.h │ ├── lwtunnel.h │ ├── patchkey.h │ ├── cuda.h │ ├── baycom.h │ ├── kernel-page-flags.h │ ├── atmapi.h │ ├── in_route.h │ ├── atm_idt77105.h │ ├── if_cablemodem.h │ ├── thermal.h │ ├── dlm_plock.h │ ├── adfs_fs.h │ ├── if_alg.h │ ├── sysinfo.h │ ├── ipsec.h │ ├── smiapp.h │ ├── caif │ │ └── if_caif.h │ ├── bpqether.h │ ├── dvb │ │ └── version.h │ ├── atalk.h │ ├── gsmmux.h │ ├── kernelcapi.h │ ├── posix_types.h │ ├── elf-fdpic.h │ ├── stat.h │ ├── hsr_netlink.h │ ├── adb.h │ ├── isdn_divertif.h │ ├── if_infiniband.h │ ├── ivtvfb.h │ ├── sound.h │ ├── sunrpc │ │ └── debug.h │ ├── netlink_diag.h │ ├── dlm_netlink.h │ ├── signalfd.h │ ├── selinux_netlink.h │ ├── net_dropmon.h │ ├── atmarp.h │ ├── errqueue.h │ ├── reboot.h │ └── romfs_fs.h │ ├── asm │ ├── errno.h │ ├── fcntl.h │ ├── ioctl.h │ ├── mman.h │ ├── param.h │ ├── poll.h │ ├── stat.h │ ├── swab.h │ ├── types.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── msgbuf.h │ ├── sembuf.h │ ├── shmbuf.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── statfs.h │ ├── termios.h │ ├── resource.h │ ├── termbits.h │ ├── posix_types.h │ ├── setup.h │ ├── auxvec.h │ ├── byteorder.h │ ├── bitsperlong.h │ ├── unistd.h │ ├── sigcontext.h │ ├── siginfo.h │ └── ptrace.h │ ├── asm-generic │ ├── kvm_para.h │ ├── setup.h │ ├── shmparam.h │ ├── types.h │ ├── auxvec.h │ ├── ucontext.h │ ├── param.h │ ├── sockios.h │ ├── swab.h │ ├── bitsperlong.h │ ├── int-l64.h │ ├── signal-defs.h │ ├── int-ll64.h │ ├── poll.h │ ├── mman.h │ ├── ipcbuf.h │ └── sembuf.h │ ├── video │ ├── edid.h │ └── uvesafb.h │ └── mtd │ └── mtd-user.h ├── .gitignore ├── Makefile.pulp ├── .gitmodules └── .travis.yml /scripts/wrapper/.gitignore: -------------------------------------------------------------------------------- 1 | /awk/awk 2 | /sed/sed 3 | 4 | -------------------------------------------------------------------------------- /linux-headers/include/linux/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/linux/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/stat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_ppp.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linux-headers/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /scripts/wrapper/qemu/riscv32-unknown-elf-run: -------------------------------------------------------------------------------- 1 | qemu-riscv32 -L ${RISC_V_SYSROOT} $* 2 | -------------------------------------------------------------------------------- /scripts/wrapper/qemu/riscv64-unknown-elf-run: -------------------------------------------------------------------------------- 1 | qemu-riscv64 -L ${RISC_V_SYSROOT} $* 2 | -------------------------------------------------------------------------------- /scripts/wrapper/qemu/riscv32-unknown-linux-gnu-run: -------------------------------------------------------------------------------- 1 | qemu-riscv32 -L ${RISC_V_SYSROOT} $* 2 | -------------------------------------------------------------------------------- /scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run: -------------------------------------------------------------------------------- 1 | qemu-riscv64 -L ${RISC_V_SYSROOT} $* 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | autom4te.cache 2 | build 3 | config.log 4 | config.status 5 | Makefile 6 | .DS_Store 7 | -------------------------------------------------------------------------------- /linux-headers/include/linux/stddef.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef __always_inline 4 | #define __always_inline __inline__ 5 | #endif 6 | -------------------------------------------------------------------------------- /linux-headers/include/linux/param.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_PARAM_H 2 | #define _LINUX_PARAM_H 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /linux-headers/include/linux/version.h: -------------------------------------------------------------------------------- 1 | #define LINUX_VERSION_CODE 263682 2 | #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 3 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/kvm_para.h: -------------------------------------------------------------------------------- 1 | /* 2 | * There isn't anything here, but the file must not be empty or patch 3 | * will delete it. 4 | */ 5 | -------------------------------------------------------------------------------- /linux-headers/include/linux/irqnr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * There isn't anything here anymore, but the file must not be empty or patch 3 | * will delete it. 4 | */ 5 | -------------------------------------------------------------------------------- /linux-headers/include/linux/ioctl.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_IOCTL_H 2 | #define _LINUX_IOCTL_H 3 | 4 | #include 5 | 6 | #endif /* _LINUX_IOCTL_H */ 7 | 8 | -------------------------------------------------------------------------------- /linux-headers/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_RISCV_SETUP_H 2 | #define _ASM_RISCV_SETUP_H 3 | 4 | #include 5 | 6 | #endif /* _ASM_RISCV_SETUP_H */ 7 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/setup.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SETUP_H 2 | #define __ASM_GENERIC_SETUP_H 3 | 4 | #define COMMAND_LINE_SIZE 512 5 | 6 | #endif /* __ASM_GENERIC_SETUP_H */ 7 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_MARK.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_MARK_H_target 2 | #define _XT_MARK_H_target 3 | 4 | #include 5 | 6 | #endif /*_XT_MARK_H_target */ 7 | -------------------------------------------------------------------------------- /linux-headers/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_RISCV_AUXVEC_H 2 | #define _ASM_RISCV_AUXVEC_H 3 | 4 | /* vDSO location */ 5 | #define AT_SYSINFO_EHDR 33 6 | 7 | #endif /* _ASM_RISCV_AUXVEC_H */ 8 | -------------------------------------------------------------------------------- /linux-headers/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_RISCV_BYTEORDER_H 2 | #define _ASM_RISCV_BYTEORDER_H 3 | 4 | #include 5 | 6 | #endif /* _ASM_RISCV_BYTEORDER_H */ 7 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_helper.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_HELPER_H 2 | #define _XT_HELPER_H 3 | 4 | struct xt_helper_info { 5 | int invert; 6 | char name[30]; 7 | }; 8 | #endif /* _XT_HELPER_H */ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_pkttype.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_PKTTYPE_H 2 | #define _XT_PKTTYPE_H 3 | 4 | struct xt_pkttype_info { 5 | int pkttype; 6 | int invert; 7 | }; 8 | #endif /*_XT_PKTTYPE_H*/ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_CONNMARK.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CONNMARK_H_target 2 | #define _XT_CONNMARK_H_target 3 | 4 | #include 5 | 6 | #endif /*_XT_CONNMARK_H_target*/ 7 | -------------------------------------------------------------------------------- /linux-headers/include/linux/arcfb.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_ARCFB_H__ 2 | #define __LINUX_ARCFB_H__ 3 | 4 | #define FBIO_WAITEVENT _IO('F', 0x88) 5 | #define FBIO_GETCONTROL2 _IOR('F', 0x89, size_t) 6 | 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_ltalk.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_LTALK_H 2 | #define __LINUX_LTALK_H 3 | 4 | #define LTALK_HLEN 1 5 | #define LTALK_MTU 600 6 | #define LTALK_ALEN 1 7 | 8 | 9 | #endif /* __LINUX_LTALK_H */ 10 | -------------------------------------------------------------------------------- /linux-headers/include/video/edid.h: -------------------------------------------------------------------------------- 1 | #ifndef __linux_video_edid_h__ 2 | #define __linux_video_edid_h__ 3 | 4 | struct edid_info { 5 | unsigned char dummy[128]; 6 | }; 7 | 8 | 9 | #endif /* __linux_video_edid_h__ */ 10 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/shmparam.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SHMPARAM_H 2 | #define __ASM_GENERIC_SHMPARAM_H 3 | 4 | #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ 5 | 6 | #endif /* _ASM_GENERIC_SHMPARAM_H */ 7 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_cpu.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CPU_H 2 | #define _XT_CPU_H 3 | 4 | #include 5 | 6 | struct xt_cpu_info { 7 | __u32 cpu; 8 | __u32 invert; 9 | }; 10 | 11 | #endif /*_XT_CPU_H*/ 12 | -------------------------------------------------------------------------------- /scripts/spike.exp: -------------------------------------------------------------------------------- 1 | load_generic_config "sim" 2 | set_board_info sim "spike pk" 3 | set_board_info compiler "[find_gcc]" 4 | set_board_info ldflags "-static -pthread" 5 | set_board_info gdb,nosignals 1 6 | set_board_info is_simulator 1 7 | -------------------------------------------------------------------------------- /Makefile.pulp: -------------------------------------------------------------------------------- 1 | build: 2 | ./configure --prefix=$(PKG_DIR) --with-arch=rv32imac --with-cmodel=medlow --enable-multilib 3 | make all install 4 | cp riscv.ld $(PKG_DIR)/riscv32-unknown-elf/lib 5 | 6 | checkout: 7 | git submodule update --init -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/types.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_TYPES_H 2 | #define _ASM_GENERIC_TYPES_H 3 | /* 4 | * int-ll64 is used everywhere now. 5 | */ 6 | #include 7 | 8 | #endif /* _ASM_GENERIC_TYPES_H */ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/string.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_STRING_H_ 2 | #define _LINUX_STRING_H_ 3 | 4 | /* We don't want strings.h stuff being used by user stuff by accident */ 5 | 6 | #include 7 | #endif /* _LINUX_STRING_H_ */ 8 | -------------------------------------------------------------------------------- /linux-headers/include/linux/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UNISTD_H_ 2 | #define _LINUX_UNISTD_H_ 3 | 4 | /* 5 | * Include machine specific syscall numbers 6 | */ 7 | #include 8 | 9 | #endif /* _LINUX_UNISTD_H_ */ 10 | -------------------------------------------------------------------------------- /linux-headers/include/linux/utime.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UTIME_H 2 | #define _LINUX_UTIME_H 3 | 4 | #include 5 | 6 | struct utimbuf { 7 | __kernel_time_t actime; 8 | __kernel_time_t modtime; 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /linux-headers/include/linux/memfd.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_MEMFD_H 2 | #define _LINUX_MEMFD_H 3 | 4 | /* flags for memfd_create(2) (unsigned int) */ 5 | #define MFD_CLOEXEC 0x0001U 6 | #define MFD_ALLOW_SEALING 0x0002U 7 | 8 | #endif /* _LINUX_MEMFD_H */ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_CLASSIFY.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CLASSIFY_H 2 | #define _XT_CLASSIFY_H 3 | 4 | #include 5 | 6 | struct xt_classify_target_info { 7 | __u32 priority; 8 | }; 9 | 10 | #endif /*_XT_CLASSIFY_H */ 11 | -------------------------------------------------------------------------------- /linux-headers/include/linux/signal.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_SIGNAL_H 2 | #define _LINUX_SIGNAL_H 3 | 4 | #include 5 | #include 6 | 7 | #define SS_ONSTACK 1 8 | #define SS_DISABLE 2 9 | 10 | #endif /* _LINUX_SIGNAL_H */ 11 | -------------------------------------------------------------------------------- /linux-headers/include/linux/veth.h: -------------------------------------------------------------------------------- 1 | #ifndef __NET_VETH_H_ 2 | #define __NET_VETH_H_ 3 | 4 | enum { 5 | VETH_INFO_UNSPEC, 6 | VETH_INFO_PEER, 7 | 8 | __VETH_INFO_MAX 9 | #define VETH_INFO_MAX (__VETH_INFO_MAX - 1) 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /scripts/wrapper/awk/awk.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # We can add the current directory to the front of PATH so that 4 | # awk will invoke gawk (rather than mawk etc.). 5 | # We use this to work around systems with awk != gawk. 6 | 7 | exec ${AWK:-@GAWK@} "$@" 8 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_length.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_LENGTH_H 2 | #define _XT_LENGTH_H 3 | 4 | #include 5 | 6 | struct xt_length_info { 7 | __u16 min, max; 8 | __u8 invert; 9 | }; 10 | 11 | #endif /*_XT_LENGTH_H*/ 12 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_mac.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_MAC_H 2 | #define _XT_MAC_H 3 | 4 | #include 5 | 6 | struct xt_mac_info { 7 | unsigned char srcaddr[ETH_ALEN]; 8 | int invert; 9 | }; 10 | #endif /*_XT_MAC_H*/ 11 | -------------------------------------------------------------------------------- /linux-headers/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_RISCV_BITSPERLONG_H 2 | #define _ASM_RISCV_BITSPERLONG_H 3 | 4 | #define __BITS_PER_LONG (__SIZEOF_POINTER__ * 8) 5 | 6 | #include 7 | 8 | #endif /* _ASM_RISCV_BITSPERLONG_H */ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_comment.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_COMMENT_H 2 | #define _XT_COMMENT_H 3 | 4 | #define XT_MAX_COMMENT_LEN 256 5 | 6 | struct xt_comment_info { 7 | char comment[XT_MAX_COMMENT_LEN]; 8 | }; 9 | 10 | #endif /* XT_COMMENT_H */ 11 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_realm.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_REALM_H 2 | #define _XT_REALM_H 3 | 4 | #include 5 | 6 | struct xt_realm_info { 7 | __u32 id; 8 | __u32 mask; 9 | __u8 invert; 10 | }; 11 | 12 | #endif /* _XT_REALM_H */ 13 | -------------------------------------------------------------------------------- /scripts/wrapper/sed/sed.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # We can add the current directory to the front of PATH so that 4 | # sed will invoke gsed (rather than FreeBSD's sed, for example). 5 | # We use this to work around systems with sed != gsed. 6 | 7 | exec ${SED:-@GSED@} "$@" 8 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_TCPMSS.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TCPMSS_H 2 | #define _XT_TCPMSS_H 3 | 4 | #include 5 | 6 | struct xt_tcpmss_info { 7 | __u16 mss; 8 | }; 9 | 10 | #define XT_TCPMSS_CLAMP_PMTU 0xffff 11 | 12 | #endif /* _XT_TCPMSS_H */ 13 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/auxvec.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_AUXVEC_H 2 | #define __ASM_GENERIC_AUXVEC_H 3 | /* 4 | * Not all architectures need their own auxvec.h, the most 5 | * common definitions are already in linux/auxvec.h. 6 | */ 7 | 8 | #endif /* __ASM_GENERIC_AUXVEC_H */ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_tcpmss.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TCPMSS_MATCH_H 2 | #define _XT_TCPMSS_MATCH_H 3 | 4 | #include 5 | 6 | struct xt_tcpmss_match_info { 7 | __u16 mss_min, mss_max; 8 | __u8 invert; 9 | }; 10 | 11 | #endif /*_XT_TCPMSS_MATCH_H*/ 12 | -------------------------------------------------------------------------------- /linux-headers/include/asm/unistd.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define __NR_sysriscv __NR_arch_specific_syscall 4 | #ifndef __riscv_atomic 5 | __SYSCALL(__NR_sysriscv, sys_sysriscv) 6 | #endif 7 | 8 | #define RISCV_ATOMIC_CMPXCHG 1 9 | #define RISCV_ATOMIC_CMPXCHG64 2 10 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_ematch/tc_em_nbyte.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_EM_NBYTE_H 2 | #define __LINUX_TC_EM_NBYTE_H 3 | 4 | #include 5 | #include 6 | 7 | struct tcf_em_nbyte { 8 | __u16 off; 9 | __u16 len:12; 10 | __u8 layer:4; 11 | }; 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /linux-headers/include/linux/times.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_TIMES_H 2 | #define _LINUX_TIMES_H 3 | 4 | #include 5 | 6 | struct tms { 7 | __kernel_clock_t tms_utime; 8 | __kernel_clock_t tms_stime; 9 | __kernel_clock_t tms_cutime; 10 | __kernel_clock_t tms_cstime; 11 | }; 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_mark.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_MARK_H 2 | #define _XT_MARK_H 3 | 4 | #include 5 | 6 | struct xt_mark_tginfo2 { 7 | __u32 mark, mask; 8 | }; 9 | 10 | struct xt_mark_mtinfo1 { 11 | __u32 mark, mask; 12 | __u8 invert; 13 | }; 14 | 15 | #endif /*_XT_MARK_H*/ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_pkttype.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_PKTTYPE_H 2 | #define __LINUX_BRIDGE_EBT_PKTTYPE_H 3 | 4 | #include 5 | 6 | struct ebt_pkttype_info { 7 | __u8 pkt_type; 8 | __u8 invert; 9 | }; 10 | #define EBT_PKTTYPE_MATCH "pkttype" 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /linux-headers/include/linux/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_MMAN_H 2 | #define _LINUX_MMAN_H 3 | 4 | #include 5 | 6 | #define MREMAP_MAYMOVE 1 7 | #define MREMAP_FIXED 2 8 | 9 | #define OVERCOMMIT_GUESS 0 10 | #define OVERCOMMIT_ALWAYS 1 11 | #define OVERCOMMIT_NEVER 2 12 | 13 | #endif /* _LINUX_MMAN_H */ 14 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_connlabel.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define XT_CONNLABEL_MAXBIT 127 4 | enum xt_connlabel_mtopts { 5 | XT_CONNLABEL_OP_INVERT = 1 << 0, 6 | XT_CONNLABEL_OP_SET = 1 << 1, 7 | }; 8 | 9 | struct xt_connlabel_mtinfo { 10 | __u16 bit; 11 | __u16 options; 12 | }; 13 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_redirect.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_REDIRECT_H 2 | #define __LINUX_BRIDGE_EBT_REDIRECT_H 3 | 4 | struct ebt_redirect_info { 5 | /* EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN */ 6 | int target; 7 | }; 8 | #define EBT_REDIRECT_TARGET "redirect" 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /linux-headers/include/linux/kcmp.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_KCMP_H 2 | #define _LINUX_KCMP_H 3 | 4 | /* Comparison type */ 5 | enum kcmp_type { 6 | KCMP_FILE, 7 | KCMP_VM, 8 | KCMP_FILES, 9 | KCMP_FS, 10 | KCMP_SIGHAND, 11 | KCMP_IO, 12 | KCMP_SYSVSEM, 13 | 14 | KCMP_TYPES, 15 | }; 16 | 17 | #endif /* _LINUX_KCMP_H */ 18 | -------------------------------------------------------------------------------- /linux-headers/include/linux/un.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UN_H 2 | #define _LINUX_UN_H 3 | 4 | #include 5 | 6 | #define UNIX_PATH_MAX 108 7 | 8 | struct sockaddr_un { 9 | __kernel_sa_family_t sun_family; /* AF_UNIX */ 10 | char sun_path[UNIX_PATH_MAX]; /* pathname */ 11 | }; 12 | 13 | #endif /* _LINUX_UN_H */ 14 | -------------------------------------------------------------------------------- /linux-headers/include/linux/virtio_rng.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_VIRTIO_RNG_H 2 | #define _LINUX_VIRTIO_RNG_H 3 | /* This header is BSD licensed so anyone can use the definitions to implement 4 | * compatible drivers/servers. */ 5 | #include 6 | #include 7 | 8 | #endif /* _LINUX_VIRTIO_RNG_H */ 9 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_arpreply.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_ARPREPLY_H 2 | #define __LINUX_BRIDGE_EBT_ARPREPLY_H 3 | 4 | #include 5 | 6 | struct ebt_arpreply_info { 7 | unsigned char mac[ETH_ALEN]; 8 | int target; 9 | }; 10 | #define EBT_ARPREPLY_TARGET "arpreply" 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_nfacct.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_NFACCT_MATCH_H 2 | #define _XT_NFACCT_MATCH_H 3 | 4 | #include 5 | 6 | struct nf_acct; 7 | 8 | struct xt_nfacct_match_info { 9 | char name[NFACCT_NAME_MAX]; 10 | struct nf_acct *nfacct; 11 | }; 12 | 13 | #endif /* _XT_NFACCT_MATCH_H */ 14 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_CONNSECMARK.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CONNSECMARK_H_target 2 | #define _XT_CONNSECMARK_H_target 3 | 4 | #include 5 | 6 | enum { 7 | CONNSECMARK_SAVE = 1, 8 | CONNSECMARK_RESTORE, 9 | }; 10 | 11 | struct xt_connsecmark_target_info { 12 | __u8 mode; 13 | }; 14 | 15 | #endif /*_XT_CONNSECMARK_H_target */ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_state.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_STATE_H 2 | #define _XT_STATE_H 3 | 4 | #define XT_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) 5 | #define XT_STATE_INVALID (1 << 0) 6 | 7 | #define XT_STATE_UNTRACKED (1 << (IP_CT_NUMBER + 1)) 8 | 9 | struct xt_state_info { 10 | unsigned int statemask; 11 | }; 12 | #endif /*_XT_STATE_H*/ 13 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_TEE.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TEE_TARGET_H 2 | #define _XT_TEE_TARGET_H 3 | 4 | #include 5 | 6 | struct xt_tee_tginfo { 7 | union nf_inet_addr gw; 8 | char oif[16]; 9 | 10 | /* used internally by the kernel */ 11 | struct xt_tee_priv *priv __attribute__((aligned(8))); 12 | }; 13 | 14 | #endif /* _XT_TEE_TARGET_H */ 15 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_defact.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_DEF_H 2 | #define __LINUX_TC_DEF_H 3 | 4 | #include 5 | 6 | struct tc_defact { 7 | tc_gen; 8 | }; 9 | 10 | enum { 11 | TCA_DEF_UNSPEC, 12 | TCA_DEF_TM, 13 | TCA_DEF_PARMS, 14 | TCA_DEF_DATA, 15 | __TCA_DEF_MAX 16 | }; 17 | #define TCA_DEF_MAX (__TCA_DEF_MAX - 1) 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_rpfilter.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_RPATH_H 2 | #define _XT_RPATH_H 3 | 4 | #include 5 | 6 | enum { 7 | XT_RPFILTER_LOOSE = 1 << 0, 8 | XT_RPFILTER_VALID_MARK = 1 << 1, 9 | XT_RPFILTER_ACCEPT_LOCAL = 1 << 2, 10 | XT_RPFILTER_INVERT = 1 << 3, 11 | }; 12 | 13 | struct xt_rpfilter_info { 14 | __u8 flags; 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/ucontext.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_UCONTEXT_H 2 | #define __ASM_GENERIC_UCONTEXT_H 3 | 4 | struct ucontext { 5 | unsigned long uc_flags; 6 | struct ucontext *uc_link; 7 | stack_t uc_stack; 8 | struct sigcontext uc_mcontext; 9 | sigset_t uc_sigmask; /* mask last for extensibility */ 10 | }; 11 | 12 | #endif /* __ASM_GENERIC_UCONTEXT_H */ 13 | -------------------------------------------------------------------------------- /linux-headers/include/linux/kdev_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_KDEV_T_H 2 | #define _LINUX_KDEV_T_H 3 | 4 | /* 5 | Some programs want their definitions of MAJOR and MINOR and MKDEV 6 | from the kernel sources. These must be the externally visible ones. 7 | */ 8 | #define MAJOR(dev) ((dev)>>8) 9 | #define MINOR(dev) ((dev) & 0xff) 10 | #define MKDEV(ma,mi) ((ma)<<8 | (mi)) 11 | #endif /* _LINUX_KDEV_T_H */ 12 | -------------------------------------------------------------------------------- /linux-headers/include/linux/radeonfb.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_RADEONFB_H__ 2 | #define __LINUX_RADEONFB_H__ 3 | 4 | #include 5 | #include 6 | 7 | #define ATY_RADEON_LCD_ON 0x00000001 8 | #define ATY_RADEON_CRT_ON 0x00000002 9 | 10 | 11 | #define FBIO_RADEON_GET_MIRROR _IOR('@', 3, size_t) 12 | #define FBIO_RADEON_SET_MIRROR _IOW('@', 4, size_t) 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/param.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_PARAM_H 2 | #define __ASM_GENERIC_PARAM_H 3 | 4 | #ifndef HZ 5 | #define HZ 100 6 | #endif 7 | 8 | #ifndef EXEC_PAGESIZE 9 | #define EXEC_PAGESIZE 4096 10 | #endif 11 | 12 | #ifndef NOGROUP 13 | #define NOGROUP (-1) 14 | #endif 15 | 16 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ 17 | 18 | 19 | #endif /* __ASM_GENERIC_PARAM_H */ 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/raw.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_RAW_H 2 | #define __LINUX_RAW_H 3 | 4 | #include 5 | 6 | #define RAW_SETBIND _IO( 0xac, 0 ) 7 | #define RAW_GETBIND _IO( 0xac, 1 ) 8 | 9 | struct raw_config_request 10 | { 11 | int raw_minor; 12 | __u64 block_major; 13 | __u64 block_minor; 14 | }; 15 | 16 | #define MAX_RAW_MINORS CONFIG_MAX_RAW_DEVS 17 | 18 | #endif /* __LINUX_RAW_H */ 19 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_owner.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_OWNER_MATCH_H 2 | #define _XT_OWNER_MATCH_H 3 | 4 | #include 5 | 6 | enum { 7 | XT_OWNER_UID = 1 << 0, 8 | XT_OWNER_GID = 1 << 1, 9 | XT_OWNER_SOCKET = 1 << 2, 10 | }; 11 | 12 | struct xt_owner_match_info { 13 | __u32 uid_min, uid_max; 14 | __u32 gid_min, gid_max; 15 | __u8 match, invert; 16 | }; 17 | 18 | #endif /* _XT_OWNER_MATCH_H */ 19 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_RATEEST.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_RATEEST_TARGET_H 2 | #define _XT_RATEEST_TARGET_H 3 | 4 | #include 5 | #include 6 | 7 | struct xt_rateest_target_info { 8 | char name[IFNAMSIZ]; 9 | __s8 interval; 10 | __u8 ewma_log; 11 | 12 | /* Used internally by the kernel */ 13 | struct xt_rateest *est __attribute__((aligned(8))); 14 | }; 15 | 16 | #endif /* _XT_RATEEST_TARGET_H */ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_cluster.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CLUSTER_MATCH_H 2 | #define _XT_CLUSTER_MATCH_H 3 | 4 | #include 5 | 6 | enum xt_cluster_flags { 7 | XT_CLUSTER_F_INV = (1 << 0) 8 | }; 9 | 10 | struct xt_cluster_match_info { 11 | __u32 total_nodes; 12 | __u32 node_mask; 13 | __u32 hash_seed; 14 | __u32 flags; 15 | }; 16 | 17 | #define XT_CLUSTER_NODES_MAX 32 18 | 19 | #endif /* _XT_CLUSTER_MATCH_H */ 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_nat.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_NAT_H 2 | #define __LINUX_BRIDGE_EBT_NAT_H 3 | 4 | #include 5 | 6 | #define NAT_ARP_BIT (0x00000010) 7 | struct ebt_nat_info { 8 | unsigned char mac[ETH_ALEN]; 9 | /* EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN */ 10 | int target; 11 | }; 12 | #define EBT_SNAT_TARGET "snat" 13 | #define EBT_DNAT_TARGET "dnat" 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_mark_m.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_MARK_M_H 2 | #define __LINUX_BRIDGE_EBT_MARK_M_H 3 | 4 | #include 5 | 6 | #define EBT_MARK_AND 0x01 7 | #define EBT_MARK_OR 0x02 8 | #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR) 9 | struct ebt_mark_m_info { 10 | unsigned long mark, mask; 11 | __u8 invert; 12 | __u8 bitmask; 13 | }; 14 | #define EBT_MARK_MATCH "mark_m" 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_ematch/tc_em_text.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_EM_TEXT_H 2 | #define __LINUX_TC_EM_TEXT_H 3 | 4 | #include 5 | #include 6 | 7 | #define TC_EM_TEXT_ALGOSIZ 16 8 | 9 | struct tcf_em_text { 10 | char algo[TC_EM_TEXT_ALGOSIZ]; 11 | __u16 from_offset; 12 | __u16 to_offset; 13 | __u16 pattern_len; 14 | __u8 from_layer:4; 15 | __u8 to_layer:4; 16 | __u8 pad; 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_NPT.h: -------------------------------------------------------------------------------- 1 | #ifndef __NETFILTER_IP6T_NPT 2 | #define __NETFILTER_IP6T_NPT 3 | 4 | #include 5 | #include 6 | 7 | struct ip6t_npt_tginfo { 8 | union nf_inet_addr src_pfx; 9 | union nf_inet_addr dst_pfx; 10 | __u8 src_pfx_len; 11 | __u8 dst_pfx_len; 12 | /* Used internally by the kernel */ 13 | __sum16 adjustment; 14 | }; 15 | 16 | #endif /* __NETFILTER_IP6T_NPT */ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_NFLOG.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_NFLOG_TARGET 2 | #define _XT_NFLOG_TARGET 3 | 4 | #include 5 | 6 | #define XT_NFLOG_DEFAULT_GROUP 0x1 7 | #define XT_NFLOG_DEFAULT_THRESHOLD 0 8 | 9 | #define XT_NFLOG_MASK 0x0 10 | 11 | struct xt_nflog_info { 12 | __u32 len; 13 | __u16 group; 14 | __u16 threshold; 15 | __u16 flags; 16 | __u16 pad; 17 | char prefix[64]; 18 | }; 19 | 20 | #endif /* _XT_NFLOG_TARGET */ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_TCPOPTSTRIP.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TCPOPTSTRIP_H 2 | #define _XT_TCPOPTSTRIP_H 3 | 4 | #include 5 | 6 | #define tcpoptstrip_set_bit(bmap, idx) \ 7 | (bmap[(idx) >> 5] |= 1U << (idx & 31)) 8 | #define tcpoptstrip_test_bit(bmap, idx) \ 9 | (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0) 10 | 11 | struct xt_tcpoptstrip_target_info { 12 | __u32 strip_bmap[8]; 13 | }; 14 | 15 | #endif /* _XT_TCPOPTSTRIP_H */ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_esp.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_ESP_H 2 | #define _XT_ESP_H 3 | 4 | #include 5 | 6 | struct xt_esp { 7 | __u32 spis[2]; /* Security Parameter Index */ 8 | __u8 invflags; /* Inverse flags */ 9 | }; 10 | 11 | /* Values for "invflags" field in struct xt_esp. */ 12 | #define XT_ESP_INV_SPI 0x01 /* Invert the sense of spi. */ 13 | #define XT_ESP_INV_MASK 0x01 /* All possible flags. */ 14 | 15 | #endif /*_XT_ESP_H*/ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atm_he.h: -------------------------------------------------------------------------------- 1 | /* atm_he.h */ 2 | 3 | #ifndef LINUX_ATM_HE_H 4 | #define LINUX_ATM_HE_H 5 | 6 | #include 7 | 8 | #define HE_GET_REG _IOW('a', ATMIOC_SARPRV, struct atmif_sioc) 9 | 10 | #define HE_REGTYPE_PCI 1 11 | #define HE_REGTYPE_RCM 2 12 | #define HE_REGTYPE_TCM 3 13 | #define HE_REGTYPE_MBOX 4 14 | 15 | struct he_ioctl_reg { 16 | unsigned addr, val; 17 | char type; 18 | }; 19 | 20 | #endif /* LINUX_ATM_HE_H */ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_phonet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: if_phonet.h 3 | * 4 | * Phonet interface kernel definitions 5 | * 6 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. 7 | */ 8 | #ifndef LINUX_IF_PHONET_H 9 | #define LINUX_IF_PHONET_H 10 | 11 | #define PHONET_MIN_MTU 6 /* pn_length = 0 */ 12 | #define PHONET_MAX_MTU 65541 /* pn_length = 0xffff */ 13 | #define PHONET_DEV_MTU PHONET_MAX_MTU 14 | 15 | 16 | #endif /* LINUX_IF_PHONET_H */ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/kernel.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_KERNEL_H 2 | #define _LINUX_KERNEL_H 3 | 4 | #include 5 | 6 | /* 7 | * 'kernel.h' contains some often-used function prototypes etc 8 | */ 9 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 10 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 11 | 12 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) 13 | 14 | #endif /* _LINUX_KERNEL_H */ 15 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_TTL.h: -------------------------------------------------------------------------------- 1 | /* TTL modification module for IP tables 2 | * (C) 2000 by Harald Welte */ 3 | 4 | #ifndef _IPT_TTL_H 5 | #define _IPT_TTL_H 6 | 7 | #include 8 | 9 | enum { 10 | IPT_TTL_SET = 0, 11 | IPT_TTL_INC, 12 | IPT_TTL_DEC 13 | }; 14 | 15 | #define IPT_TTL_MAXMODE IPT_TTL_DEC 16 | 17 | struct ipt_TTL_info { 18 | __u8 mode; 19 | __u8 ttl; 20 | }; 21 | 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/sockios.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SOCKIOS_H 2 | #define __ASM_GENERIC_SOCKIOS_H 3 | 4 | /* Socket-level I/O control calls. */ 5 | #define FIOSETOWN 0x8901 6 | #define SIOCSPGRP 0x8902 7 | #define FIOGETOWN 0x8903 8 | #define SIOCGPGRP 0x8904 9 | #define SIOCATMARK 0x8905 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ 11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ 12 | 13 | #endif /* __ASM_GENERIC_SOCKIOS_H */ 14 | -------------------------------------------------------------------------------- /linux-headers/include/linux/nfsd/stats.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/linux/nfsd/stats.h 3 | * 4 | * Statistics for NFS server. 5 | * 6 | * Copyright (C) 1995, 1996 Olaf Kirch 7 | */ 8 | 9 | #ifndef LINUX_NFSD_STATS_H 10 | #define LINUX_NFSD_STATS_H 11 | 12 | #include 13 | 14 | /* thread usage wraps very million seconds (approx one fortnight) */ 15 | #define NFSD_USAGE_WRAP (HZ*1000000) 16 | 17 | #endif /* LINUX_NFSD_STATS_H */ 18 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_quota.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_QUOTA_H 2 | #define _XT_QUOTA_H 3 | 4 | #include 5 | 6 | enum xt_quota_flags { 7 | XT_QUOTA_INVERT = 0x1, 8 | }; 9 | #define XT_QUOTA_MASK 0x1 10 | 11 | struct xt_quota_priv; 12 | 13 | struct xt_quota_info { 14 | __u32 flags; 15 | __u32 pad; 16 | __aligned_u64 quota; 17 | 18 | /* Used internally by the kernel */ 19 | struct xt_quota_priv *master; 20 | }; 21 | 22 | #endif /* _XT_QUOTA_H */ 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_ecn.h: -------------------------------------------------------------------------------- 1 | #ifndef _IPT_ECN_H 2 | #define _IPT_ECN_H 3 | 4 | #include 5 | #define ipt_ecn_info xt_ecn_info 6 | 7 | enum { 8 | IPT_ECN_IP_MASK = XT_ECN_IP_MASK, 9 | IPT_ECN_OP_MATCH_IP = XT_ECN_OP_MATCH_IP, 10 | IPT_ECN_OP_MATCH_ECE = XT_ECN_OP_MATCH_ECE, 11 | IPT_ECN_OP_MATCH_CWR = XT_ECN_OP_MATCH_CWR, 12 | IPT_ECN_OP_MATCH_MASK = XT_ECN_OP_MATCH_MASK, 13 | }; 14 | 15 | #endif /* IPT_ECN_H */ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_connmark.h: -------------------------------------------------------------------------------- 1 | #ifndef __UAPI_TC_CONNMARK_H 2 | #define __UAPI_TC_CONNMARK_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_CONNMARK 14 8 | 9 | struct tc_connmark { 10 | tc_gen; 11 | __u16 zone; 12 | }; 13 | 14 | enum { 15 | TCA_CONNMARK_UNSPEC, 16 | TCA_CONNMARK_PARMS, 17 | TCA_CONNMARK_TM, 18 | __TCA_CONNMARK_MAX 19 | }; 20 | #define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1) 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /linux-headers/include/asm/sigcontext.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_RISCV_SIGCONTEXT_H 2 | #define _ASM_RISCV_SIGCONTEXT_H 3 | 4 | #include 5 | 6 | /* Signal context structure 7 | * 8 | * This contains the context saved before a signal handler is invoked; 9 | * it is restored by sys_sigreturn / sys_rt_sigreturn. 10 | */ 11 | struct sigcontext { 12 | struct user_regs_struct sc_regs; 13 | struct user_fpregs_struct sc_fpregs; 14 | }; 15 | 16 | #endif /* _ASM_RISCV_SIGCONTEXT_H */ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/ipset/ip_set_bitmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __IP_SET_BITMAP_H 2 | #define __IP_SET_BITMAP_H 3 | 4 | #include 5 | 6 | /* Bitmap type specific error codes */ 7 | enum { 8 | /* The element is out of the range of the set */ 9 | IPSET_ERR_BITMAP_RANGE = IPSET_ERR_TYPE_SPECIFIC, 10 | /* The range exceeds the size limit of the set type */ 11 | IPSET_ERR_BITMAP_RANGE_SIZE, 12 | }; 13 | 14 | 15 | #endif /* __IP_SET_BITMAP_H */ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_bpf.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_BPF_H 2 | #define _XT_BPF_H 3 | 4 | #include 5 | #include 6 | 7 | #define XT_BPF_MAX_NUM_INSTR 64 8 | 9 | struct bpf_prog; 10 | 11 | struct xt_bpf_info { 12 | __u16 bpf_program_num_elem; 13 | struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; 14 | 15 | /* only used in the kernel */ 16 | struct bpf_prog *filter __attribute__((aligned(8))); 17 | }; 18 | 19 | #endif /*_XT_BPF_H */ 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_ah.h: -------------------------------------------------------------------------------- 1 | #ifndef _IPT_AH_H 2 | #define _IPT_AH_H 3 | 4 | #include 5 | 6 | struct ipt_ah { 7 | __u32 spis[2]; /* Security Parameter Index */ 8 | __u8 invflags; /* Inverse flags */ 9 | }; 10 | 11 | 12 | 13 | /* Values for "invflags" field in struct ipt_ah. */ 14 | #define IPT_AH_INV_SPI 0x01 /* Invert the sense of spi. */ 15 | #define IPT_AH_INV_MASK 0x01 /* All possible flags. */ 16 | 17 | #endif /*_IPT_AH_H*/ 18 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_mh.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_MH_H 2 | #define _IP6T_MH_H 3 | 4 | #include 5 | 6 | /* MH matching stuff */ 7 | struct ip6t_mh { 8 | __u8 types[2]; /* MH type range */ 9 | __u8 invflags; /* Inverse flags */ 10 | }; 11 | 12 | /* Values for "invflags" field in struct ip6t_mh. */ 13 | #define IP6T_MH_INV_TYPE 0x01 /* Invert the sense of type. */ 14 | #define IP6T_MH_INV_MASK 0x01 /* All possible flags. */ 15 | 16 | #endif /*_IP6T_MH_H*/ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_HL.h: -------------------------------------------------------------------------------- 1 | /* Hop Limit modification module for ip6tables 2 | * Maciej Soltysiak 3 | * Based on HW's TTL module */ 4 | 5 | #ifndef _IP6T_HL_H 6 | #define _IP6T_HL_H 7 | 8 | #include 9 | 10 | enum { 11 | IP6T_HL_SET = 0, 12 | IP6T_HL_INC, 13 | IP6T_HL_DEC 14 | }; 15 | 16 | #define IP6T_HL_MAXMODE IP6T_HL_DEC 17 | 18 | struct ip6t_HL_info { 19 | __u8 mode; 20 | __u8 hop_limit; 21 | }; 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/wanrouter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * wanrouter.h Legacy declarations kept around until X25 is removed 3 | */ 4 | 5 | #ifndef _ROUTER_H 6 | #define _ROUTER_H 7 | 8 | /* 'state' defines */ 9 | enum wan_states 10 | { 11 | WAN_UNCONFIGURED, /* link/channel is not configured */ 12 | WAN_DISCONNECTED, /* link/channel is disconnected */ 13 | WAN_CONNECTING, /* connection is in progress */ 14 | WAN_CONNECTED /* link/channel is operational */ 15 | }; 16 | 17 | #endif /* _ROUTER_H */ 18 | -------------------------------------------------------------------------------- /linux-headers/include/linux/bcm933xx_hcs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Broadcom Cable Modem firmware format 3 | */ 4 | 5 | #ifndef __BCM933XX_HCS_H 6 | #define __BCM933XX_HCS_H 7 | 8 | #include 9 | 10 | struct bcm_hcs { 11 | __u16 magic; 12 | __u16 control; 13 | __u16 rev_maj; 14 | __u16 rev_min; 15 | __u32 build_date; 16 | __u32 filelen; 17 | __u32 ldaddress; 18 | char filename[64]; 19 | __u16 hcs; 20 | __u16 her_znaet_chto; 21 | __u32 crc; 22 | }; 23 | 24 | #endif /* __BCM933XX_HCS */ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nf_conntrack_ftp.h: -------------------------------------------------------------------------------- 1 | #ifndef _NF_CONNTRACK_FTP_H 2 | #define _NF_CONNTRACK_FTP_H 3 | /* FTP tracking. */ 4 | 5 | /* This enum is exposed to userspace */ 6 | enum nf_ct_ftp_type { 7 | /* PORT command from client */ 8 | NF_CT_FTP_PORT, 9 | /* PASV response from server */ 10 | NF_CT_FTP_PASV, 11 | /* EPRT command from client */ 12 | NF_CT_FTP_EPRT, 13 | /* EPSV response from server */ 14 | NF_CT_FTP_EPSV, 15 | }; 16 | 17 | 18 | #endif /* _NF_CONNTRACK_FTP_H */ 19 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_devgroup.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_DEVGROUP_H 2 | #define _XT_DEVGROUP_H 3 | 4 | #include 5 | 6 | enum xt_devgroup_flags { 7 | XT_DEVGROUP_MATCH_SRC = 0x1, 8 | XT_DEVGROUP_INVERT_SRC = 0x2, 9 | XT_DEVGROUP_MATCH_DST = 0x4, 10 | XT_DEVGROUP_INVERT_DST = 0x8, 11 | }; 12 | 13 | struct xt_devgroup_info { 14 | __u32 flags; 15 | __u32 src_group; 16 | __u32 src_mask; 17 | __u32 dst_group; 18 | __u32 dst_mask; 19 | }; 20 | 21 | #endif /* _XT_DEVGROUP_H */ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_arp.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_ARP_NETFILTER_H 2 | #define __LINUX_ARP_NETFILTER_H 3 | 4 | /* ARP-specific defines for netfilter. 5 | * (C)2002 Rusty Russell IBM -- This code is GPL. 6 | */ 7 | 8 | #include 9 | 10 | /* There is no PF_ARP. */ 11 | #define NF_ARP 0 12 | 13 | /* ARP Hooks */ 14 | #define NF_ARP_IN 0 15 | #define NF_ARP_OUT 1 16 | #define NF_ARP_FORWARD 2 17 | #define NF_ARP_NUMHOOKS 3 18 | 19 | #endif /* __LINUX_ARP_NETFILTER_H */ 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_ematch/tc_em_cmp.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_EM_CMP_H 2 | #define __LINUX_TC_EM_CMP_H 3 | 4 | #include 5 | #include 6 | 7 | struct tcf_em_cmp { 8 | __u32 val; 9 | __u32 mask; 10 | __u16 off; 11 | __u8 align:4; 12 | __u8 flags:4; 13 | __u8 layer:4; 14 | __u8 opnd:4; 15 | }; 16 | 17 | enum { 18 | TCF_EM_ALIGN_U8 = 1, 19 | TCF_EM_ALIGN_U16 = 2, 20 | TCF_EM_ALIGN_U32 = 4 21 | }; 22 | 23 | #define TCF_EM_CMP_TRANS 1 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_LED.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_LED_H 2 | #define _XT_LED_H 3 | 4 | #include 5 | 6 | struct xt_led_info { 7 | char id[27]; /* Unique ID for this trigger in the LED class */ 8 | __u8 always_blink; /* Blink even if the LED is already on */ 9 | __u32 delay; /* Delay until LED is switched off after trigger */ 10 | 11 | /* Kernel data used in the module */ 12 | void *internal_data __attribute__((aligned(8))); 13 | }; 14 | 15 | #endif /* _XT_LED_H */ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_ipt.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_IPT_H 2 | #define __LINUX_TC_IPT_H 3 | 4 | #include 5 | 6 | #define TCA_ACT_IPT 6 7 | #define TCA_ACT_XT 10 8 | 9 | enum { 10 | TCA_IPT_UNSPEC, 11 | TCA_IPT_TABLE, 12 | TCA_IPT_HOOK, 13 | TCA_IPT_INDEX, 14 | TCA_IPT_CNT, 15 | TCA_IPT_TM, 16 | TCA_IPT_TARG, 17 | __TCA_IPT_MAX 18 | }; 19 | #define TCA_IPT_MAX (__TCA_IPT_MAX - 1) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_ttl.h: -------------------------------------------------------------------------------- 1 | /* IP tables module for matching the value of the TTL 2 | * (C) 2000 by Harald Welte */ 3 | 4 | #ifndef _IPT_TTL_H 5 | #define _IPT_TTL_H 6 | 7 | #include 8 | 9 | enum { 10 | IPT_TTL_EQ = 0, /* equals */ 11 | IPT_TTL_NE, /* not equals */ 12 | IPT_TTL_LT, /* less than */ 13 | IPT_TTL_GT, /* greater than */ 14 | }; 15 | 16 | 17 | struct ipt_ttl_info { 18 | __u8 mode; 19 | __u8 ttl; 20 | }; 21 | 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_ipcomp.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_IPCOMP_H 2 | #define _XT_IPCOMP_H 3 | 4 | #include 5 | 6 | struct xt_ipcomp { 7 | __u32 spis[2]; /* Security Parameter Index */ 8 | __u8 invflags; /* Inverse flags */ 9 | __u8 hdrres; /* Test of the Reserved Filed */ 10 | }; 11 | 12 | /* Values for "invflags" field in struct xt_ipcomp. */ 13 | #define XT_IPCOMP_INV_SPI 0x01 /* Invert the sense of spi. */ 14 | #define XT_IPCOMP_INV_MASK 0x01 /* All possible flags. */ 15 | 16 | #endif /*_XT_IPCOMP_H*/ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_nat.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_NAT_H 2 | #define __LINUX_TC_NAT_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_NAT 9 8 | 9 | enum { 10 | TCA_NAT_UNSPEC, 11 | TCA_NAT_PARMS, 12 | TCA_NAT_TM, 13 | __TCA_NAT_MAX 14 | }; 15 | #define TCA_NAT_MAX (__TCA_NAT_MAX - 1) 16 | 17 | #define TCA_NAT_FLAG_EGRESS 1 18 | 19 | struct tc_nat { 20 | tc_gen; 21 | __be32 old_addr; 22 | __be32 new_addr; 23 | __be32 mask; 24 | __u32 flags; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_REJECT.h: -------------------------------------------------------------------------------- 1 | #ifndef _IPT_REJECT_H 2 | #define _IPT_REJECT_H 3 | 4 | enum ipt_reject_with { 5 | IPT_ICMP_NET_UNREACHABLE, 6 | IPT_ICMP_HOST_UNREACHABLE, 7 | IPT_ICMP_PROT_UNREACHABLE, 8 | IPT_ICMP_PORT_UNREACHABLE, 9 | IPT_ICMP_ECHOREPLY, 10 | IPT_ICMP_NET_PROHIBITED, 11 | IPT_ICMP_HOST_PROHIBITED, 12 | IPT_TCP_RESET, 13 | IPT_ICMP_ADMIN_PROHIBITED 14 | }; 15 | 16 | struct ipt_reject_info { 17 | enum ipt_reject_with with; /* reject type */ 18 | }; 19 | 20 | #endif /*_IPT_REJECT_H*/ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_hl.h: -------------------------------------------------------------------------------- 1 | /* ip6tables module for matching the Hop Limit value 2 | * Maciej Soltysiak 3 | * Based on HW's ttl module */ 4 | 5 | #ifndef _IP6T_HL_H 6 | #define _IP6T_HL_H 7 | 8 | #include 9 | 10 | enum { 11 | IP6T_HL_EQ = 0, /* equals */ 12 | IP6T_HL_NE, /* not equals */ 13 | IP6T_HL_LT, /* less than */ 14 | IP6T_HL_GT, /* greater than */ 15 | }; 16 | 17 | 18 | struct ip6t_hl_info { 19 | __u8 mode; 20 | __u8 hop_limit; 21 | }; 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/swab.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_SWAB_H 2 | #define _ASM_GENERIC_SWAB_H 3 | 4 | #include 5 | 6 | /* 7 | * 32 bit architectures typically (but not always) want to 8 | * set __SWAB_64_THRU_32__. In user space, this is only 9 | * valid if the compiler supports 64 bit data types. 10 | */ 11 | 12 | #if __BITS_PER_LONG == 32 13 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) 14 | #define __SWAB_64_THRU_32__ 15 | #endif 16 | #endif 17 | 18 | #endif /* _ASM_GENERIC_SWAB_H */ 19 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_cgroup.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CGROUP_H 2 | #define _XT_CGROUP_H 3 | 4 | #include 5 | #include 6 | 7 | struct xt_cgroup_info_v0 { 8 | __u32 id; 9 | __u32 invert; 10 | }; 11 | 12 | struct xt_cgroup_info_v1 { 13 | __u8 has_path; 14 | __u8 has_classid; 15 | __u8 invert_path; 16 | __u8 invert_classid; 17 | char path[PATH_MAX]; 18 | __u32 classid; 19 | 20 | /* kernel internal data */ 21 | void *priv __attribute__((aligned(8))); 22 | }; 23 | 24 | #endif /* _XT_CGROUP_H */ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_REJECT.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_REJECT_H 2 | #define _IP6T_REJECT_H 3 | 4 | #include 5 | 6 | enum ip6t_reject_with { 7 | IP6T_ICMP6_NO_ROUTE, 8 | IP6T_ICMP6_ADM_PROHIBITED, 9 | IP6T_ICMP6_NOT_NEIGHBOUR, 10 | IP6T_ICMP6_ADDR_UNREACH, 11 | IP6T_ICMP6_PORT_UNREACH, 12 | IP6T_ICMP6_ECHOREPLY, 13 | IP6T_TCP_RESET, 14 | IP6T_ICMP6_POLICY_FAIL, 15 | IP6T_ICMP6_REJECT_ROUTE 16 | }; 17 | 18 | struct ip6t_reject_info { 19 | __u32 with; /* reject type */ 20 | }; 21 | 22 | #endif /*_IP6T_REJECT_H*/ 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/oom.h: -------------------------------------------------------------------------------- 1 | #ifndef __INCLUDE_LINUX_OOM_H 2 | #define __INCLUDE_LINUX_OOM_H 3 | 4 | /* 5 | * /proc//oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for 6 | * pid. 7 | */ 8 | #define OOM_SCORE_ADJ_MIN (-1000) 9 | #define OOM_SCORE_ADJ_MAX 1000 10 | 11 | /* 12 | * /proc//oom_adj set to -17 protects from the oom killer for legacy 13 | * purposes. 14 | */ 15 | #define OOM_DISABLE (-17) 16 | /* inclusive */ 17 | #define OOM_ADJUST_MIN (-16) 18 | #define OOM_ADJUST_MAX 15 19 | 20 | #endif /* __INCLUDE_LINUX_OOM_H */ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/nvram.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NVRAM_H 2 | #define _LINUX_NVRAM_H 3 | 4 | #include 5 | 6 | /* /dev/nvram ioctls */ 7 | #define NVRAM_INIT _IO('p', 0x40) /* initialize NVRAM and set checksum */ 8 | #define NVRAM_SETCKS _IO('p', 0x41) /* recalculate checksum */ 9 | 10 | /* for all current systems, this is where NVRAM starts */ 11 | #define NVRAM_FIRST_BYTE 14 12 | /* all these functions expect an NVRAM offset, not an absolute */ 13 | #define NVRAM_OFFSET(x) ((x)-NVRAM_FIRST_BYTE) 14 | 15 | 16 | #endif /* _LINUX_NVRAM_H */ 17 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_dccp.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_DCCP_H_ 2 | #define _XT_DCCP_H_ 3 | 4 | #include 5 | 6 | #define XT_DCCP_SRC_PORTS 0x01 7 | #define XT_DCCP_DEST_PORTS 0x02 8 | #define XT_DCCP_TYPE 0x04 9 | #define XT_DCCP_OPTION 0x08 10 | 11 | #define XT_DCCP_VALID_FLAGS 0x0f 12 | 13 | struct xt_dccp_info { 14 | __u16 dpts[2]; /* Min, Max */ 15 | __u16 spts[2]; /* Min, Max */ 16 | 17 | __u16 flags; 18 | __u16 invflags; 19 | 20 | __u16 typemask; 21 | __u8 option; 22 | }; 23 | 24 | #endif /* _XT_DCCP_H_ */ 25 | 26 | -------------------------------------------------------------------------------- /linux-headers/include/linux/termios.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_TERMIOS_H 2 | #define _LINUX_TERMIOS_H 3 | 4 | #include 5 | #include 6 | 7 | #define NFF 5 8 | 9 | struct termiox 10 | { 11 | __u16 x_hflag; 12 | __u16 x_cflag; 13 | __u16 x_rflag[NFF]; 14 | __u16 x_sflag; 15 | }; 16 | 17 | #define RTSXOFF 0x0001 /* RTS flow control on input */ 18 | #define CTSXON 0x0002 /* CTS flow control on output */ 19 | #define DTRXOFF 0x0004 /* DTR flow control on input */ 20 | #define DSRXON 0x0008 /* DCD flow control on output */ 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "riscv-binutils-gdb"] 2 | path = riscv-binutils-gdb 3 | url = https://github.com/pulp-platform/pulp-riscv-binutils-gdb.git 4 | [submodule "riscv-gcc"] 5 | path = riscv-gcc 6 | url = https://github.com/pulp-platform/pulp-riscv-gcc.git 7 | [submodule "riscv-glibc"] 8 | path = riscv-glibc 9 | url = https://github.com/riscv/riscv-glibc.git 10 | [submodule "riscv-dejagnu"] 11 | path = riscv-dejagnu 12 | url = https://github.com/riscv/riscv-dejagnu.git 13 | [submodule "riscv-newlib"] 14 | path = riscv-newlib 15 | url = https://github.com/pulp-platform/pulp-riscv-newlib.git 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_nflog.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_NFLOG_H 2 | #define __LINUX_BRIDGE_EBT_NFLOG_H 3 | 4 | #include 5 | 6 | #define EBT_NFLOG_MASK 0x0 7 | 8 | #define EBT_NFLOG_PREFIX_SIZE 64 9 | #define EBT_NFLOG_WATCHER "nflog" 10 | 11 | #define EBT_NFLOG_DEFAULT_GROUP 0x1 12 | #define EBT_NFLOG_DEFAULT_THRESHOLD 1 13 | 14 | struct ebt_nflog_info { 15 | __u32 len; 16 | __u16 group; 17 | __u16 threshold; 18 | __u16 flags; 19 | __u16 pad; 20 | char prefix[EBT_NFLOG_PREFIX_SIZE]; 21 | }; 22 | 23 | #endif /* __LINUX_BRIDGE_EBT_NFLOG_H */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_BITS_PER_LONG 2 | #define __ASM_GENERIC_BITS_PER_LONG 3 | 4 | /* 5 | * There seems to be no way of detecting this automatically from user 6 | * space, so 64 bit architectures should override this in their 7 | * bitsperlong.h. In particular, an architecture that supports 8 | * both 32 and 64 bit user space must not rely on CONFIG_64BIT 9 | * to decide it, but rather check a compiler provided macro. 10 | */ 11 | #ifndef __BITS_PER_LONG 12 | #define __BITS_PER_LONG 32 13 | #endif 14 | 15 | #endif /* __ASM_GENERIC_BITS_PER_LONG */ 16 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_log.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_LOG_H 2 | #define __LINUX_BRIDGE_EBT_LOG_H 3 | 4 | #include 5 | 6 | #define EBT_LOG_IP 0x01 /* if the frame is made by ip, log the ip information */ 7 | #define EBT_LOG_ARP 0x02 8 | #define EBT_LOG_NFLOG 0x04 9 | #define EBT_LOG_IP6 0x08 10 | #define EBT_LOG_MASK (EBT_LOG_IP | EBT_LOG_ARP | EBT_LOG_IP6) 11 | #define EBT_LOG_PREFIX_SIZE 30 12 | #define EBT_LOG_WATCHER "log" 13 | 14 | struct ebt_log_info { 15 | __u8 loglevel; 16 | __u8 prefix[EBT_LOG_PREFIX_SIZE]; 17 | __u32 bitmask; 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/reiserfs_xattr.h: -------------------------------------------------------------------------------- 1 | /* 2 | File: linux/reiserfs_xattr.h 3 | */ 4 | 5 | #ifndef _LINUX_REISERFS_XATTR_H 6 | #define _LINUX_REISERFS_XATTR_H 7 | 8 | #include 9 | 10 | /* Magic value in header */ 11 | #define REISERFS_XATTR_MAGIC 0x52465841 /* "RFXA" */ 12 | 13 | struct reiserfs_xattr_header { 14 | __le32 h_magic; /* magic number for identification */ 15 | __le32 h_hash; /* hash of the value */ 16 | }; 17 | 18 | struct reiserfs_security_handle { 19 | const char *name; 20 | void *value; 21 | size_t length; 22 | }; 23 | 24 | #endif /* _LINUX_REISERFS_XATTR_H */ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_SECMARK.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_SECMARK_H_target 2 | #define _XT_SECMARK_H_target 3 | 4 | #include 5 | 6 | /* 7 | * This is intended for use by various security subsystems (but not 8 | * at the same time). 9 | * 10 | * 'mode' refers to the specific security subsystem which the 11 | * packets are being marked for. 12 | */ 13 | #define SECMARK_MODE_SEL 0x01 /* SELinux */ 14 | #define SECMARK_SECCTX_MAX 256 15 | 16 | struct xt_secmark_target_info { 17 | __u8 mode; 18 | __u32 secid; 19 | char secctx[SECMARK_SECCTX_MAX]; 20 | }; 21 | 22 | #endif /*_XT_SECMARK_H_target */ 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_CHECKSUM.h: -------------------------------------------------------------------------------- 1 | /* Header file for iptables ipt_CHECKSUM target 2 | * 3 | * (C) 2002 by Harald Welte 4 | * (C) 2010 Red Hat Inc 5 | * Author: Michael S. Tsirkin 6 | * 7 | * This software is distributed under GNU GPL v2, 1991 8 | */ 9 | #ifndef _XT_CHECKSUM_TARGET_H 10 | #define _XT_CHECKSUM_TARGET_H 11 | 12 | #include 13 | 14 | #define XT_CHECKSUM_OP_FILL 0x01 /* fill in checksum in IP header */ 15 | 16 | struct xt_CHECKSUM_info { 17 | __u8 operation; /* bitset of operations */ 18 | }; 19 | 20 | #endif /* _XT_CHECKSUM_TARGET_H */ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atmclip.h: -------------------------------------------------------------------------------- 1 | /* atmclip.h - Classical IP over ATM */ 2 | 3 | /* Written 1995-1998 by Werner Almesberger, EPFL LRC/ICA */ 4 | 5 | 6 | #ifndef LINUX_ATMCLIP_H 7 | #define LINUX_ATMCLIP_H 8 | 9 | #include 10 | #include 11 | 12 | 13 | #define RFC1483LLC_LEN 8 /* LLC+OUI+PID = 8 */ 14 | #define RFC1626_MTU 9180 /* RFC1626 default MTU */ 15 | 16 | #define CLIP_DEFAULT_IDLETIMER 1200 /* 20 minutes, see RFC1755 */ 17 | #define CLIP_CHECK_INTERVAL 10 /* check every ten seconds */ 18 | 19 | #define SIOCMKCLIP _IO('a',ATMIOC_CLIP) /* create IP interface */ 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_physdev.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_PHYSDEV_H 2 | #define _XT_PHYSDEV_H 3 | 4 | #include 5 | #include 6 | 7 | #define XT_PHYSDEV_OP_IN 0x01 8 | #define XT_PHYSDEV_OP_OUT 0x02 9 | #define XT_PHYSDEV_OP_BRIDGED 0x04 10 | #define XT_PHYSDEV_OP_ISIN 0x08 11 | #define XT_PHYSDEV_OP_ISOUT 0x10 12 | #define XT_PHYSDEV_OP_MASK (0x20 - 1) 13 | 14 | struct xt_physdev_info { 15 | char physindev[IFNAMSIZ]; 16 | char in_mask[IFNAMSIZ]; 17 | char physoutdev[IFNAMSIZ]; 18 | char out_mask[IFNAMSIZ]; 19 | __u8 invert; 20 | __u8 bitmask; 21 | }; 22 | 23 | #endif /* _XT_PHYSDEV_H */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_iprange.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NETFILTER_XT_IPRANGE_H 2 | #define _LINUX_NETFILTER_XT_IPRANGE_H 1 3 | 4 | #include 5 | #include 6 | 7 | enum { 8 | IPRANGE_SRC = 1 << 0, /* match source IP address */ 9 | IPRANGE_DST = 1 << 1, /* match destination IP address */ 10 | IPRANGE_SRC_INV = 1 << 4, /* negate the condition */ 11 | IPRANGE_DST_INV = 1 << 5, /* -"- */ 12 | }; 13 | 14 | struct xt_iprange_mtinfo { 15 | union nf_inet_addr src_min, src_max; 16 | union nf_inet_addr dst_min, dst_max; 17 | __u8 flags; 18 | }; 19 | 20 | #endif /* _LINUX_NETFILTER_XT_IPRANGE_H */ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nf_conntrack_sctp.h: -------------------------------------------------------------------------------- 1 | #ifndef _NF_CONNTRACK_SCTP_H 2 | #define _NF_CONNTRACK_SCTP_H 3 | /* SCTP tracking. */ 4 | 5 | #include 6 | 7 | enum sctp_conntrack { 8 | SCTP_CONNTRACK_NONE, 9 | SCTP_CONNTRACK_CLOSED, 10 | SCTP_CONNTRACK_COOKIE_WAIT, 11 | SCTP_CONNTRACK_COOKIE_ECHOED, 12 | SCTP_CONNTRACK_ESTABLISHED, 13 | SCTP_CONNTRACK_SHUTDOWN_SENT, 14 | SCTP_CONNTRACK_SHUTDOWN_RECD, 15 | SCTP_CONNTRACK_SHUTDOWN_ACK_SENT, 16 | SCTP_CONNTRACK_HEARTBEAT_SENT, 17 | SCTP_CONNTRACK_HEARTBEAT_ACKED, 18 | SCTP_CONNTRACK_MAX 19 | }; 20 | 21 | #endif /* _NF_CONNTRACK_SCTP_H */ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netconf.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NETCONF_H_ 2 | #define _LINUX_NETCONF_H_ 3 | 4 | #include 5 | #include 6 | 7 | struct netconfmsg { 8 | __u8 ncm_family; 9 | }; 10 | 11 | enum { 12 | NETCONFA_UNSPEC, 13 | NETCONFA_IFINDEX, 14 | NETCONFA_FORWARDING, 15 | NETCONFA_RP_FILTER, 16 | NETCONFA_MC_FORWARDING, 17 | NETCONFA_PROXY_NEIGH, 18 | NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN, 19 | __NETCONFA_MAX 20 | }; 21 | #define NETCONFA_MAX (__NETCONFA_MAX - 1) 22 | #define NETCONFA_ALL -1 23 | 24 | #define NETCONFA_IFINDEX_ALL -1 25 | #define NETCONFA_IFINDEX_DEFAULT -2 26 | 27 | #endif /* _LINUX_NETCONF_H_ */ 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_TPROXY.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TPROXY_H 2 | #define _XT_TPROXY_H 3 | 4 | #include 5 | #include 6 | 7 | /* TPROXY target is capable of marking the packet to perform 8 | * redirection. We can get rid of that whenever we get support for 9 | * mutliple targets in the same rule. */ 10 | struct xt_tproxy_target_info { 11 | __u32 mark_mask; 12 | __u32 mark_value; 13 | __be32 laddr; 14 | __be16 lport; 15 | }; 16 | 17 | struct xt_tproxy_target_info_v1 { 18 | __u32 mark_mask; 19 | __u32 mark_value; 20 | union nf_inet_addr laddr; 21 | __be16 lport; 22 | }; 23 | 24 | #endif /* _XT_TPROXY_H */ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/ipset/ip_set_hash.h: -------------------------------------------------------------------------------- 1 | #ifndef __IP_SET_HASH_H 2 | #define __IP_SET_HASH_H 3 | 4 | #include 5 | 6 | /* Hash type specific error codes */ 7 | enum { 8 | /* Hash is full */ 9 | IPSET_ERR_HASH_FULL = IPSET_ERR_TYPE_SPECIFIC, 10 | /* Null-valued element */ 11 | IPSET_ERR_HASH_ELEM, 12 | /* Invalid protocol */ 13 | IPSET_ERR_INVALID_PROTO, 14 | /* Protocol missing but must be specified */ 15 | IPSET_ERR_MISSING_PROTO, 16 | /* Range not supported */ 17 | IPSET_ERR_HASH_RANGE_UNSUPPORTED, 18 | /* Invalid range */ 19 | IPSET_ERR_HASH_RANGE, 20 | }; 21 | 22 | 23 | #endif /* __IP_SET_HASH_H */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_connbytes.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CONNBYTES_H 2 | #define _XT_CONNBYTES_H 3 | 4 | #include 5 | 6 | enum xt_connbytes_what { 7 | XT_CONNBYTES_PKTS, 8 | XT_CONNBYTES_BYTES, 9 | XT_CONNBYTES_AVGPKT, 10 | }; 11 | 12 | enum xt_connbytes_direction { 13 | XT_CONNBYTES_DIR_ORIGINAL, 14 | XT_CONNBYTES_DIR_REPLY, 15 | XT_CONNBYTES_DIR_BOTH, 16 | }; 17 | 18 | struct xt_connbytes_info { 19 | struct { 20 | __aligned_u64 from; /* count to be matched */ 21 | __aligned_u64 to; /* count to be matched */ 22 | } count; 23 | __u8 what; /* ipt_connbytes_what */ 24 | __u8 direction; /* ipt_connbytes_direction */ 25 | }; 26 | #endif 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/binfmts.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_BINFMTS_H 2 | #define _LINUX_BINFMTS_H 3 | 4 | #include 5 | 6 | struct pt_regs; 7 | 8 | /* 9 | * These are the maximum length and maximum number of strings passed to the 10 | * execve() system call. MAX_ARG_STRLEN is essentially random but serves to 11 | * prevent the kernel from being unduly impacted by misaddressed pointers. 12 | * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. 13 | */ 14 | #define MAX_ARG_STRLEN (PAGE_SIZE * 32) 15 | #define MAX_ARG_STRINGS 0x7FFFFFFF 16 | 17 | /* sizeof(linux_binprm->buf) */ 18 | #define BINPRM_BUF_SIZE 128 19 | 20 | #endif /* _LINUX_BINFMTS_H */ 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_connlimit.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CONNLIMIT_H 2 | #define _XT_CONNLIMIT_H 3 | 4 | #include 5 | #include 6 | 7 | struct xt_connlimit_data; 8 | 9 | enum { 10 | XT_CONNLIMIT_INVERT = 1 << 0, 11 | XT_CONNLIMIT_DADDR = 1 << 1, 12 | }; 13 | 14 | struct xt_connlimit_info { 15 | union { 16 | union nf_inet_addr mask; 17 | union { 18 | __be32 v4_mask; 19 | __be32 v6_mask[4]; 20 | }; 21 | }; 22 | unsigned int limit; 23 | /* revision 1 */ 24 | __u32 flags; 25 | 26 | /* Used internally by the kernel */ 27 | struct xt_connlimit_data *data __attribute__((aligned(8))); 28 | }; 29 | 30 | #endif /* _XT_CONNLIMIT_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/ipset/ip_set_list.h: -------------------------------------------------------------------------------- 1 | #ifndef __IP_SET_LIST_H 2 | #define __IP_SET_LIST_H 3 | 4 | #include 5 | 6 | /* List type specific error codes */ 7 | enum { 8 | /* Set name to be added/deleted/tested does not exist. */ 9 | IPSET_ERR_NAME = IPSET_ERR_TYPE_SPECIFIC, 10 | /* list:set type is not permitted to add */ 11 | IPSET_ERR_LOOP, 12 | /* Missing reference set */ 13 | IPSET_ERR_BEFORE, 14 | /* Reference set does not exist */ 15 | IPSET_ERR_NAMEREF, 16 | /* Set is full */ 17 | IPSET_ERR_LIST_FULL, 18 | /* Reference set is not added to the set */ 19 | IPSET_ERR_REF_EXIST, 20 | }; 21 | 22 | 23 | #endif /* __IP_SET_LIST_H */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_LOG.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_LOG_H 2 | #define _XT_LOG_H 3 | 4 | /* make sure not to change this without changing nf_log.h:NF_LOG_* (!) */ 5 | #define XT_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */ 6 | #define XT_LOG_TCPOPT 0x02 /* Log TCP options */ 7 | #define XT_LOG_IPOPT 0x04 /* Log IP options */ 8 | #define XT_LOG_UID 0x08 /* Log UID owning local socket */ 9 | #define XT_LOG_NFLOG 0x10 /* Unsupported, don't reuse */ 10 | #define XT_LOG_MACDECODE 0x20 /* Decode MAC header */ 11 | #define XT_LOG_MASK 0x2f 12 | 13 | struct xt_log_info { 14 | unsigned char level; 15 | unsigned char logflags; 16 | char prefix[30]; 17 | }; 18 | 19 | #endif /* _XT_LOG_H */ 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/hdlc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generic HDLC support routines for Linux 3 | * 4 | * Copyright (C) 1999-2005 Krzysztof Halasa 5 | * 6 | * This program is free software; you can redistribute it and/or modify it 7 | * under the terms of version 2 of the GNU General Public License 8 | * as published by the Free Software Foundation. 9 | */ 10 | 11 | #ifndef __HDLC_H 12 | #define __HDLC_H 13 | 14 | 15 | #define HDLC_MAX_MTU 1500 /* Ethernet 1500 bytes */ 16 | #if 0 17 | #define HDLC_MAX_MRU (HDLC_MAX_MTU + 10 + 14 + 4) /* for ETH+VLAN over FR */ 18 | #else 19 | #define HDLC_MAX_MRU 1600 /* as required for FR network */ 20 | #endif 21 | 22 | 23 | #endif /* __HDLC_H */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atmppp.h: -------------------------------------------------------------------------------- 1 | /* atmppp.h - RFC2364 PPPoATM */ 2 | 3 | /* Written 2000 by Mitchell Blank Jr */ 4 | 5 | #ifndef _LINUX_ATMPPP_H 6 | #define _LINUX_ATMPPP_H 7 | 8 | #include 9 | 10 | #define PPPOATM_ENCAPS_AUTODETECT (0) 11 | #define PPPOATM_ENCAPS_VC (1) 12 | #define PPPOATM_ENCAPS_LLC (2) 13 | 14 | /* 15 | * This is for the ATM_SETBACKEND call - these are like socket families: 16 | * the first element of the structure is the backend number and the rest 17 | * is per-backend specific 18 | */ 19 | struct atm_backend_ppp { 20 | atm_backend_t backend_num; /* ATM_BACKEND_PPP */ 21 | int encaps; /* PPPOATM_ENCAPS_* */ 22 | }; 23 | 24 | #endif /* _LINUX_ATMPPP_H */ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_arp/arpt_mangle.h: -------------------------------------------------------------------------------- 1 | #ifndef _ARPT_MANGLE_H 2 | #define _ARPT_MANGLE_H 3 | #include 4 | 5 | #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr) 6 | struct arpt_mangle 7 | { 8 | char src_devaddr[ARPT_DEV_ADDR_LEN_MAX]; 9 | char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX]; 10 | union { 11 | struct in_addr src_ip; 12 | } u_s; 13 | union { 14 | struct in_addr tgt_ip; 15 | } u_t; 16 | __u8 flags; 17 | int target; 18 | }; 19 | 20 | #define ARPT_MANGLE_SDEV 0x01 21 | #define ARPT_MANGLE_TDEV 0x02 22 | #define ARPT_MANGLE_SIP 0x04 23 | #define ARPT_MANGLE_TIP 0x08 24 | #define ARPT_MANGLE_MASK 0x0f 25 | 26 | #endif /* _ARPT_MANGLE_H */ 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_limit.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_LIMIT_H 2 | #define __LINUX_BRIDGE_EBT_LIMIT_H 3 | 4 | #include 5 | 6 | #define EBT_LIMIT_MATCH "limit" 7 | 8 | /* timings are in milliseconds. */ 9 | #define EBT_LIMIT_SCALE 10000 10 | 11 | /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 12 | seconds, or one every 59 hours. */ 13 | 14 | struct ebt_limit_info { 15 | __u32 avg; /* Average secs between packets * scale */ 16 | __u32 burst; /* Period multiplier for upper limit. */ 17 | 18 | /* Used internally by the kernel */ 19 | unsigned long prev; 20 | __u32 credit; 21 | __u32 credit_cap, cost; 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atm_eni.h: -------------------------------------------------------------------------------- 1 | /* atm_eni.h - Driver-specific declarations of the ENI driver (for use by 2 | driver-specific utilities) */ 3 | 4 | /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 5 | 6 | 7 | #ifndef LINUX_ATM_ENI_H 8 | #define LINUX_ATM_ENI_H 9 | 10 | #include 11 | 12 | 13 | struct eni_multipliers { 14 | int tx,rx; /* values are in percent and must be > 100 */ 15 | }; 16 | 17 | 18 | #define ENI_MEMDUMP _IOW('a',ATMIOC_SARPRV,struct atmif_sioc) 19 | /* printk memory map */ 20 | #define ENI_SETMULT _IOW('a',ATMIOC_SARPRV+7,struct atmif_sioc) 21 | /* set buffer multipliers */ 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/qnxtypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Name : qnxtypes.h 3 | * Author : Richard Frowijn 4 | * Function : standard qnx types 5 | * History : 22-03-1998 created 6 | * 7 | */ 8 | 9 | #ifndef _QNX4TYPES_H 10 | #define _QNX4TYPES_H 11 | 12 | #include 13 | 14 | typedef __le16 qnx4_nxtnt_t; 15 | typedef __u8 qnx4_ftype_t; 16 | 17 | typedef struct { 18 | __le32 xtnt_blk; 19 | __le32 xtnt_size; 20 | } qnx4_xtnt_t; 21 | 22 | typedef __le16 qnx4_mode_t; 23 | typedef __le16 qnx4_muid_t; 24 | typedef __le16 qnx4_mgid_t; 25 | typedef __le32 qnx4_off_t; 26 | typedef __le16 qnx4_nlink_t; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/usbip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * usbip.h 3 | * 4 | * USBIP uapi defines and function prototypes etc. 5 | */ 6 | 7 | #ifndef _LINUX_USBIP_H 8 | #define _LINUX_USBIP_H 9 | 10 | /* usbip device status - exported in usbip device sysfs status */ 11 | enum usbip_device_status { 12 | /* sdev is available. */ 13 | SDEV_ST_AVAILABLE = 0x01, 14 | /* sdev is now used. */ 15 | SDEV_ST_USED, 16 | /* sdev is unusable because of a fatal error. */ 17 | SDEV_ST_ERROR, 18 | 19 | /* vdev does not connect a remote device. */ 20 | VDEV_ST_NULL, 21 | /* vdev is used, but the USB address is not assigned yet */ 22 | VDEV_ST_NOTASSIGNED, 23 | VDEV_ST_USED, 24 | VDEV_ST_ERROR 25 | }; 26 | #endif /* _LINUX_USBIP_H */ 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/wait.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_WAIT_H 2 | #define _LINUX_WAIT_H 3 | 4 | #define WNOHANG 0x00000001 5 | #define WUNTRACED 0x00000002 6 | #define WSTOPPED WUNTRACED 7 | #define WEXITED 0x00000004 8 | #define WCONTINUED 0x00000008 9 | #define WNOWAIT 0x01000000 /* Don't reap, just poll status. */ 10 | 11 | #define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads in this group */ 12 | #define __WALL 0x40000000 /* Wait on all children, regardless of type */ 13 | #define __WCLONE 0x80000000 /* Wait only on non-SIGCHLD children */ 14 | 15 | /* First argument to waitid: */ 16 | #define P_ALL 0 17 | #define P_PID 1 18 | #define P_PGID 2 19 | 20 | 21 | #endif /* _LINUX_WAIT_H */ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_ah.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_AH_H 2 | #define _IP6T_AH_H 3 | 4 | #include 5 | 6 | struct ip6t_ah { 7 | __u32 spis[2]; /* Security Parameter Index */ 8 | __u32 hdrlen; /* Header Length */ 9 | __u8 hdrres; /* Test of the Reserved Filed */ 10 | __u8 invflags; /* Inverse flags */ 11 | }; 12 | 13 | #define IP6T_AH_SPI 0x01 14 | #define IP6T_AH_LEN 0x02 15 | #define IP6T_AH_RES 0x04 16 | 17 | /* Values for "invflags" field in struct ip6t_ah. */ 18 | #define IP6T_AH_INV_SPI 0x01 /* Invert the sense of spi. */ 19 | #define IP6T_AH_INV_LEN 0x02 /* Invert the sense of length. */ 20 | #define IP6T_AH_INV_MASK 0x03 /* All possible flags. */ 21 | 22 | #endif /*_IP6T_AH_H*/ 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_opts.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_OPTS_H 2 | #define _IP6T_OPTS_H 3 | 4 | #include 5 | 6 | #define IP6T_OPTS_OPTSNR 16 7 | 8 | struct ip6t_opts { 9 | __u32 hdrlen; /* Header Length */ 10 | __u8 flags; /* */ 11 | __u8 invflags; /* Inverse flags */ 12 | __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ 13 | __u8 optsnr; /* Nr of OPts */ 14 | }; 15 | 16 | #define IP6T_OPTS_LEN 0x01 17 | #define IP6T_OPTS_OPTS 0x02 18 | #define IP6T_OPTS_NSTRICT 0x04 19 | 20 | /* Values for "invflags" field in struct ip6t_rt. */ 21 | #define IP6T_OPTS_INV_LEN 0x01 /* Invert the sense of length. */ 22 | #define IP6T_OPTS_INV_MASK 0x01 /* All possible flags. */ 23 | 24 | #endif /*_IP6T_OPTS_H*/ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_csum.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_CSUM_H 2 | #define __LINUX_TC_CSUM_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_CSUM 16 8 | 9 | enum { 10 | TCA_CSUM_UNSPEC, 11 | TCA_CSUM_PARMS, 12 | TCA_CSUM_TM, 13 | __TCA_CSUM_MAX 14 | }; 15 | #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) 16 | 17 | enum { 18 | TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1, 19 | TCA_CSUM_UPDATE_FLAG_ICMP = 2, 20 | TCA_CSUM_UPDATE_FLAG_IGMP = 4, 21 | TCA_CSUM_UPDATE_FLAG_TCP = 8, 22 | TCA_CSUM_UPDATE_FLAG_UDP = 16, 23 | TCA_CSUM_UPDATE_FLAG_UDPLITE = 32 24 | }; 25 | 26 | struct tc_csum { 27 | tc_gen; 28 | 29 | __u32 update_flags; 30 | }; 31 | 32 | #endif /* __LINUX_TC_CSUM_H */ 33 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | addons: 4 | apt: 5 | sources: 6 | - ubuntu-toolchain-r-test 7 | packages: 8 | - autoconf 9 | - automake 10 | - autotools-dev 11 | - bc 12 | - bison 13 | - build-essential 14 | - curl 15 | - flex 16 | - gawk 17 | - gperf 18 | - libgmp-dev 19 | - libmpc-dev 20 | - libmpfr-dev 21 | - libtool 22 | - patchutils 23 | - texinfo 24 | - gcc-4.8 25 | - g++-4.8 26 | before_install: 27 | - export MAKEFLAGS="-j3" 28 | - export CXX=g++-4.8 29 | - export CC=gcc-4.8 30 | install: true 31 | script: 32 | - ./configure --prefix=/tmp/build-default 33 | - (make > /dev/null) || (make -j1 && exit 1) 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/net_namespace.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2015 6WIND S.A. 2 | * Author: Nicolas Dichtel 3 | * 4 | * This program is free software; you can redistribute it and/or modify it 5 | * under the terms and conditions of the GNU General Public License, 6 | * version 2, as published by the Free Software Foundation. 7 | */ 8 | #ifndef _LINUX_NET_NAMESPACE_H_ 9 | #define _LINUX_NET_NAMESPACE_H_ 10 | 11 | /* Attributes of RTM_NEWNSID/RTM_GETNSID messages */ 12 | enum { 13 | NETNSA_NONE, 14 | #define NETNSA_NSID_NOT_ASSIGNED -1 15 | NETNSA_NSID, 16 | NETNSA_PID, 17 | NETNSA_FD, 18 | __NETNSA_MAX, 19 | }; 20 | 21 | #define NETNSA_MAX (__NETNSA_MAX - 1) 22 | 23 | #endif /* _LINUX_NET_NAMESPACE_H_ */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/hw_breakpoint.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_HW_BREAKPOINT_H 2 | #define _LINUX_HW_BREAKPOINT_H 3 | 4 | enum { 5 | HW_BREAKPOINT_LEN_1 = 1, 6 | HW_BREAKPOINT_LEN_2 = 2, 7 | HW_BREAKPOINT_LEN_4 = 4, 8 | HW_BREAKPOINT_LEN_8 = 8, 9 | }; 10 | 11 | enum { 12 | HW_BREAKPOINT_EMPTY = 0, 13 | HW_BREAKPOINT_R = 1, 14 | HW_BREAKPOINT_W = 2, 15 | HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W, 16 | HW_BREAKPOINT_X = 4, 17 | HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X, 18 | }; 19 | 20 | enum bp_type_idx { 21 | TYPE_INST = 0, 22 | #ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS 23 | TYPE_DATA = 0, 24 | #else 25 | TYPE_DATA = 1, 26 | #endif 27 | TYPE_MAX 28 | }; 29 | 30 | #endif /* _LINUX_HW_BREAKPOINT_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_plip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NET3 PLIP tuning facilities for the new Niibe PLIP. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * as published by the Free Software Foundation; either version 7 | * 2 of the License, or (at your option) any later version. 8 | * 9 | */ 10 | 11 | #ifndef _LINUX_IF_PLIP_H 12 | #define _LINUX_IF_PLIP_H 13 | 14 | #include 15 | 16 | #define SIOCDEVPLIP SIOCDEVPRIVATE 17 | 18 | struct plipconf { 19 | unsigned short pcmd; 20 | unsigned long nibble; 21 | unsigned long trigger; 22 | }; 23 | 24 | #define PLIP_GET_TIMEOUT 0x1 25 | #define PLIP_SET_TIMEOUT 0x2 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_socket.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_SOCKET_H 2 | #define _XT_SOCKET_H 3 | 4 | #include 5 | 6 | enum { 7 | XT_SOCKET_TRANSPARENT = 1 << 0, 8 | XT_SOCKET_NOWILDCARD = 1 << 1, 9 | XT_SOCKET_RESTORESKMARK = 1 << 2, 10 | }; 11 | 12 | struct xt_socket_mtinfo1 { 13 | __u8 flags; 14 | }; 15 | #define XT_SOCKET_FLAGS_V1 XT_SOCKET_TRANSPARENT 16 | 17 | struct xt_socket_mtinfo2 { 18 | __u8 flags; 19 | }; 20 | #define XT_SOCKET_FLAGS_V2 (XT_SOCKET_TRANSPARENT | XT_SOCKET_NOWILDCARD) 21 | 22 | struct xt_socket_mtinfo3 { 23 | __u8 flags; 24 | }; 25 | #define XT_SOCKET_FLAGS_V3 (XT_SOCKET_TRANSPARENT \ 26 | | XT_SOCKET_NOWILDCARD \ 27 | | XT_SOCKET_RESTORESKMARK) 28 | 29 | #endif /* _XT_SOCKET_H */ 30 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_gact.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_GACT_H 2 | #define __LINUX_TC_GACT_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_GACT 5 8 | struct tc_gact { 9 | tc_gen; 10 | 11 | }; 12 | 13 | struct tc_gact_p { 14 | #define PGACT_NONE 0 15 | #define PGACT_NETRAND 1 16 | #define PGACT_DETERM 2 17 | #define MAX_RAND (PGACT_DETERM + 1 ) 18 | __u16 ptype; 19 | __u16 pval; 20 | int paction; 21 | }; 22 | 23 | enum { 24 | TCA_GACT_UNSPEC, 25 | TCA_GACT_TM, 26 | TCA_GACT_PARMS, 27 | TCA_GACT_PROB, 28 | __TCA_GACT_MAX 29 | }; 30 | #define TCA_GACT_MAX (__TCA_GACT_MAX - 1) 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /linux-headers/include/linux/udf_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * udf_fs_i.h 3 | * 4 | * This file is intended for the Linux kernel/module. 5 | * 6 | * COPYRIGHT 7 | * This file is distributed under the terms of the GNU General Public 8 | * License (GPL). Copies of the GPL can be obtained from: 9 | * ftp://prep.ai.mit.edu/pub/gnu/GPL 10 | * Each contributing author retains all rights to their own work. 11 | */ 12 | #ifndef _UDF_FS_I_H 13 | #define _UDF_FS_I_H 1 14 | 15 | /* exported IOCTLs, we have 'l', 0x40-0x7f */ 16 | #define UDF_GETEASIZE _IOR('l', 0x40, int) 17 | #define UDF_GETEABLOCK _IOR('l', 0x41, void *) 18 | #define UDF_GETVOLIDENT _IOR('l', 0x42, void *) 19 | #define UDF_RELOCATE_BLOCKS _IOWR('l', 0x43, long) 20 | 21 | #endif /* _UDF_FS_I_H */ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/ncp_no.h: -------------------------------------------------------------------------------- 1 | #ifndef _NCP_NO 2 | #define _NCP_NO 3 | 4 | /* these define the attribute byte as seen by NCP */ 5 | #define aRONLY (__cpu_to_le32(1)) 6 | #define aHIDDEN (__cpu_to_le32(2)) 7 | #define aSYSTEM (__cpu_to_le32(4)) 8 | #define aEXECUTE (__cpu_to_le32(8)) 9 | #define aDIR (__cpu_to_le32(0x10)) 10 | #define aARCH (__cpu_to_le32(0x20)) 11 | #define aSHARED (__cpu_to_le32(0x80)) 12 | #define aDONTSUBALLOCATE (__cpu_to_le32(1L<<11)) 13 | #define aTRANSACTIONAL (__cpu_to_le32(1L<<12)) 14 | #define aPURGE (__cpu_to_le32(1L<<16)) 15 | #define aRENAMEINHIBIT (__cpu_to_le32(1L<<17)) 16 | #define aDELETEINHIBIT (__cpu_to_le32(1L<<18)) 17 | #define aDONTCOMPRESS (__cpu_to_le32(1L<<27)) 18 | 19 | #endif /* _NCP_NO */ 20 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_limit.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_RATE_H 2 | #define _XT_RATE_H 3 | 4 | #include 5 | 6 | /* timings are in milliseconds. */ 7 | #define XT_LIMIT_SCALE 10000 8 | 9 | struct xt_limit_priv; 10 | 11 | /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 12 | seconds, or one every 59 hours. */ 13 | struct xt_rateinfo { 14 | __u32 avg; /* Average secs between packets * scale */ 15 | __u32 burst; /* Period multiplier for upper limit. */ 16 | 17 | /* Used internally by the kernel */ 18 | unsigned long prev; /* moved to xt_limit_priv */ 19 | __u32 credit; /* moved to xt_limit_priv */ 20 | __u32 credit_cap, cost; 21 | 22 | struct xt_limit_priv *master; 23 | }; 24 | #endif /*_XT_RATE_H*/ 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_ipv6header.h: -------------------------------------------------------------------------------- 1 | /* ipv6header match - matches IPv6 packets based 2 | on whether they contain certain headers */ 3 | 4 | /* Original idea: Brad Chapman 5 | * Rewritten by: Andras Kis-Szabo */ 6 | 7 | 8 | #ifndef __IPV6HEADER_H 9 | #define __IPV6HEADER_H 10 | 11 | #include 12 | 13 | struct ip6t_ipv6header_info { 14 | __u8 matchflags; 15 | __u8 invflags; 16 | __u8 modeflag; 17 | }; 18 | 19 | #define MASK_HOPOPTS 128 20 | #define MASK_DSTOPTS 64 21 | #define MASK_ROUTING 32 22 | #define MASK_FRAGMENT 16 23 | #define MASK_AH 8 24 | #define MASK_ESP 4 25 | #define MASK_NONE 2 26 | #define MASK_PROTO 1 27 | 28 | #endif /* __IPV6HEADER_H */ 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/nfsacl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: linux/nfsacl.h 3 | * 4 | * (C) 2003 Andreas Gruenbacher 5 | */ 6 | #ifndef __LINUX_NFSACL_H 7 | #define __LINUX_NFSACL_H 8 | 9 | #define NFS_ACL_PROGRAM 100227 10 | 11 | #define ACLPROC2_GETACL 1 12 | #define ACLPROC2_SETACL 2 13 | #define ACLPROC2_GETATTR 3 14 | #define ACLPROC2_ACCESS 4 15 | 16 | #define ACLPROC3_GETACL 1 17 | #define ACLPROC3_SETACL 2 18 | 19 | 20 | /* Flags for the getacl/setacl mode */ 21 | #define NFS_ACL 0x0001 22 | #define NFS_ACLCNT 0x0002 23 | #define NFS_DFACL 0x0004 24 | #define NFS_DFACLCNT 0x0008 25 | #define NFS_ACL_MASK 0x000f 26 | 27 | /* Flag for Default ACL entries */ 28 | #define NFS_ACL_DEFAULT 0x1000 29 | 30 | #endif /* __LINUX_NFSACL_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_DSCP.h: -------------------------------------------------------------------------------- 1 | /* x_tables module for setting the IPv4/IPv6 DSCP field 2 | * 3 | * (C) 2002 Harald Welte 4 | * based on ipt_FTOS.c (C) 2000 by Matthew G. Marsh 5 | * This software is distributed under GNU GPL v2, 1991 6 | * 7 | * See RFC2474 for a description of the DSCP field within the IP Header. 8 | * 9 | * xt_DSCP.h,v 1.7 2002/03/14 12:03:13 laforge Exp 10 | */ 11 | #ifndef _XT_DSCP_TARGET_H 12 | #define _XT_DSCP_TARGET_H 13 | #include 14 | #include 15 | 16 | /* target info */ 17 | struct xt_DSCP_info { 18 | __u8 dscp; 19 | }; 20 | 21 | struct xt_tos_target_info { 22 | __u8 tos_value; 23 | __u8 tos_mask; 24 | }; 25 | 26 | #endif /* _XT_DSCP_TARGET_H */ 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_ipvs.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_IPVS_H 2 | #define _XT_IPVS_H 3 | 4 | #include 5 | #include 6 | 7 | enum { 8 | XT_IPVS_IPVS_PROPERTY = 1 << 0, /* all other options imply this one */ 9 | XT_IPVS_PROTO = 1 << 1, 10 | XT_IPVS_VADDR = 1 << 2, 11 | XT_IPVS_VPORT = 1 << 3, 12 | XT_IPVS_DIR = 1 << 4, 13 | XT_IPVS_METHOD = 1 << 5, 14 | XT_IPVS_VPORTCTL = 1 << 6, 15 | XT_IPVS_MASK = (1 << 7) - 1, 16 | XT_IPVS_ONCE_MASK = XT_IPVS_MASK & ~XT_IPVS_IPVS_PROPERTY 17 | }; 18 | 19 | struct xt_ipvs_mtinfo { 20 | union nf_inet_addr vaddr, vmask; 21 | __be16 vport; 22 | __u8 l4proto; 23 | __u8 fwd_method; 24 | __be16 vportctl; 25 | 26 | __u8 invert; 27 | __u8 bitmask; 28 | }; 29 | 30 | #endif /* _XT_IPVS_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_LOG.h: -------------------------------------------------------------------------------- 1 | #ifndef _IPT_LOG_H 2 | #define _IPT_LOG_H 3 | 4 | #warning "Please update iptables, this file will be removed soon!" 5 | 6 | /* make sure not to change this without changing netfilter.h:NF_LOG_* (!) */ 7 | #define IPT_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */ 8 | #define IPT_LOG_TCPOPT 0x02 /* Log TCP options */ 9 | #define IPT_LOG_IPOPT 0x04 /* Log IP options */ 10 | #define IPT_LOG_UID 0x08 /* Log UID owning local socket */ 11 | #define IPT_LOG_NFLOG 0x10 /* Unsupported, don't reuse */ 12 | #define IPT_LOG_MACDECODE 0x20 /* Decode MAC header */ 13 | #define IPT_LOG_MASK 0x2f 14 | 15 | struct ipt_log_info { 16 | unsigned char level; 17 | unsigned char logflags; 18 | char prefix[30]; 19 | }; 20 | 21 | #endif /*_IPT_LOG_H*/ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/utsname.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UTSNAME_H 2 | #define _LINUX_UTSNAME_H 3 | 4 | #define __OLD_UTS_LEN 8 5 | 6 | struct oldold_utsname { 7 | char sysname[9]; 8 | char nodename[9]; 9 | char release[9]; 10 | char version[9]; 11 | char machine[9]; 12 | }; 13 | 14 | #define __NEW_UTS_LEN 64 15 | 16 | struct old_utsname { 17 | char sysname[65]; 18 | char nodename[65]; 19 | char release[65]; 20 | char version[65]; 21 | char machine[65]; 22 | }; 23 | 24 | struct new_utsname { 25 | char sysname[__NEW_UTS_LEN + 1]; 26 | char nodename[__NEW_UTS_LEN + 1]; 27 | char release[__NEW_UTS_LEN + 1]; 28 | char version[__NEW_UTS_LEN + 1]; 29 | char machine[__NEW_UTS_LEN + 1]; 30 | char domainname[__NEW_UTS_LEN + 1]; 31 | }; 32 | 33 | 34 | #endif /* _LINUX_UTSNAME_H */ 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_string.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_STRING_H 2 | #define _XT_STRING_H 3 | 4 | #include 5 | 6 | #define XT_STRING_MAX_PATTERN_SIZE 128 7 | #define XT_STRING_MAX_ALGO_NAME_SIZE 16 8 | 9 | enum { 10 | XT_STRING_FLAG_INVERT = 0x01, 11 | XT_STRING_FLAG_IGNORECASE = 0x02 12 | }; 13 | 14 | struct xt_string_info { 15 | __u16 from_offset; 16 | __u16 to_offset; 17 | char algo[XT_STRING_MAX_ALGO_NAME_SIZE]; 18 | char pattern[XT_STRING_MAX_PATTERN_SIZE]; 19 | __u8 patlen; 20 | union { 21 | struct { 22 | __u8 invert; 23 | } v0; 24 | 25 | struct { 26 | __u8 flags; 27 | } v1; 28 | } u; 29 | 30 | /* Used internally by the kernel */ 31 | struct ts_config __attribute__((aligned(8))) *config; 32 | }; 33 | 34 | #endif /*_XT_STRING_H*/ 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_vlan.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_VLAN_H 2 | #define __LINUX_BRIDGE_EBT_VLAN_H 3 | 4 | #include 5 | 6 | #define EBT_VLAN_ID 0x01 7 | #define EBT_VLAN_PRIO 0x02 8 | #define EBT_VLAN_ENCAP 0x04 9 | #define EBT_VLAN_MASK (EBT_VLAN_ID | EBT_VLAN_PRIO | EBT_VLAN_ENCAP) 10 | #define EBT_VLAN_MATCH "vlan" 11 | 12 | struct ebt_vlan_info { 13 | __u16 id; /* VLAN ID {1-4095} */ 14 | __u8 prio; /* VLAN User Priority {0-7} */ 15 | __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ 16 | __u8 bitmask; /* Args bitmask bit 1=1 - ID arg, 17 | bit 2=1 User-Priority arg, bit 3=1 encap*/ 18 | __u8 invflags; /* Inverse bitmask bit 1=1 - inversed ID arg, 19 | bit 2=1 - inversed Pirority arg */ 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_LOG.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_LOG_H 2 | #define _IP6T_LOG_H 3 | 4 | #warning "Please update iptables, this file will be removed soon!" 5 | 6 | /* make sure not to change this without changing netfilter.h:NF_LOG_* (!) */ 7 | #define IP6T_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */ 8 | #define IP6T_LOG_TCPOPT 0x02 /* Log TCP options */ 9 | #define IP6T_LOG_IPOPT 0x04 /* Log IP options */ 10 | #define IP6T_LOG_UID 0x08 /* Log UID owning local socket */ 11 | #define IP6T_LOG_NFLOG 0x10 /* Unsupported, don't use */ 12 | #define IP6T_LOG_MACDECODE 0x20 /* Decode MAC header */ 13 | #define IP6T_LOG_MASK 0x2f 14 | 15 | struct ip6t_log_info { 16 | unsigned char level; 17 | unsigned char logflags; 18 | char prefix[30]; 19 | }; 20 | 21 | #endif /*_IPT_LOG_H*/ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/usb/cdc-wdm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * USB CDC Device Management userspace API definitions 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | #ifndef __LINUX_USB_CDC_WDM_H 10 | #define __LINUX_USB_CDC_WDM_H 11 | 12 | #include 13 | 14 | /* 15 | * This IOCTL is used to retrieve the wMaxCommand for the device, 16 | * defining the message limit for both reading and writing. 17 | * 18 | * For CDC WDM functions this will be the wMaxCommand field of the 19 | * Device Management Functional Descriptor. 20 | */ 21 | #define IOCTL_WDM_MAX_COMMAND _IOR('H', 0xA0, __u16) 22 | 23 | #endif /* __LINUX_USB_CDC_WDM_H */ 24 | -------------------------------------------------------------------------------- /linux-headers/include/linux/mpls_iptunnel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * mpls tunnel api 3 | * 4 | * Authors: 5 | * Roopa Prabhu 6 | * 7 | * This program is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU General Public License 9 | * as published by the Free Software Foundation; either version 10 | * 2 of the License, or (at your option) any later version. 11 | */ 12 | 13 | #ifndef _LINUX_MPLS_IPTUNNEL_H 14 | #define _LINUX_MPLS_IPTUNNEL_H 15 | 16 | /* MPLS tunnel attributes 17 | * [RTA_ENCAP] = { 18 | * [MPLS_IPTUNNEL_DST] 19 | * } 20 | */ 21 | enum { 22 | MPLS_IPTUNNEL_UNSPEC, 23 | MPLS_IPTUNNEL_DST, 24 | __MPLS_IPTUNNEL_MAX, 25 | }; 26 | #define MPLS_IPTUNNEL_MAX (__MPLS_IPTUNNEL_MAX - 1) 27 | 28 | #endif /* _LINUX_MPLS_IPTUNNEL_H */ 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/hpet.h: -------------------------------------------------------------------------------- 1 | #ifndef __HPET__ 2 | #define __HPET__ 3 | 4 | 5 | 6 | 7 | struct hpet_info { 8 | unsigned long hi_ireqfreq; /* Hz */ 9 | unsigned long hi_flags; /* information */ 10 | unsigned short hi_hpet; 11 | unsigned short hi_timer; 12 | }; 13 | 14 | #define HPET_INFO_PERIODIC 0x0010 /* periodic-capable comparator */ 15 | 16 | #define HPET_IE_ON _IO('h', 0x01) /* interrupt on */ 17 | #define HPET_IE_OFF _IO('h', 0x02) /* interrupt off */ 18 | #define HPET_INFO _IOR('h', 0x03, struct hpet_info) 19 | #define HPET_EPI _IO('h', 0x04) /* enable periodic */ 20 | #define HPET_DPI _IO('h', 0x05) /* disable periodic */ 21 | #define HPET_IRQFREQ _IOW('h', 0x6, unsigned long) /* IRQFREQ usec */ 22 | 23 | #define MAX_HPET_TBS 8 /* maximum hpet timer blocks */ 24 | 25 | #endif /* __HPET__ */ 26 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_dscp.h: -------------------------------------------------------------------------------- 1 | /* x_tables module for matching the IPv4/IPv6 DSCP field 2 | * 3 | * (C) 2002 Harald Welte 4 | * This software is distributed under GNU GPL v2, 1991 5 | * 6 | * See RFC2474 for a description of the DSCP field within the IP Header. 7 | * 8 | * xt_dscp.h,v 1.3 2002/08/05 19:00:21 laforge Exp 9 | */ 10 | #ifndef _XT_DSCP_H 11 | #define _XT_DSCP_H 12 | 13 | #include 14 | 15 | #define XT_DSCP_MASK 0xfc /* 11111100 */ 16 | #define XT_DSCP_SHIFT 2 17 | #define XT_DSCP_MAX 0x3f /* 00111111 */ 18 | 19 | /* match info */ 20 | struct xt_dscp_info { 21 | __u8 dscp; 22 | __u8 invert; 23 | }; 24 | 25 | struct xt_tos_match_info { 26 | __u8 tos_mask; 27 | __u8 tos_value; 28 | __u8 invert; 29 | }; 30 | 31 | #endif /* _XT_DSCP_H */ 32 | -------------------------------------------------------------------------------- /linux-headers/include/linux/const.h: -------------------------------------------------------------------------------- 1 | /* const.h: Macros for dealing with constants. */ 2 | 3 | #ifndef _LINUX_CONST_H 4 | #define _LINUX_CONST_H 5 | 6 | /* Some constant macros are used in both assembler and 7 | * C code. Therefore we cannot annotate them always with 8 | * 'UL' and other type specifiers unilaterally. We 9 | * use the following macros to deal with this. 10 | * 11 | * Similarly, _AT() will cast an expression with a type in C, but 12 | * leave it unchanged in asm. 13 | */ 14 | 15 | #ifdef __ASSEMBLY__ 16 | #define _AC(X,Y) X 17 | #define _AT(T,X) X 18 | #else 19 | #define __AC(X,Y) (X##Y) 20 | #define _AC(X,Y) __AC(X,Y) 21 | #define _AT(T,X) ((T)(X)) 22 | #endif 23 | 24 | #define _BITUL(x) (_AC(1,UL) << (x)) 25 | #define _BITULL(x) (_AC(1,ULL) << (x)) 26 | 27 | #endif /* !(_LINUX_CONST_H) */ 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/ila.h: -------------------------------------------------------------------------------- 1 | /* ila.h - ILA Interface */ 2 | 3 | #ifndef _LINUX_ILA_H 4 | #define _LINUX_ILA_H 5 | 6 | /* NETLINK_GENERIC related info */ 7 | #define ILA_GENL_NAME "ila" 8 | #define ILA_GENL_VERSION 0x1 9 | 10 | enum { 11 | ILA_ATTR_UNSPEC, 12 | ILA_ATTR_LOCATOR, /* u64 */ 13 | ILA_ATTR_IDENTIFIER, /* u64 */ 14 | ILA_ATTR_LOCATOR_MATCH, /* u64 */ 15 | ILA_ATTR_IFINDEX, /* s32 */ 16 | ILA_ATTR_DIR, /* u32 */ 17 | 18 | __ILA_ATTR_MAX, 19 | }; 20 | 21 | #define ILA_ATTR_MAX (__ILA_ATTR_MAX - 1) 22 | 23 | enum { 24 | ILA_CMD_UNSPEC, 25 | ILA_CMD_ADD, 26 | ILA_CMD_DEL, 27 | ILA_CMD_GET, 28 | 29 | __ILA_CMD_MAX, 30 | }; 31 | 32 | #define ILA_CMD_MAX (__ILA_CMD_MAX - 1) 33 | 34 | #define ILA_DIR_IN (1 << 0) 35 | #define ILA_DIR_OUT (1 << 1) 36 | 37 | #endif /* _LINUX_ILA_H */ 38 | -------------------------------------------------------------------------------- /linux-headers/include/linux/uio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Berkeley style UIO structures - Alan Cox 1994. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * as published by the Free Software Foundation; either version 7 | * 2 of the License, or (at your option) any later version. 8 | */ 9 | #ifndef __LINUX_UIO_H 10 | #define __LINUX_UIO_H 11 | 12 | 13 | #include 14 | 15 | 16 | struct iovec 17 | { 18 | void *iov_base; /* BSD uses caddr_t (1003.1g requires void *) */ 19 | __kernel_size_t iov_len; /* Must be size_t (1003.1g) */ 20 | }; 21 | 22 | /* 23 | * UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1) 24 | */ 25 | 26 | #define UIO_FASTIOV 8 27 | #define UIO_MAXIOV 1024 28 | 29 | 30 | #endif /* __LINUX_UIO_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_AUDIT.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Header file for iptables xt_AUDIT target 3 | * 4 | * (C) 2010-2011 Thomas Graf 5 | * (C) 2010-2011 Red Hat, Inc. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | */ 11 | 12 | #ifndef _XT_AUDIT_TARGET_H 13 | #define _XT_AUDIT_TARGET_H 14 | 15 | #include 16 | 17 | enum { 18 | XT_AUDIT_TYPE_ACCEPT = 0, 19 | XT_AUDIT_TYPE_DROP, 20 | XT_AUDIT_TYPE_REJECT, 21 | __XT_AUDIT_TYPE_MAX, 22 | }; 23 | 24 | #define XT_AUDIT_TYPE_MAX (__XT_AUDIT_TYPE_MAX - 1) 25 | 26 | struct xt_audit_info { 27 | __u8 type; /* XT_AUDIT_TYPE_* */ 28 | }; 29 | 30 | #endif /* _XT_AUDIT_TARGET_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_multiport.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_MULTIPORT_H 2 | #define _XT_MULTIPORT_H 3 | 4 | #include 5 | 6 | enum xt_multiport_flags { 7 | XT_MULTIPORT_SOURCE, 8 | XT_MULTIPORT_DESTINATION, 9 | XT_MULTIPORT_EITHER 10 | }; 11 | 12 | #define XT_MULTI_PORTS 15 13 | 14 | /* Must fit inside union xt_matchinfo: 16 bytes */ 15 | struct xt_multiport { 16 | __u8 flags; /* Type of comparison */ 17 | __u8 count; /* Number of ports */ 18 | __u16 ports[XT_MULTI_PORTS]; /* Ports */ 19 | }; 20 | 21 | struct xt_multiport_v1 { 22 | __u8 flags; /* Type of comparison */ 23 | __u8 count; /* Number of ports */ 24 | __u16 ports[XT_MULTI_PORTS]; /* Ports */ 25 | __u8 pflags[XT_MULTI_PORTS]; /* Port flags */ 26 | __u8 invert; /* Invert flag */ 27 | }; 28 | 29 | #endif /*_XT_MULTIPORT_H*/ 30 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_addrlabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * if_addrlabel.h - netlink interface for address labels 3 | * 4 | * Copyright (C)2007 USAGI/WIDE Project, All Rights Reserved. 5 | * 6 | * Authors: 7 | * YOSHIFUJI Hideaki @ USAGI/WIDE 8 | */ 9 | 10 | #ifndef __LINUX_IF_ADDRLABEL_H 11 | #define __LINUX_IF_ADDRLABEL_H 12 | 13 | #include 14 | 15 | struct ifaddrlblmsg { 16 | __u8 ifal_family; /* Address family */ 17 | __u8 __ifal_reserved; /* Reserved */ 18 | __u8 ifal_prefixlen; /* Prefix length */ 19 | __u8 ifal_flags; /* Flags */ 20 | __u32 ifal_index; /* Link index */ 21 | __u32 ifal_seq; /* sequence number */ 22 | }; 23 | 24 | enum { 25 | IFAL_ADDRESS = 1, 26 | IFAL_LABEL = 2, 27 | __IFAL_MAX 28 | }; 29 | 30 | #define IFAL_MAX (__IFAL_MAX - 1) 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_l2tp.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NETFILTER_XT_L2TP_H 2 | #define _LINUX_NETFILTER_XT_L2TP_H 3 | 4 | #include 5 | 6 | enum xt_l2tp_type { 7 | XT_L2TP_TYPE_CONTROL, 8 | XT_L2TP_TYPE_DATA, 9 | }; 10 | 11 | /* L2TP matching stuff */ 12 | struct xt_l2tp_info { 13 | __u32 tid; /* tunnel id */ 14 | __u32 sid; /* session id */ 15 | __u8 version; /* L2TP protocol version */ 16 | __u8 type; /* L2TP packet type */ 17 | __u8 flags; /* which fields to match */ 18 | }; 19 | 20 | enum { 21 | XT_L2TP_TID = (1 << 0), /* match L2TP tunnel id */ 22 | XT_L2TP_SID = (1 << 1), /* match L2TP session id */ 23 | XT_L2TP_VERSION = (1 << 2), /* match L2TP protocol version */ 24 | XT_L2TP_TYPE = (1 << 3), /* match L2TP packet type */ 25 | }; 26 | 27 | #endif /* _LINUX_NETFILTER_XT_L2TP_H */ 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_frag.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_FRAG_H 2 | #define _IP6T_FRAG_H 3 | 4 | #include 5 | 6 | struct ip6t_frag { 7 | __u32 ids[2]; /* Identification range */ 8 | __u32 hdrlen; /* Header Length */ 9 | __u8 flags; /* Flags */ 10 | __u8 invflags; /* Inverse flags */ 11 | }; 12 | 13 | #define IP6T_FRAG_IDS 0x01 14 | #define IP6T_FRAG_LEN 0x02 15 | #define IP6T_FRAG_RES 0x04 16 | #define IP6T_FRAG_FST 0x08 17 | #define IP6T_FRAG_MF 0x10 18 | #define IP6T_FRAG_NMF 0x20 19 | 20 | /* Values for "invflags" field in struct ip6t_frag. */ 21 | #define IP6T_FRAG_INV_IDS 0x01 /* Invert the sense of ids. */ 22 | #define IP6T_FRAG_INV_LEN 0x02 /* Invert the sense of length. */ 23 | #define IP6T_FRAG_INV_MASK 0x03 /* All possible flags. */ 24 | 25 | #endif /*_IP6T_FRAG_H*/ 26 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/int-l64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * asm-generic/int-l64.h 3 | * 4 | * Integer declarations for architectures which use "long" 5 | * for 64-bit types. 6 | */ 7 | 8 | #ifndef _ASM_GENERIC_INT_L64_H 9 | #define _ASM_GENERIC_INT_L64_H 10 | 11 | #include 12 | 13 | #ifndef __ASSEMBLY__ 14 | /* 15 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the 16 | * header files exported to user space 17 | */ 18 | 19 | typedef __signed__ char __s8; 20 | typedef unsigned char __u8; 21 | 22 | typedef __signed__ short __s16; 23 | typedef unsigned short __u16; 24 | 25 | typedef __signed__ int __s32; 26 | typedef unsigned int __u32; 27 | 28 | typedef __signed__ long __s64; 29 | typedef unsigned long __u64; 30 | 31 | #endif /* __ASSEMBLY__ */ 32 | 33 | 34 | #endif /* _ASM_GENERIC_INT_L64_H */ 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/fou.h: -------------------------------------------------------------------------------- 1 | /* fou.h - FOU Interface */ 2 | 3 | #ifndef _LINUX_FOU_H 4 | #define _LINUX_FOU_H 5 | 6 | /* NETLINK_GENERIC related info 7 | */ 8 | #define FOU_GENL_NAME "fou" 9 | #define FOU_GENL_VERSION 0x1 10 | 11 | enum { 12 | FOU_ATTR_UNSPEC, 13 | FOU_ATTR_PORT, /* u16 */ 14 | FOU_ATTR_AF, /* u8 */ 15 | FOU_ATTR_IPPROTO, /* u8 */ 16 | FOU_ATTR_TYPE, /* u8 */ 17 | FOU_ATTR_REMCSUM_NOPARTIAL, /* flag */ 18 | 19 | __FOU_ATTR_MAX, 20 | }; 21 | 22 | #define FOU_ATTR_MAX (__FOU_ATTR_MAX - 1) 23 | 24 | enum { 25 | FOU_CMD_UNSPEC, 26 | FOU_CMD_ADD, 27 | FOU_CMD_DEL, 28 | FOU_CMD_GET, 29 | 30 | __FOU_CMD_MAX, 31 | }; 32 | 33 | enum { 34 | FOU_ENCAP_UNSPEC, 35 | FOU_ENCAP_DIRECT, 36 | FOU_ENCAP_GUE, 37 | }; 38 | 39 | #define FOU_CMD_MAX (__FOU_CMD_MAX - 1) 40 | 41 | #endif /* _LINUX_FOU_H */ 42 | -------------------------------------------------------------------------------- /linux-headers/include/linux/sock_diag.h: -------------------------------------------------------------------------------- 1 | #ifndef __SOCK_DIAG_H__ 2 | #define __SOCK_DIAG_H__ 3 | 4 | #include 5 | 6 | #define SOCK_DIAG_BY_FAMILY 20 7 | #define SOCK_DESTROY 21 8 | 9 | struct sock_diag_req { 10 | __u8 sdiag_family; 11 | __u8 sdiag_protocol; 12 | }; 13 | 14 | enum { 15 | SK_MEMINFO_RMEM_ALLOC, 16 | SK_MEMINFO_RCVBUF, 17 | SK_MEMINFO_WMEM_ALLOC, 18 | SK_MEMINFO_SNDBUF, 19 | SK_MEMINFO_FWD_ALLOC, 20 | SK_MEMINFO_WMEM_QUEUED, 21 | SK_MEMINFO_OPTMEM, 22 | SK_MEMINFO_BACKLOG, 23 | 24 | SK_MEMINFO_VARS, 25 | }; 26 | 27 | enum sknetlink_groups { 28 | SKNLGRP_NONE, 29 | SKNLGRP_INET_TCP_DESTROY, 30 | SKNLGRP_INET_UDP_DESTROY, 31 | SKNLGRP_INET6_TCP_DESTROY, 32 | SKNLGRP_INET6_UDP_DESTROY, 33 | __SKNLGRP_MAX, 34 | }; 35 | #define SKNLGRP_MAX (__SKNLGRP_MAX - 1) 36 | 37 | #endif /* __SOCK_DIAG_H__ */ 38 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_time.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TIME_H 2 | #define _XT_TIME_H 1 3 | 4 | #include 5 | 6 | struct xt_time_info { 7 | __u32 date_start; 8 | __u32 date_stop; 9 | __u32 daytime_start; 10 | __u32 daytime_stop; 11 | __u32 monthdays_match; 12 | __u8 weekdays_match; 13 | __u8 flags; 14 | }; 15 | 16 | enum { 17 | /* Match against local time (instead of UTC) */ 18 | XT_TIME_LOCAL_TZ = 1 << 0, 19 | 20 | /* treat timestart > timestop (e.g. 23:00-01:00) as single period */ 21 | XT_TIME_CONTIGUOUS = 1 << 1, 22 | 23 | /* Shortcuts */ 24 | XT_TIME_ALL_MONTHDAYS = 0xFFFFFFFE, 25 | XT_TIME_ALL_WEEKDAYS = 0xFE, 26 | XT_TIME_MIN_DAYTIME = 0, 27 | XT_TIME_MAX_DAYTIME = 24 * 60 * 60 - 1, 28 | }; 29 | 30 | #define XT_TIME_ALL_FLAGS (XT_TIME_LOCAL_TZ|XT_TIME_CONTIGUOUS) 31 | 32 | #endif /* _XT_TIME_H */ 33 | -------------------------------------------------------------------------------- /linux-headers/include/linux/nfsd/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/linux/nfsd/debug.h 3 | * 4 | * Debugging-related stuff for nfsd 5 | * 6 | * Copyright (C) 1995 Olaf Kirch 7 | */ 8 | 9 | #ifndef LINUX_NFSD_DEBUG_H 10 | #define LINUX_NFSD_DEBUG_H 11 | 12 | #include 13 | 14 | /* 15 | * knfsd debug flags 16 | */ 17 | #define NFSDDBG_SOCK 0x0001 18 | #define NFSDDBG_FH 0x0002 19 | #define NFSDDBG_EXPORT 0x0004 20 | #define NFSDDBG_SVC 0x0008 21 | #define NFSDDBG_PROC 0x0010 22 | #define NFSDDBG_FILEOP 0x0020 23 | #define NFSDDBG_AUTH 0x0040 24 | #define NFSDDBG_REPCACHE 0x0080 25 | #define NFSDDBG_XDR 0x0100 26 | #define NFSDDBG_LOCKD 0x0200 27 | #define NFSDDBG_PNFS 0x0400 28 | #define NFSDDBG_ALL 0x7FFF 29 | #define NFSDDBG_NOCHANGE 0xFFFF 30 | 31 | 32 | 33 | #endif /* LINUX_NFSD_DEBUG_H */ 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/socket.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_SOCKET_H 2 | #define _LINUX_SOCKET_H 3 | 4 | /* 5 | * Desired design of maximum size and alignment (see RFC2553) 6 | */ 7 | #define _K_SS_MAXSIZE 128 /* Implementation specific max size */ 8 | #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *)) 9 | /* Implementation specific desired alignment */ 10 | 11 | typedef unsigned short __kernel_sa_family_t; 12 | 13 | struct __kernel_sockaddr_storage { 14 | __kernel_sa_family_t ss_family; /* address family */ 15 | /* Following field(s) are implementation specific */ 16 | char __data[_K_SS_MAXSIZE - sizeof(unsigned short)]; 17 | /* space to achieve desired size, */ 18 | /* _SS_MAXSIZE value minus size of ss_family */ 19 | } __attribute__ ((aligned(_K_SS_ALIGNSIZE))); /* force desired alignment */ 20 | 21 | #endif /* _LINUX_SOCKET_H */ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_bpf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Jiri Pirko 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | */ 9 | 10 | #ifndef __LINUX_TC_BPF_H 11 | #define __LINUX_TC_BPF_H 12 | 13 | #include 14 | 15 | #define TCA_ACT_BPF 13 16 | 17 | struct tc_act_bpf { 18 | tc_gen; 19 | }; 20 | 21 | enum { 22 | TCA_ACT_BPF_UNSPEC, 23 | TCA_ACT_BPF_TM, 24 | TCA_ACT_BPF_PARMS, 25 | TCA_ACT_BPF_OPS_LEN, 26 | TCA_ACT_BPF_OPS, 27 | TCA_ACT_BPF_FD, 28 | TCA_ACT_BPF_NAME, 29 | __TCA_ACT_BPF_MAX, 30 | }; 31 | #define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1) 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_statistic.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_STATISTIC_H 2 | #define _XT_STATISTIC_H 3 | 4 | #include 5 | 6 | enum xt_statistic_mode { 7 | XT_STATISTIC_MODE_RANDOM, 8 | XT_STATISTIC_MODE_NTH, 9 | __XT_STATISTIC_MODE_MAX 10 | }; 11 | #define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1) 12 | 13 | enum xt_statistic_flags { 14 | XT_STATISTIC_INVERT = 0x1, 15 | }; 16 | #define XT_STATISTIC_MASK 0x1 17 | 18 | struct xt_statistic_priv; 19 | 20 | struct xt_statistic_info { 21 | __u16 mode; 22 | __u16 flags; 23 | union { 24 | struct { 25 | __u32 probability; 26 | } random; 27 | struct { 28 | __u32 every; 29 | __u32 packet; 30 | __u32 count; /* unused */ 31 | } nth; 32 | } u; 33 | struct xt_statistic_priv *master __attribute__((aligned(8))); 34 | }; 35 | 36 | #endif /* _XT_STATISTIC_H */ 37 | -------------------------------------------------------------------------------- /linux-headers/include/linux/reiserfs_fs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1996, 1997, 1998 Hans Reiser, see reiserfs/README for licensing and copyright details 3 | */ 4 | #ifndef _LINUX_REISER_FS_H 5 | #define _LINUX_REISER_FS_H 6 | 7 | #include 8 | #include 9 | 10 | /* 11 | * include/linux/reiser_fs.h 12 | * 13 | * Reiser File System constants and structures 14 | * 15 | */ 16 | 17 | /* ioctl's command */ 18 | #define REISERFS_IOC_UNPACK _IOW(0xCD,1,long) 19 | /* define following flags to be the same as in ext2, so that chattr(1), 20 | lsattr(1) will work with us. */ 21 | #define REISERFS_IOC_GETFLAGS FS_IOC_GETFLAGS 22 | #define REISERFS_IOC_SETFLAGS FS_IOC_SETFLAGS 23 | #define REISERFS_IOC_GETVERSION FS_IOC_GETVERSION 24 | #define REISERFS_IOC_SETVERSION FS_IOC_SETVERSION 25 | 26 | #endif /* _LINUX_REISER_FS_H */ 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/coda_psdev.h: -------------------------------------------------------------------------------- 1 | #ifndef __CODA_PSDEV_H 2 | #define __CODA_PSDEV_H 3 | 4 | #include 5 | 6 | #define CODA_PSDEV_MAJOR 67 7 | #define MAX_CODADEVS 5 /* how many do we allow */ 8 | 9 | 10 | /* messages between coda filesystem in kernel and Venus */ 11 | struct upc_req { 12 | struct list_head uc_chain; 13 | caddr_t uc_data; 14 | u_short uc_flags; 15 | u_short uc_inSize; /* Size is at most 5000 bytes */ 16 | u_short uc_outSize; 17 | u_short uc_opcode; /* copied from data to save lookup */ 18 | int uc_unique; 19 | wait_queue_head_t uc_sleep; /* process' wait queue */ 20 | }; 21 | 22 | #define CODA_REQ_ASYNC 0x1 23 | #define CODA_REQ_READ 0x2 24 | #define CODA_REQ_WRITE 0x4 25 | #define CODA_REQ_ABORT 0x8 26 | 27 | #endif /* __CODA_PSDEV_H */ 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_connmark.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CONNMARK_H 2 | #define _XT_CONNMARK_H 3 | 4 | #include 5 | 6 | /* Copyright (C) 2002,2004 MARA Systems AB 7 | * by Henrik Nordstrom 8 | * 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | */ 14 | 15 | enum { 16 | XT_CONNMARK_SET = 0, 17 | XT_CONNMARK_SAVE, 18 | XT_CONNMARK_RESTORE 19 | }; 20 | 21 | struct xt_connmark_tginfo1 { 22 | __u32 ctmark, ctmask, nfmask; 23 | __u8 mode; 24 | }; 25 | 26 | struct xt_connmark_mtinfo1 { 27 | __u32 mark, mask; 28 | __u8 invert; 29 | }; 30 | 31 | #endif /*_XT_CONNMARK_H*/ 32 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_ecn.h: -------------------------------------------------------------------------------- 1 | /* iptables module for matching the ECN header in IPv4 and TCP header 2 | * 3 | * (C) 2002 Harald Welte 4 | * 5 | * This software is distributed under GNU GPL v2, 1991 6 | * 7 | * ipt_ecn.h,v 1.4 2002/08/05 19:39:00 laforge Exp 8 | */ 9 | #ifndef _XT_ECN_H 10 | #define _XT_ECN_H 11 | 12 | #include 13 | #include 14 | 15 | #define XT_ECN_IP_MASK (~XT_DSCP_MASK) 16 | 17 | #define XT_ECN_OP_MATCH_IP 0x01 18 | #define XT_ECN_OP_MATCH_ECE 0x10 19 | #define XT_ECN_OP_MATCH_CWR 0x20 20 | 21 | #define XT_ECN_OP_MATCH_MASK 0xce 22 | 23 | /* match info */ 24 | struct xt_ecn_info { 25 | __u8 operation; 26 | __u8 invert; 27 | __u8 ip_ect; 28 | union { 29 | struct { 30 | __u8 ect; 31 | } tcp; 32 | } proto; 33 | }; 34 | 35 | #endif /* _XT_ECN_H */ 36 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nf_tables_compat.h: -------------------------------------------------------------------------------- 1 | #ifndef _NFT_COMPAT_NFNETLINK_H_ 2 | #define _NFT_COMPAT_NFNETLINK_H_ 3 | 4 | enum nft_target_attributes { 5 | NFTA_TARGET_UNSPEC, 6 | NFTA_TARGET_NAME, 7 | NFTA_TARGET_REV, 8 | NFTA_TARGET_INFO, 9 | __NFTA_TARGET_MAX 10 | }; 11 | #define NFTA_TARGET_MAX (__NFTA_TARGET_MAX - 1) 12 | 13 | enum nft_match_attributes { 14 | NFTA_MATCH_UNSPEC, 15 | NFTA_MATCH_NAME, 16 | NFTA_MATCH_REV, 17 | NFTA_MATCH_INFO, 18 | __NFTA_MATCH_MAX 19 | }; 20 | #define NFTA_MATCH_MAX (__NFTA_MATCH_MAX - 1) 21 | 22 | #define NFT_COMPAT_NAME_MAX 32 23 | 24 | enum { 25 | NFNL_MSG_COMPAT_GET, 26 | NFNL_MSG_COMPAT_MAX 27 | }; 28 | 29 | enum { 30 | NFTA_COMPAT_UNSPEC = 0, 31 | NFTA_COMPAT_NAME, 32 | NFTA_COMPAT_REV, 33 | NFTA_COMPAT_TYPE, 34 | __NFTA_COMPAT_MAX, 35 | }; 36 | #define NFTA_COMPAT_MAX (__NFTA_COMPAT_MAX - 1) 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /linux-headers/include/linux/fadvise.h: -------------------------------------------------------------------------------- 1 | #ifndef FADVISE_H_INCLUDED 2 | #define FADVISE_H_INCLUDED 3 | 4 | #define POSIX_FADV_NORMAL 0 /* No further special treatment. */ 5 | #define POSIX_FADV_RANDOM 1 /* Expect random page references. */ 6 | #define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */ 7 | #define POSIX_FADV_WILLNEED 3 /* Will need these pages. */ 8 | 9 | /* 10 | * The advise values for POSIX_FADV_DONTNEED and POSIX_ADV_NOREUSE 11 | * for s390-64 differ from the values for the rest of the world. 12 | */ 13 | #if defined(__s390x__) 14 | #define POSIX_FADV_DONTNEED 6 /* Don't need these pages. */ 15 | #define POSIX_FADV_NOREUSE 7 /* Data will be accessed once. */ 16 | #else 17 | #define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */ 18 | #define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ 19 | #endif 20 | 21 | #endif /* FADVISE_H_INCLUDED */ 22 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_vlan.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014 Jiri Pirko 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | */ 9 | 10 | #ifndef __LINUX_TC_VLAN_H 11 | #define __LINUX_TC_VLAN_H 12 | 13 | #include 14 | 15 | #define TCA_ACT_VLAN 12 16 | 17 | #define TCA_VLAN_ACT_POP 1 18 | #define TCA_VLAN_ACT_PUSH 2 19 | 20 | struct tc_vlan { 21 | tc_gen; 22 | int v_action; 23 | }; 24 | 25 | enum { 26 | TCA_VLAN_UNSPEC, 27 | TCA_VLAN_TM, 28 | TCA_VLAN_PARMS, 29 | TCA_VLAN_PUSH_VLAN_ID, 30 | TCA_VLAN_PUSH_VLAN_PROTOCOL, 31 | __TCA_VLAN_MAX, 32 | }; 33 | #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/signal-defs.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SIGNAL_DEFS_H 2 | #define __ASM_GENERIC_SIGNAL_DEFS_H 3 | 4 | 5 | 6 | #ifndef SIG_BLOCK 7 | #define SIG_BLOCK 0 /* for blocking signals */ 8 | #endif 9 | #ifndef SIG_UNBLOCK 10 | #define SIG_UNBLOCK 1 /* for unblocking signals */ 11 | #endif 12 | #ifndef SIG_SETMASK 13 | #define SIG_SETMASK 2 /* for setting the signal mask */ 14 | #endif 15 | 16 | #ifndef __ASSEMBLY__ 17 | typedef void __signalfn_t(int); 18 | typedef __signalfn_t *__sighandler_t; 19 | 20 | typedef void __restorefn_t(void); 21 | typedef __restorefn_t *__sigrestore_t; 22 | 23 | #define SIG_DFL ((__sighandler_t)0) /* default signal handling */ 24 | #define SIG_IGN ((__sighandler_t)1) /* ignore signal */ 25 | #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ 26 | #endif 27 | 28 | #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */ 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_mark_t.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_MARK_T_H 2 | #define __LINUX_BRIDGE_EBT_MARK_T_H 3 | 4 | /* The target member is reused for adding new actions, the 5 | * value of the real target is -1 to -NUM_STANDARD_TARGETS. 6 | * For backward compatibility, the 4 lsb (2 would be enough, 7 | * but let's play it safe) are kept to designate this target. 8 | * The remaining bits designate the action. By making the set 9 | * action 0xfffffff0, the result will look ok for older 10 | * versions. [September 2006] */ 11 | #define MARK_SET_VALUE (0xfffffff0) 12 | #define MARK_OR_VALUE (0xffffffe0) 13 | #define MARK_AND_VALUE (0xffffffd0) 14 | #define MARK_XOR_VALUE (0xffffffc0) 15 | 16 | struct ebt_mark_t_info { 17 | unsigned long mark; 18 | /* EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN */ 19 | int target; 20 | }; 21 | #define EBT_MARK_TARGET "mark" 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /scripts/cp_s: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Emulate cp -s for systems without coreutils 3 | 4 | if test -z "$1" || test -z "$2" ; then 5 | echo "usage: ${0} srcdir destdir" >&2 6 | exit 1 7 | fi 8 | 9 | # Portability notes: 10 | # - Avoid set -e given its ambiguous interaction with subshells. 11 | # - Not all shells update $PWD as required by POSIX. 12 | # Use the pwd builtin instead. 13 | # - Command substitution strips all trailing newlines. 14 | # Preserve trailing newlines by appending a safety character and then 15 | # removing it with parameter substitution, along with the newline 16 | # appended by pwd itself. 17 | 18 | mkdir -p "$2" && 19 | destdir=`cd "$2" && pwd && echo x` && 20 | destdir=${destdir%??} && 21 | 22 | cd "$1" && 23 | srcdir=`pwd && echo x` && 24 | srcdir=${srcdir%??} && 25 | find . -type d -exec mkdir -p "${destdir}/{}" \; && 26 | find . -type f -exec ln -sf "${srcdir}/{}" "${destdir}/{}" \; 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_u32.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_U32_H 2 | #define _XT_U32_H 1 3 | 4 | #include 5 | 6 | enum xt_u32_ops { 7 | XT_U32_AND, 8 | XT_U32_LEFTSH, 9 | XT_U32_RIGHTSH, 10 | XT_U32_AT, 11 | }; 12 | 13 | struct xt_u32_location_element { 14 | __u32 number; 15 | __u8 nextop; 16 | }; 17 | 18 | struct xt_u32_value_element { 19 | __u32 min; 20 | __u32 max; 21 | }; 22 | 23 | /* 24 | * Any way to allow for an arbitrary number of elements? 25 | * For now, I settle with a limit of 10 each. 26 | */ 27 | #define XT_U32_MAXSIZE 10 28 | 29 | struct xt_u32_test { 30 | struct xt_u32_location_element location[XT_U32_MAXSIZE+1]; 31 | struct xt_u32_value_element value[XT_U32_MAXSIZE+1]; 32 | __u8 nnums; 33 | __u8 nvalues; 34 | }; 35 | 36 | struct xt_u32 { 37 | struct xt_u32_test tests[XT_U32_MAXSIZE+1]; 38 | __u8 ntests; 39 | __u8 invert; 40 | }; 41 | 42 | #endif /* _XT_U32_H */ 43 | -------------------------------------------------------------------------------- /linux-headers/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 ARM Ltd. 3 | * Copyright (C) 2016 SiFive, Inc. 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License version 2 as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | #ifndef __ASM_SIGINFO_H 18 | #define __ASM_SIGINFO_H 19 | 20 | #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) 21 | 22 | #include 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_NFQUEUE.h: -------------------------------------------------------------------------------- 1 | /* iptables module for using NFQUEUE mechanism 2 | * 3 | * (C) 2005 Harald Welte 4 | * 5 | * This software is distributed under GNU GPL v2, 1991 6 | * 7 | */ 8 | #ifndef _XT_NFQ_TARGET_H 9 | #define _XT_NFQ_TARGET_H 10 | 11 | #include 12 | 13 | /* target info */ 14 | struct xt_NFQ_info { 15 | __u16 queuenum; 16 | }; 17 | 18 | struct xt_NFQ_info_v1 { 19 | __u16 queuenum; 20 | __u16 queues_total; 21 | }; 22 | 23 | struct xt_NFQ_info_v2 { 24 | __u16 queuenum; 25 | __u16 queues_total; 26 | __u16 bypass; 27 | }; 28 | 29 | struct xt_NFQ_info_v3 { 30 | __u16 queuenum; 31 | __u16 queues_total; 32 | __u16 flags; 33 | #define NFQ_FLAG_BYPASS 0x01 /* for compatibility with v2 */ 34 | #define NFQ_FLAG_CPU_FANOUT 0x02 /* use current CPU (no hashing) */ 35 | #define NFQ_FLAG_MASK 0x03 36 | }; 37 | 38 | #endif /* _XT_NFQ_TARGET_H */ 39 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netrom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * These are the public elements of the Linux kernel NET/ROM implementation. 3 | * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the 4 | * definition of the ax25_address structure. 5 | */ 6 | 7 | #ifndef NETROM_KERNEL_H 8 | #define NETROM_KERNEL_H 9 | 10 | #include 11 | 12 | #define NETROM_MTU 236 13 | 14 | #define NETROM_T1 1 15 | #define NETROM_T2 2 16 | #define NETROM_N2 3 17 | #define NETROM_T4 6 18 | #define NETROM_IDLE 7 19 | 20 | #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2) 21 | 22 | struct nr_route_struct { 23 | #define NETROM_NEIGH 0 24 | #define NETROM_NODE 1 25 | int type; 26 | ax25_address callsign; 27 | char device[16]; 28 | unsigned int quality; 29 | char mnemonic[7]; 30 | ax25_address neighbour; 31 | unsigned int obs_count; 32 | unsigned int ndigis; 33 | ax25_address digipeaters[AX25_MAX_DIGIS]; 34 | }; 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_NETFILTER_H 2 | #define __LINUX_BRIDGE_NETFILTER_H 3 | 4 | /* bridge-specific defines for netfilter. 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | /* Bridge Hooks */ 14 | /* After promisc drops, checksum checks. */ 15 | #define NF_BR_PRE_ROUTING 0 16 | /* If the packet is destined for this box. */ 17 | #define NF_BR_LOCAL_IN 1 18 | /* If the packet is destined for another interface. */ 19 | #define NF_BR_FORWARD 2 20 | /* Packets coming from a local process. */ 21 | #define NF_BR_LOCAL_OUT 3 22 | /* Packets about to hit the wire. */ 23 | #define NF_BR_POST_ROUTING 4 24 | /* Not really a hook, but used for the ebtables broute table */ 25 | #define NF_BR_BROUTING 5 26 | #define NF_BR_NUMHOOKS 6 27 | 28 | #endif /* __LINUX_BRIDGE_NETFILTER_H */ 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_ife.h: -------------------------------------------------------------------------------- 1 | #ifndef __UAPI_TC_IFE_H 2 | #define __UAPI_TC_IFE_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_IFE 25 8 | /* Flag bits for now just encoding/decoding; mutually exclusive */ 9 | #define IFE_ENCODE 1 10 | #define IFE_DECODE 0 11 | 12 | struct tc_ife { 13 | tc_gen; 14 | __u16 flags; 15 | }; 16 | 17 | /*XXX: We need to encode the total number of bytes consumed */ 18 | enum { 19 | TCA_IFE_UNSPEC, 20 | TCA_IFE_PARMS, 21 | TCA_IFE_TM, 22 | TCA_IFE_DMAC, 23 | TCA_IFE_SMAC, 24 | TCA_IFE_TYPE, 25 | TCA_IFE_METALST, 26 | __TCA_IFE_MAX 27 | }; 28 | #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) 29 | 30 | #define IFE_META_SKBMARK 1 31 | #define IFE_META_HASHID 2 32 | #define IFE_META_PRIO 3 33 | #define IFE_META_QMAP 4 34 | /*Can be overridden at runtime by module option*/ 35 | #define __IFE_META_MAX 5 36 | #define IFE_META_MAX (__IFE_META_MAX - 1) 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_x25.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Linux X.25 packet to device interface 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | */ 14 | 15 | #ifndef _IF_X25_H 16 | #define _IF_X25_H 17 | 18 | #include 19 | 20 | /* Documentation/networking/x25-iface.txt */ 21 | #define X25_IFACE_DATA 0x00 22 | #define X25_IFACE_CONNECT 0x01 23 | #define X25_IFACE_DISCONNECT 0x02 24 | #define X25_IFACE_PARAMS 0x03 25 | 26 | #endif /* _IF_X25_H */ 27 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_slip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Swansea University Computer Society NET3 3 | * 4 | * This file declares the constants of special use with the SLIP/CSLIP/ 5 | * KISS TNC driver. 6 | */ 7 | 8 | #ifndef __LINUX_SLIP_H 9 | #define __LINUX_SLIP_H 10 | 11 | #define SL_MODE_SLIP 0 12 | #define SL_MODE_CSLIP 1 13 | #define SL_MODE_KISS 4 14 | 15 | #define SL_OPT_SIXBIT 2 16 | #define SL_OPT_ADAPTIVE 8 17 | 18 | /* 19 | * VSV = ioctl for keepalive & outfill in SLIP driver 20 | */ 21 | 22 | #define SIOCSKEEPALIVE (SIOCDEVPRIVATE) /* Set keepalive timeout in sec */ 23 | #define SIOCGKEEPALIVE (SIOCDEVPRIVATE+1) /* Get keepalive timeout */ 24 | #define SIOCSOUTFILL (SIOCDEVPRIVATE+2) /* Set outfill timeout */ 25 | #define SIOCGOUTFILL (SIOCDEVPRIVATE+3) /* Get outfill timeout */ 26 | #define SIOCSLEASE (SIOCDEVPRIVATE+4) /* Set "leased" line type */ 27 | #define SIOCGLEASE (SIOCDEVPRIVATE+5) /* Get line type */ 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_pedit.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_PED_H 2 | #define __LINUX_TC_PED_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_PEDIT 7 8 | 9 | enum { 10 | TCA_PEDIT_UNSPEC, 11 | TCA_PEDIT_TM, 12 | TCA_PEDIT_PARMS, 13 | __TCA_PEDIT_MAX 14 | }; 15 | #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) 16 | 17 | struct tc_pedit_key { 18 | __u32 mask; /* AND */ 19 | __u32 val; /*XOR */ 20 | __u32 off; /*offset */ 21 | __u32 at; 22 | __u32 offmask; 23 | __u32 shift; 24 | }; 25 | 26 | struct tc_pedit_sel { 27 | tc_gen; 28 | unsigned char nkeys; 29 | unsigned char flags; 30 | struct tc_pedit_key keys[0]; 31 | }; 32 | #define tc_pedit tc_pedit_sel 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h: -------------------------------------------------------------------------------- 1 | #ifndef _IPT_CLUSTERIP_H_target 2 | #define _IPT_CLUSTERIP_H_target 3 | 4 | #include 5 | #include 6 | 7 | enum clusterip_hashmode { 8 | CLUSTERIP_HASHMODE_SIP = 0, 9 | CLUSTERIP_HASHMODE_SIP_SPT, 10 | CLUSTERIP_HASHMODE_SIP_SPT_DPT, 11 | }; 12 | 13 | #define CLUSTERIP_HASHMODE_MAX CLUSTERIP_HASHMODE_SIP_SPT_DPT 14 | 15 | #define CLUSTERIP_MAX_NODES 16 16 | 17 | #define CLUSTERIP_FLAG_NEW 0x00000001 18 | 19 | struct clusterip_config; 20 | 21 | struct ipt_clusterip_tgt_info { 22 | 23 | __u32 flags; 24 | 25 | /* only relevant for new ones */ 26 | __u8 clustermac[ETH_ALEN]; 27 | __u16 num_total_nodes; 28 | __u16 num_local_nodes; 29 | __u16 local_nodes[CLUSTERIP_MAX_NODES]; 30 | __u32 hash_mode; 31 | __u32 hash_initval; 32 | 33 | /* Used internally by the kernel */ 34 | struct clusterip_config *config; 35 | }; 36 | 37 | #endif /*_IPT_CLUSTERIP_H_target*/ 38 | -------------------------------------------------------------------------------- /linux-headers/include/linux/gameport.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2002 Vojtech Pavlik 3 | * 4 | * This program is free software; you can redistribute it and/or modify it 5 | * under the terms of the GNU General Public License version 2 as published by 6 | * the Free Software Foundation. 7 | */ 8 | #ifndef _GAMEPORT_H 9 | #define _GAMEPORT_H 10 | 11 | 12 | 13 | #define GAMEPORT_MODE_DISABLED 0 14 | #define GAMEPORT_MODE_RAW 1 15 | #define GAMEPORT_MODE_COOKED 2 16 | 17 | #define GAMEPORT_ID_VENDOR_ANALOG 0x0001 18 | #define GAMEPORT_ID_VENDOR_MADCATZ 0x0002 19 | #define GAMEPORT_ID_VENDOR_LOGITECH 0x0003 20 | #define GAMEPORT_ID_VENDOR_CREATIVE 0x0004 21 | #define GAMEPORT_ID_VENDOR_GENIUS 0x0005 22 | #define GAMEPORT_ID_VENDOR_INTERACT 0x0006 23 | #define GAMEPORT_ID_VENDOR_MICROSOFT 0x0007 24 | #define GAMEPORT_ID_VENDOR_THRUSTMASTER 0x0008 25 | #define GAMEPORT_ID_VENDOR_GRAVIS 0x0009 26 | #define GAMEPORT_ID_VENDOR_GUILLEMOT 0x000a 27 | 28 | #endif /* _GAMEPORT_H */ 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/limits.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_LIMITS_H 2 | #define _LINUX_LIMITS_H 3 | 4 | #define NR_OPEN 1024 5 | 6 | #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ 7 | #define ARG_MAX 131072 /* # bytes of args + environ for exec() */ 8 | #define LINK_MAX 127 /* # links a file may have */ 9 | #define MAX_CANON 255 /* size of the canonical input queue */ 10 | #define MAX_INPUT 255 /* size of the type-ahead buffer */ 11 | #define NAME_MAX 255 /* # chars in a file name */ 12 | #define PATH_MAX 4096 /* # chars in a path name including nul */ 13 | #define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */ 14 | #define XATTR_NAME_MAX 255 /* # chars in an extended attribute name */ 15 | #define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */ 16 | #define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */ 17 | 18 | #define RTSIG_MAX 32 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /linux-headers/include/linux/lwtunnel.h: -------------------------------------------------------------------------------- 1 | #ifndef _LWTUNNEL_H_ 2 | #define _LWTUNNEL_H_ 3 | 4 | #include 5 | 6 | enum lwtunnel_encap_types { 7 | LWTUNNEL_ENCAP_NONE, 8 | LWTUNNEL_ENCAP_MPLS, 9 | LWTUNNEL_ENCAP_IP, 10 | LWTUNNEL_ENCAP_ILA, 11 | LWTUNNEL_ENCAP_IP6, 12 | __LWTUNNEL_ENCAP_MAX, 13 | }; 14 | 15 | #define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1) 16 | 17 | enum lwtunnel_ip_t { 18 | LWTUNNEL_IP_UNSPEC, 19 | LWTUNNEL_IP_ID, 20 | LWTUNNEL_IP_DST, 21 | LWTUNNEL_IP_SRC, 22 | LWTUNNEL_IP_TTL, 23 | LWTUNNEL_IP_TOS, 24 | LWTUNNEL_IP_FLAGS, 25 | __LWTUNNEL_IP_MAX, 26 | }; 27 | 28 | #define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1) 29 | 30 | enum lwtunnel_ip6_t { 31 | LWTUNNEL_IP6_UNSPEC, 32 | LWTUNNEL_IP6_ID, 33 | LWTUNNEL_IP6_DST, 34 | LWTUNNEL_IP6_SRC, 35 | LWTUNNEL_IP6_HOPLIMIT, 36 | LWTUNNEL_IP6_TC, 37 | LWTUNNEL_IP6_FLAGS, 38 | __LWTUNNEL_IP6_MAX, 39 | }; 40 | 41 | #define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1) 42 | 43 | #endif /* _LWTUNNEL_H_ */ 44 | -------------------------------------------------------------------------------- /linux-headers/include/linux/patchkey.h: -------------------------------------------------------------------------------- 1 | /* 2 | * -- definition of _PATCHKEY macro 3 | * 4 | * Copyright (C) 2005 Stuart Brady 5 | * 6 | * This exists because awe_voice.h defined its own _PATCHKEY and it wasn't 7 | * clear whether removing this would break anything in userspace. 8 | * 9 | * Do not include this file directly. Please use instead. 10 | * For kernel code, use 11 | */ 12 | 13 | #ifndef _LINUX_PATCHKEY_H_INDIRECT 14 | #error "patchkey.h included directly" 15 | #endif 16 | 17 | #ifndef _LINUX_PATCHKEY_H 18 | #define _LINUX_PATCHKEY_H 19 | 20 | /* Endian macros. */ 21 | # include 22 | 23 | #if defined(__BYTE_ORDER) 24 | # if __BYTE_ORDER == __BIG_ENDIAN 25 | # define _PATCHKEY(id) (0xfd00|id) 26 | # elif __BYTE_ORDER == __LITTLE_ENDIAN 27 | # define _PATCHKEY(id) ((id<<8)|0x00fd) 28 | # else 29 | # error "could not determine byte order" 30 | # endif 31 | #endif 32 | 33 | #endif /* _LINUX_PATCHKEY_H */ 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_rateest.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_RATEEST_MATCH_H 2 | #define _XT_RATEEST_MATCH_H 3 | 4 | #include 5 | #include 6 | 7 | enum xt_rateest_match_flags { 8 | XT_RATEEST_MATCH_INVERT = 1<<0, 9 | XT_RATEEST_MATCH_ABS = 1<<1, 10 | XT_RATEEST_MATCH_REL = 1<<2, 11 | XT_RATEEST_MATCH_DELTA = 1<<3, 12 | XT_RATEEST_MATCH_BPS = 1<<4, 13 | XT_RATEEST_MATCH_PPS = 1<<5, 14 | }; 15 | 16 | enum xt_rateest_match_mode { 17 | XT_RATEEST_MATCH_NONE, 18 | XT_RATEEST_MATCH_EQ, 19 | XT_RATEEST_MATCH_LT, 20 | XT_RATEEST_MATCH_GT, 21 | }; 22 | 23 | struct xt_rateest_match_info { 24 | char name1[IFNAMSIZ]; 25 | char name2[IFNAMSIZ]; 26 | __u16 flags; 27 | __u16 mode; 28 | __u32 bps1; 29 | __u32 pps1; 30 | __u32 bps2; 31 | __u32 pps2; 32 | 33 | /* Used internally by the kernel */ 34 | struct xt_rateest *est1 __attribute__((aligned(8))); 35 | struct xt_rateest *est2 __attribute__((aligned(8))); 36 | }; 37 | 38 | #endif /* _XT_RATEEST_MATCH_H */ 39 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/int-ll64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * asm-generic/int-ll64.h 3 | * 4 | * Integer declarations for architectures which use "long long" 5 | * for 64-bit types. 6 | */ 7 | 8 | #ifndef _ASM_GENERIC_INT_LL64_H 9 | #define _ASM_GENERIC_INT_LL64_H 10 | 11 | #include 12 | 13 | #ifndef __ASSEMBLY__ 14 | /* 15 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the 16 | * header files exported to user space 17 | */ 18 | 19 | typedef __signed__ char __s8; 20 | typedef unsigned char __u8; 21 | 22 | typedef __signed__ short __s16; 23 | typedef unsigned short __u16; 24 | 25 | typedef __signed__ int __s32; 26 | typedef unsigned int __u32; 27 | 28 | #ifdef __GNUC__ 29 | __extension__ typedef __signed__ long long __s64; 30 | __extension__ typedef unsigned long long __u64; 31 | #else 32 | typedef __signed__ long long __s64; 33 | typedef unsigned long long __u64; 34 | #endif 35 | 36 | #endif /* __ASSEMBLY__ */ 37 | 38 | 39 | #endif /* _ASM_GENERIC_INT_LL64_H */ 40 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/poll.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_POLL_H 2 | #define __ASM_GENERIC_POLL_H 3 | 4 | /* These are specified by iBCS2 */ 5 | #define POLLIN 0x0001 6 | #define POLLPRI 0x0002 7 | #define POLLOUT 0x0004 8 | #define POLLERR 0x0008 9 | #define POLLHUP 0x0010 10 | #define POLLNVAL 0x0020 11 | 12 | /* The rest seem to be more-or-less nonstandard. Check them! */ 13 | #define POLLRDNORM 0x0040 14 | #define POLLRDBAND 0x0080 15 | #ifndef POLLWRNORM 16 | #define POLLWRNORM 0x0100 17 | #endif 18 | #ifndef POLLWRBAND 19 | #define POLLWRBAND 0x0200 20 | #endif 21 | #ifndef POLLMSG 22 | #define POLLMSG 0x0400 23 | #endif 24 | #ifndef POLLREMOVE 25 | #define POLLREMOVE 0x1000 26 | #endif 27 | #ifndef POLLRDHUP 28 | #define POLLRDHUP 0x2000 29 | #endif 30 | 31 | #define POLLFREE 0x4000 /* currently only for epoll */ 32 | 33 | #define POLL_BUSY_LOOP 0x8000 34 | 35 | struct pollfd { 36 | int fd; 37 | short events; 38 | short revents; 39 | }; 40 | 41 | #endif /* __ASM_GENERIC_POLL_H */ 42 | -------------------------------------------------------------------------------- /linux-headers/include/linux/cuda.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Definitions for talking to the CUDA. The CUDA is a microcontroller 3 | * which controls the ADB, system power, RTC, and various other things. 4 | * 5 | * Copyright (C) 1996 Paul Mackerras. 6 | */ 7 | 8 | #ifndef _LINUX_CUDA_H 9 | #define _LINUX_CUDA_H 10 | 11 | /* CUDA commands (2nd byte) */ 12 | #define CUDA_WARM_START 0 13 | #define CUDA_AUTOPOLL 1 14 | #define CUDA_GET_6805_ADDR 2 15 | #define CUDA_GET_TIME 3 16 | #define CUDA_GET_PRAM 7 17 | #define CUDA_SET_6805_ADDR 8 18 | #define CUDA_SET_TIME 9 19 | #define CUDA_POWERDOWN 0xa 20 | #define CUDA_POWERUP_TIME 0xb 21 | #define CUDA_SET_PRAM 0xc 22 | #define CUDA_MS_RESET 0xd 23 | #define CUDA_SEND_DFAC 0xe 24 | #define CUDA_RESET_SYSTEM 0x11 25 | #define CUDA_SET_IPL 0x12 26 | #define CUDA_SET_AUTO_RATE 0x14 27 | #define CUDA_GET_AUTO_RATE 0x16 28 | #define CUDA_SET_DEVICE_LIST 0x19 29 | #define CUDA_GET_DEVICE_LIST 0x1a 30 | #define CUDA_GET_SET_IIC 0x22 31 | 32 | 33 | #endif /* _LINUX_CUDA_H */ 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nf_conntrack_tuple_common.h: -------------------------------------------------------------------------------- 1 | #ifndef _NF_CONNTRACK_TUPLE_COMMON_H 2 | #define _NF_CONNTRACK_TUPLE_COMMON_H 3 | 4 | #include 5 | #include 6 | 7 | enum ip_conntrack_dir { 8 | IP_CT_DIR_ORIGINAL, 9 | IP_CT_DIR_REPLY, 10 | IP_CT_DIR_MAX 11 | }; 12 | 13 | /* The protocol-specific manipulable parts of the tuple: always in 14 | * network order 15 | */ 16 | union nf_conntrack_man_proto { 17 | /* Add other protocols here. */ 18 | __be16 all; 19 | 20 | struct { 21 | __be16 port; 22 | } tcp; 23 | struct { 24 | __be16 port; 25 | } udp; 26 | struct { 27 | __be16 id; 28 | } icmp; 29 | struct { 30 | __be16 port; 31 | } dccp; 32 | struct { 33 | __be16 port; 34 | } sctp; 35 | struct { 36 | __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */ 37 | } gre; 38 | }; 39 | 40 | #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL) 41 | 42 | #endif /* _NF_CONNTRACK_TUPLE_COMMON_H */ 43 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_CT.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_CT_H 2 | #define _XT_CT_H 3 | 4 | #include 5 | 6 | enum { 7 | XT_CT_NOTRACK = 1 << 0, 8 | XT_CT_NOTRACK_ALIAS = 1 << 1, 9 | XT_CT_ZONE_DIR_ORIG = 1 << 2, 10 | XT_CT_ZONE_DIR_REPL = 1 << 3, 11 | XT_CT_ZONE_MARK = 1 << 4, 12 | 13 | XT_CT_MASK = XT_CT_NOTRACK | XT_CT_NOTRACK_ALIAS | 14 | XT_CT_ZONE_DIR_ORIG | XT_CT_ZONE_DIR_REPL | 15 | XT_CT_ZONE_MARK, 16 | }; 17 | 18 | struct xt_ct_target_info { 19 | __u16 flags; 20 | __u16 zone; 21 | __u32 ct_events; 22 | __u32 exp_events; 23 | char helper[16]; 24 | 25 | /* Used internally by the kernel */ 26 | struct nf_conn *ct __attribute__((aligned(8))); 27 | }; 28 | 29 | struct xt_ct_target_info_v1 { 30 | __u16 flags; 31 | __u16 zone; 32 | __u32 ct_events; 33 | __u32 exp_events; 34 | char helper[16]; 35 | char timeout[32]; 36 | 37 | /* Used internally by the kernel */ 38 | struct nf_conn *ct __attribute__((aligned(8))); 39 | }; 40 | 41 | #endif /* _XT_CT_H */ 42 | -------------------------------------------------------------------------------- /linux-headers/include/linux/baycom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The Linux BAYCOM driver for the Baycom serial 1200 baud modem 3 | * and the parallel 9600 baud modem 4 | * (C) 1997-1998 by Thomas Sailer, HB9JNX/AE4WA 5 | */ 6 | 7 | #ifndef _BAYCOM_H 8 | #define _BAYCOM_H 9 | 10 | /* -------------------------------------------------------------------- */ 11 | /* 12 | * structs for the IOCTL commands 13 | */ 14 | 15 | struct baycom_debug_data { 16 | unsigned long debug1; 17 | unsigned long debug2; 18 | long debug3; 19 | }; 20 | 21 | struct baycom_ioctl { 22 | int cmd; 23 | union { 24 | struct baycom_debug_data dbg; 25 | } data; 26 | }; 27 | 28 | /* -------------------------------------------------------------------- */ 29 | 30 | /* 31 | * ioctl values change for baycom 32 | */ 33 | #define BAYCOMCTL_GETDEBUG 0x92 34 | 35 | /* -------------------------------------------------------------------- */ 36 | 37 | #endif /* _BAYCOM_H */ 38 | 39 | /* --------------------------------------------------------------------- */ 40 | -------------------------------------------------------------------------------- /linux-headers/include/linux/kernel-page-flags.h: -------------------------------------------------------------------------------- 1 | #ifndef LINUX_KERNEL_PAGE_FLAGS_H 2 | #define LINUX_KERNEL_PAGE_FLAGS_H 3 | 4 | /* 5 | * Stable page flag bits exported to user space 6 | */ 7 | 8 | #define KPF_LOCKED 0 9 | #define KPF_ERROR 1 10 | #define KPF_REFERENCED 2 11 | #define KPF_UPTODATE 3 12 | #define KPF_DIRTY 4 13 | #define KPF_LRU 5 14 | #define KPF_ACTIVE 6 15 | #define KPF_SLAB 7 16 | #define KPF_WRITEBACK 8 17 | #define KPF_RECLAIM 9 18 | #define KPF_BUDDY 10 19 | 20 | /* 11-20: new additions in 2.6.31 */ 21 | #define KPF_MMAP 11 22 | #define KPF_ANON 12 23 | #define KPF_SWAPCACHE 13 24 | #define KPF_SWAPBACKED 14 25 | #define KPF_COMPOUND_HEAD 15 26 | #define KPF_COMPOUND_TAIL 16 27 | #define KPF_HUGE 17 28 | #define KPF_UNEVICTABLE 18 29 | #define KPF_HWPOISON 19 30 | #define KPF_NOPAGE 20 31 | 32 | #define KPF_KSM 21 33 | #define KPF_THP 22 34 | #define KPF_BALLOON 23 35 | #define KPF_ZERO_PAGE 24 36 | #define KPF_IDLE 25 37 | 38 | 39 | #endif /* LINUX_KERNEL_PAGE_FLAGS_H */ 40 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv4/ipt_ECN.h: -------------------------------------------------------------------------------- 1 | /* Header file for iptables ipt_ECN target 2 | * 3 | * (C) 2002 by Harald Welte 4 | * 5 | * This software is distributed under GNU GPL v2, 1991 6 | * 7 | * ipt_ECN.h,v 1.3 2002/05/29 12:17:40 laforge Exp 8 | */ 9 | #ifndef _IPT_ECN_TARGET_H 10 | #define _IPT_ECN_TARGET_H 11 | 12 | #include 13 | #include 14 | 15 | #define IPT_ECN_IP_MASK (~XT_DSCP_MASK) 16 | 17 | #define IPT_ECN_OP_SET_IP 0x01 /* set ECN bits of IPv4 header */ 18 | #define IPT_ECN_OP_SET_ECE 0x10 /* set ECE bit of TCP header */ 19 | #define IPT_ECN_OP_SET_CWR 0x20 /* set CWR bit of TCP header */ 20 | 21 | #define IPT_ECN_OP_MASK 0xce 22 | 23 | struct ipt_ECN_info { 24 | __u8 operation; /* bitset of operations */ 25 | __u8 ip_ect; /* ECT codepoint of IPv4 header, pre-shifted */ 26 | union { 27 | struct { 28 | __u8 ece:1, cwr:1; /* TCP ECT bits */ 29 | } tcp; 30 | } proto; 31 | }; 32 | 33 | #endif /* _IPT_ECN_TARGET_H */ 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atmapi.h: -------------------------------------------------------------------------------- 1 | /* atmapi.h - ATM API user space/kernel compatibility */ 2 | 3 | /* Written 1999,2000 by Werner Almesberger, EPFL ICA */ 4 | 5 | 6 | #ifndef _LINUX_ATMAPI_H 7 | #define _LINUX_ATMAPI_H 8 | 9 | #if defined(__sparc__) || defined(__ia64__) 10 | /* such alignment is not required on 32 bit sparcs, but we can't 11 | figure that we are on a sparc64 while compiling user-space programs. */ 12 | #define __ATM_API_ALIGN __attribute__((aligned(8))) 13 | #else 14 | #define __ATM_API_ALIGN 15 | #endif 16 | 17 | 18 | /* 19 | * Opaque type for kernel pointers. Note that _ is never accessed. We need 20 | * the struct in order hide the array, so that we can make simple assignments 21 | * instead of being forced to use memcpy. It also improves error reporting for 22 | * code that still assumes that we're passing unsigned longs. 23 | * 24 | * Convention: NULL pointers are passed as a field of all zeroes. 25 | */ 26 | 27 | typedef struct { unsigned char _[8]; } __ATM_API_ALIGN atm_kptr_t; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /linux-headers/include/linux/in_route.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_IN_ROUTE_H 2 | #define _LINUX_IN_ROUTE_H 3 | 4 | /* IPv4 routing cache flags */ 5 | 6 | #define RTCF_DEAD RTNH_F_DEAD 7 | #define RTCF_ONLINK RTNH_F_ONLINK 8 | 9 | /* Obsolete flag. About to be deleted */ 10 | #define RTCF_NOPMTUDISC RTM_F_NOPMTUDISC 11 | 12 | #define RTCF_NOTIFY 0x00010000 13 | #define RTCF_DIRECTDST 0x00020000 /* unused */ 14 | #define RTCF_REDIRECTED 0x00040000 15 | #define RTCF_TPROXY 0x00080000 /* unused */ 16 | 17 | #define RTCF_FAST 0x00200000 /* unused */ 18 | #define RTCF_MASQ 0x00400000 /* unused */ 19 | #define RTCF_SNAT 0x00800000 /* unused */ 20 | #define RTCF_DOREDIRECT 0x01000000 21 | #define RTCF_DIRECTSRC 0x04000000 22 | #define RTCF_DNAT 0x08000000 23 | #define RTCF_BROADCAST 0x10000000 24 | #define RTCF_MULTICAST 0x20000000 25 | #define RTCF_REJECT 0x40000000 /* unused */ 26 | #define RTCF_LOCAL 0x80000000 27 | 28 | #define RTCF_NAT (RTCF_DNAT|RTCF_SNAT) 29 | 30 | #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) 31 | 32 | #endif /* _LINUX_IN_ROUTE_H */ 33 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atm_idt77105.h: -------------------------------------------------------------------------------- 1 | /* atm_idt77105.h - Driver-specific declarations of the IDT77105 driver (for 2 | * use by driver-specific utilities) */ 3 | 4 | /* Written 1999 by Greg Banks . Copied from atm_suni.h. */ 5 | 6 | 7 | #ifndef LINUX_ATM_IDT77105_H 8 | #define LINUX_ATM_IDT77105_H 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | /* 15 | * Structure for IDT77105_GETSTAT and IDT77105_GETSTATZ ioctls. 16 | * Pointed to by `arg' in atmif_sioc. 17 | */ 18 | struct idt77105_stats { 19 | __u32 symbol_errors; /* wire symbol errors */ 20 | __u32 tx_cells; /* cells transmitted */ 21 | __u32 rx_cells; /* cells received */ 22 | __u32 rx_hec_errors; /* Header Error Check errors on receive */ 23 | }; 24 | 25 | #define IDT77105_GETSTAT _IOW('a',ATMIOC_PHYPRV+2,struct atmif_sioc) /* get stats */ 26 | #define IDT77105_GETSTATZ _IOW('a',ATMIOC_PHYPRV+3,struct atmif_sioc) /* get stats and zero */ 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_cablemodem.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_CABLEMODEM_H_ 2 | #define _LINUX_CABLEMODEM_H_ 3 | /* 4 | * Author: Franco Venturi 5 | * Copyright 1998 Franco Venturi 6 | * 7 | * This program is free software; you can redistribute it 8 | * and/or modify it under the terms of the GNU General 9 | * Public License as published by the Free Software 10 | * Foundation; either version 2 of the License, or (at 11 | * your option) any later version. 12 | */ 13 | 14 | /* some useful defines for sb1000.c e cmconfig.c - fv */ 15 | #define SIOCGCMSTATS (SIOCDEVPRIVATE+0) /* get cable modem stats */ 16 | #define SIOCGCMFIRMWARE (SIOCDEVPRIVATE+1) /* get cm firmware version */ 17 | #define SIOCGCMFREQUENCY (SIOCDEVPRIVATE+2) /* get cable modem frequency */ 18 | #define SIOCSCMFREQUENCY (SIOCDEVPRIVATE+3) /* set cable modem frequency */ 19 | #define SIOCGCMPIDS (SIOCDEVPRIVATE+4) /* get cable modem PIDs */ 20 | #define SIOCSCMPIDS (SIOCDEVPRIVATE+5) /* set cable modem PIDs */ 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_arp.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_ARP_H 2 | #define __LINUX_BRIDGE_EBT_ARP_H 3 | 4 | #include 5 | #include 6 | 7 | #define EBT_ARP_OPCODE 0x01 8 | #define EBT_ARP_HTYPE 0x02 9 | #define EBT_ARP_PTYPE 0x04 10 | #define EBT_ARP_SRC_IP 0x08 11 | #define EBT_ARP_DST_IP 0x10 12 | #define EBT_ARP_SRC_MAC 0x20 13 | #define EBT_ARP_DST_MAC 0x40 14 | #define EBT_ARP_GRAT 0x80 15 | #define EBT_ARP_MASK (EBT_ARP_OPCODE | EBT_ARP_HTYPE | EBT_ARP_PTYPE | \ 16 | EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC | \ 17 | EBT_ARP_GRAT) 18 | #define EBT_ARP_MATCH "arp" 19 | 20 | struct ebt_arp_info 21 | { 22 | __be16 htype; 23 | __be16 ptype; 24 | __be16 opcode; 25 | __be32 saddr; 26 | __be32 smsk; 27 | __be32 daddr; 28 | __be32 dmsk; 29 | unsigned char smaddr[ETH_ALEN]; 30 | unsigned char smmsk[ETH_ALEN]; 31 | unsigned char dmaddr[ETH_ALEN]; 32 | unsigned char dmmsk[ETH_ALEN]; 33 | __u8 bitmask; 34 | __u8 invflags; 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /linux-headers/include/linux/thermal.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_THERMAL_H 2 | #define _LINUX_THERMAL_H 3 | 4 | #define THERMAL_NAME_LENGTH 20 5 | 6 | /* Adding event notification support elements */ 7 | #define THERMAL_GENL_FAMILY_NAME "thermal_event" 8 | #define THERMAL_GENL_VERSION 0x01 9 | #define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_grp" 10 | 11 | /* Events supported by Thermal Netlink */ 12 | enum events { 13 | THERMAL_AUX0, 14 | THERMAL_AUX1, 15 | THERMAL_CRITICAL, 16 | THERMAL_DEV_FAULT, 17 | }; 18 | 19 | /* attributes of thermal_genl_family */ 20 | enum { 21 | THERMAL_GENL_ATTR_UNSPEC, 22 | THERMAL_GENL_ATTR_EVENT, 23 | __THERMAL_GENL_ATTR_MAX, 24 | }; 25 | #define THERMAL_GENL_ATTR_MAX (__THERMAL_GENL_ATTR_MAX - 1) 26 | 27 | /* commands supported by the thermal_genl_family */ 28 | enum { 29 | THERMAL_GENL_CMD_UNSPEC, 30 | THERMAL_GENL_CMD_EVENT, 31 | __THERMAL_GENL_CMD_MAX, 32 | }; 33 | #define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1) 34 | 35 | #endif /* _LINUX_THERMAL_H */ 36 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_MMAN_H 2 | #define __ASM_GENERIC_MMAN_H 3 | 4 | #include 5 | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 8 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 9 | #define MAP_LOCKED 0x2000 /* pages are locked */ 10 | #define MAP_NORESERVE 0x4000 /* don't check for reservations */ 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ 13 | #define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */ 14 | #define MAP_HUGETLB 0x40000 /* create a huge page mapping */ 15 | 16 | /* Bits [26:31] are reserved, see mman-common.h for MAP_HUGETLB usage */ 17 | 18 | #define MCL_CURRENT 1 /* lock all current mappings */ 19 | #define MCL_FUTURE 2 /* lock all future mappings */ 20 | #define MCL_ONFAULT 4 /* lock all pages that are faulted in */ 21 | 22 | #endif /* __ASM_GENERIC_MMAN_H */ 23 | -------------------------------------------------------------------------------- /linux-headers/include/linux/dlm_plock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved. 3 | * 4 | * This copyrighted material is made available to anyone wishing to use, 5 | * modify, copy, or redistribute it subject to the terms and conditions 6 | * of the GNU General Public License v.2. 7 | */ 8 | 9 | #ifndef __DLM_PLOCK_DOT_H__ 10 | #define __DLM_PLOCK_DOT_H__ 11 | 12 | #include 13 | 14 | #define DLM_PLOCK_MISC_NAME "dlm_plock" 15 | 16 | #define DLM_PLOCK_VERSION_MAJOR 1 17 | #define DLM_PLOCK_VERSION_MINOR 2 18 | #define DLM_PLOCK_VERSION_PATCH 0 19 | 20 | enum { 21 | DLM_PLOCK_OP_LOCK = 1, 22 | DLM_PLOCK_OP_UNLOCK, 23 | DLM_PLOCK_OP_GET, 24 | }; 25 | 26 | #define DLM_PLOCK_FL_CLOSE 1 27 | 28 | struct dlm_plock_info { 29 | __u32 version[3]; 30 | __u8 optype; 31 | __u8 ex; 32 | __u8 wait; 33 | __u8 flags; 34 | __u32 pid; 35 | __s32 nodeid; 36 | __s32 rv; 37 | __u32 fsid; 38 | __u64 number; 39 | __u64 start; 40 | __u64 end; 41 | __u64 owner; 42 | }; 43 | 44 | 45 | #endif /* __DLM_PLOCK_DOT_H__ */ 46 | -------------------------------------------------------------------------------- /linux-headers/include/linux/tc_act/tc_mirred.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TC_MIR_H 2 | #define __LINUX_TC_MIR_H 3 | 4 | #include 5 | #include 6 | 7 | #define TCA_ACT_MIRRED 8 8 | #define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ 9 | #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ 10 | #define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ 11 | #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ 12 | 13 | struct tc_mirred { 14 | tc_gen; 15 | int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ 16 | __u32 ifindex; /* ifindex of egress port */ 17 | }; 18 | 19 | enum { 20 | TCA_MIRRED_UNSPEC, 21 | TCA_MIRRED_TM, 22 | TCA_MIRRED_PARMS, 23 | __TCA_MIRRED_MAX 24 | }; 25 | #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nfnetlink_acct.h: -------------------------------------------------------------------------------- 1 | #ifndef _NFNL_ACCT_H_ 2 | #define _NFNL_ACCT_H_ 3 | 4 | #ifndef NFACCT_NAME_MAX 5 | #define NFACCT_NAME_MAX 32 6 | #endif 7 | 8 | enum nfnl_acct_msg_types { 9 | NFNL_MSG_ACCT_NEW, 10 | NFNL_MSG_ACCT_GET, 11 | NFNL_MSG_ACCT_GET_CTRZERO, 12 | NFNL_MSG_ACCT_DEL, 13 | NFNL_MSG_ACCT_OVERQUOTA, 14 | NFNL_MSG_ACCT_MAX 15 | }; 16 | 17 | enum nfnl_acct_flags { 18 | NFACCT_F_QUOTA_PKTS = (1 << 0), 19 | NFACCT_F_QUOTA_BYTES = (1 << 1), 20 | NFACCT_F_OVERQUOTA = (1 << 2), /* can't be set from userspace */ 21 | }; 22 | 23 | enum nfnl_acct_type { 24 | NFACCT_UNSPEC, 25 | NFACCT_NAME, 26 | NFACCT_PKTS, 27 | NFACCT_BYTES, 28 | NFACCT_USE, 29 | NFACCT_FLAGS, 30 | NFACCT_QUOTA, 31 | NFACCT_FILTER, 32 | __NFACCT_MAX 33 | }; 34 | #define NFACCT_MAX (__NFACCT_MAX - 1) 35 | 36 | enum nfnl_attr_filter_type { 37 | NFACCT_FILTER_UNSPEC, 38 | NFACCT_FILTER_MASK, 39 | NFACCT_FILTER_VALUE, 40 | __NFACCT_FILTER_MAX 41 | }; 42 | #define NFACCT_FILTER_MAX (__NFACCT_FILTER_MAX - 1) 43 | 44 | #endif /* _NFNL_ACCT_H_ */ 45 | -------------------------------------------------------------------------------- /linux-headers/include/linux/adfs_fs.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADFS_FS_H 2 | #define _ADFS_FS_H 3 | 4 | #include 5 | #include 6 | 7 | /* 8 | * Disc Record at disc address 0xc00 9 | */ 10 | struct adfs_discrecord { 11 | __u8 log2secsize; 12 | __u8 secspertrack; 13 | __u8 heads; 14 | __u8 density; 15 | __u8 idlen; 16 | __u8 log2bpmb; 17 | __u8 skew; 18 | __u8 bootoption; 19 | __u8 lowsector; 20 | __u8 nzones; 21 | __le16 zone_spare; 22 | __le32 root; 23 | __le32 disc_size; 24 | __le16 disc_id; 25 | __u8 disc_name[10]; 26 | __le32 disc_type; 27 | __le32 disc_size_high; 28 | __u8 log2sharesize:4; 29 | __u8 unused40:4; 30 | __u8 big_flag:1; 31 | __u8 unused41:1; 32 | __u8 nzones_high; 33 | __le32 format_version; 34 | __le32 root_size; 35 | __u8 unused52[60 - 52]; 36 | }; 37 | 38 | #define ADFS_DISCRECORD (0xc00) 39 | #define ADFS_DR_OFFSET (0x1c0) 40 | #define ADFS_DR_SIZE 60 41 | #define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3) 42 | 43 | 44 | #endif /* _ADFS_FS_H */ 45 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_alg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * if_alg: User-space algorithm interface 3 | * 4 | * Copyright (c) 2010 Herbert Xu 5 | * 6 | * This program is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by the Free 8 | * Software Foundation; either version 2 of the License, or (at your option) 9 | * any later version. 10 | * 11 | */ 12 | 13 | #ifndef _LINUX_IF_ALG_H 14 | #define _LINUX_IF_ALG_H 15 | 16 | #include 17 | 18 | struct sockaddr_alg { 19 | __u16 salg_family; 20 | __u8 salg_type[14]; 21 | __u32 salg_feat; 22 | __u32 salg_mask; 23 | __u8 salg_name[64]; 24 | }; 25 | 26 | struct af_alg_iv { 27 | __u32 ivlen; 28 | __u8 iv[0]; 29 | }; 30 | 31 | /* Socket options */ 32 | #define ALG_SET_KEY 1 33 | #define ALG_SET_IV 2 34 | #define ALG_SET_OP 3 35 | #define ALG_SET_AEAD_ASSOCLEN 4 36 | #define ALG_SET_AEAD_AUTHSIZE 5 37 | 38 | /* Operations */ 39 | #define ALG_OP_DECRYPT 0 40 | #define ALG_OP_ENCRYPT 1 41 | 42 | #endif /* _LINUX_IF_ALG_H */ 43 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_ip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ebt_ip 3 | * 4 | * Authors: 5 | * Bart De Schuymer 6 | * 7 | * April, 2002 8 | * 9 | * Changes: 10 | * added ip-sport and ip-dport 11 | * Innominate Security Technologies AG 12 | * September, 2002 13 | */ 14 | 15 | #ifndef __LINUX_BRIDGE_EBT_IP_H 16 | #define __LINUX_BRIDGE_EBT_IP_H 17 | 18 | #include 19 | 20 | #define EBT_IP_SOURCE 0x01 21 | #define EBT_IP_DEST 0x02 22 | #define EBT_IP_TOS 0x04 23 | #define EBT_IP_PROTO 0x08 24 | #define EBT_IP_SPORT 0x10 25 | #define EBT_IP_DPORT 0x20 26 | #define EBT_IP_MASK (EBT_IP_SOURCE | EBT_IP_DEST | EBT_IP_TOS | EBT_IP_PROTO |\ 27 | EBT_IP_SPORT | EBT_IP_DPORT ) 28 | #define EBT_IP_MATCH "ip" 29 | 30 | /* the same values are used for the invflags */ 31 | struct ebt_ip_info { 32 | __be32 saddr; 33 | __be32 daddr; 34 | __be32 smsk; 35 | __be32 dmsk; 36 | __u8 tos; 37 | __u8 protocol; 38 | __u8 bitmask; 39 | __u8 invflags; 40 | __u16 sport[2]; 41 | __u16 dport[2]; 42 | }; 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_ipv6/ip6t_rt.h: -------------------------------------------------------------------------------- 1 | #ifndef _IP6T_RT_H 2 | #define _IP6T_RT_H 3 | 4 | #include 5 | #include 6 | 7 | #define IP6T_RT_HOPS 16 8 | 9 | struct ip6t_rt { 10 | __u32 rt_type; /* Routing Type */ 11 | __u32 segsleft[2]; /* Segments Left */ 12 | __u32 hdrlen; /* Header Length */ 13 | __u8 flags; /* */ 14 | __u8 invflags; /* Inverse flags */ 15 | struct in6_addr addrs[IP6T_RT_HOPS]; /* Hops */ 16 | __u8 addrnr; /* Nr of Addresses */ 17 | }; 18 | 19 | #define IP6T_RT_TYP 0x01 20 | #define IP6T_RT_SGS 0x02 21 | #define IP6T_RT_LEN 0x04 22 | #define IP6T_RT_RES 0x08 23 | #define IP6T_RT_FST_MASK 0x30 24 | #define IP6T_RT_FST 0x10 25 | #define IP6T_RT_FST_NSTRICT 0x20 26 | 27 | /* Values for "invflags" field in struct ip6t_rt. */ 28 | #define IP6T_RT_INV_TYP 0x01 /* Invert the sense of type. */ 29 | #define IP6T_RT_INV_SGS 0x02 /* Invert the sense of Segments. */ 30 | #define IP6T_RT_INV_LEN 0x04 /* Invert the sense of length. */ 31 | #define IP6T_RT_INV_MASK 0x07 /* All possible flags. */ 32 | 33 | #endif /*_IP6T_RT_H*/ 34 | -------------------------------------------------------------------------------- /linux-headers/include/linux/sysinfo.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_SYSINFO_H 2 | #define _LINUX_SYSINFO_H 3 | 4 | #include 5 | 6 | #define SI_LOAD_SHIFT 16 7 | struct sysinfo { 8 | __kernel_long_t uptime; /* Seconds since boot */ 9 | __kernel_ulong_t loads[3]; /* 1, 5, and 15 minute load averages */ 10 | __kernel_ulong_t totalram; /* Total usable main memory size */ 11 | __kernel_ulong_t freeram; /* Available memory size */ 12 | __kernel_ulong_t sharedram; /* Amount of shared memory */ 13 | __kernel_ulong_t bufferram; /* Memory used by buffers */ 14 | __kernel_ulong_t totalswap; /* Total swap space size */ 15 | __kernel_ulong_t freeswap; /* swap space still available */ 16 | __u16 procs; /* Number of current processes */ 17 | __u16 pad; /* Explicit padding for m68k */ 18 | __kernel_ulong_t totalhigh; /* Total high memory size */ 19 | __kernel_ulong_t freehigh; /* Available high memory size */ 20 | __u32 mem_unit; /* Memory unit size in bytes */ 21 | char _f[20-2*sizeof(__kernel_ulong_t)-sizeof(__u32)]; /* Padding: libc5 uses this.. */ 22 | }; 23 | 24 | #endif /* _LINUX_SYSINFO_H */ 25 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_IPCBUF_H 2 | #define __ASM_GENERIC_IPCBUF_H 3 | 4 | /* 5 | * The generic ipc64_perm structure: 6 | * Note extra padding because this structure is passed back and forth 7 | * between kernel and user space. 8 | * 9 | * ipc64_perm was originally meant to be architecture specific, but 10 | * everyone just ended up making identical copies without specific 11 | * optimizations, so we may just as well all use the same one. 12 | * 13 | * Pad space is left for: 14 | * - 32-bit mode_t on architectures that only had 16 bit 15 | * - 32-bit seq 16 | * - 2 miscellaneous 32-bit values 17 | */ 18 | 19 | struct ipc64_perm { 20 | __kernel_key_t key; 21 | __kernel_uid32_t uid; 22 | __kernel_gid32_t gid; 23 | __kernel_uid32_t cuid; 24 | __kernel_gid32_t cgid; 25 | __kernel_mode_t mode; 26 | /* pad if mode_t is u16: */ 27 | unsigned char __pad1[4 - sizeof(__kernel_mode_t)]; 28 | unsigned short seq; 29 | unsigned short __pad2; 30 | __kernel_ulong_t __unused1; 31 | __kernel_ulong_t __unused2; 32 | }; 33 | 34 | #endif /* __ASM_GENERIC_IPCBUF_H */ 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/ipsec.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_IPSEC_H 2 | #define _LINUX_IPSEC_H 3 | 4 | /* The definitions, required to talk to KAME racoon IKE. */ 5 | 6 | #include 7 | 8 | #define IPSEC_PORT_ANY 0 9 | #define IPSEC_ULPROTO_ANY 255 10 | #define IPSEC_PROTO_ANY 255 11 | 12 | enum { 13 | IPSEC_MODE_ANY = 0, /* We do not support this for SA */ 14 | IPSEC_MODE_TRANSPORT = 1, 15 | IPSEC_MODE_TUNNEL = 2, 16 | IPSEC_MODE_BEET = 3 17 | }; 18 | 19 | enum { 20 | IPSEC_DIR_ANY = 0, 21 | IPSEC_DIR_INBOUND = 1, 22 | IPSEC_DIR_OUTBOUND = 2, 23 | IPSEC_DIR_FWD = 3, /* It is our own */ 24 | IPSEC_DIR_MAX = 4, 25 | IPSEC_DIR_INVALID = 5 26 | }; 27 | 28 | enum { 29 | IPSEC_POLICY_DISCARD = 0, 30 | IPSEC_POLICY_NONE = 1, 31 | IPSEC_POLICY_IPSEC = 2, 32 | IPSEC_POLICY_ENTRUST = 3, 33 | IPSEC_POLICY_BYPASS = 4 34 | }; 35 | 36 | enum { 37 | IPSEC_LEVEL_DEFAULT = 0, 38 | IPSEC_LEVEL_USE = 1, 39 | IPSEC_LEVEL_REQUIRE = 2, 40 | IPSEC_LEVEL_UNIQUE = 3 41 | }; 42 | 43 | #define IPSEC_MANUAL_REQID_MAX 0x3fff 44 | 45 | #define IPSEC_REPLAYWSIZE 32 46 | 47 | #endif /* _LINUX_IPSEC_H */ 48 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_HMARK.h: -------------------------------------------------------------------------------- 1 | #ifndef XT_HMARK_H_ 2 | #define XT_HMARK_H_ 3 | 4 | #include 5 | #include 6 | 7 | enum { 8 | XT_HMARK_SADDR_MASK, 9 | XT_HMARK_DADDR_MASK, 10 | XT_HMARK_SPI, 11 | XT_HMARK_SPI_MASK, 12 | XT_HMARK_SPORT, 13 | XT_HMARK_DPORT, 14 | XT_HMARK_SPORT_MASK, 15 | XT_HMARK_DPORT_MASK, 16 | XT_HMARK_PROTO_MASK, 17 | XT_HMARK_RND, 18 | XT_HMARK_MODULUS, 19 | XT_HMARK_OFFSET, 20 | XT_HMARK_CT, 21 | XT_HMARK_METHOD_L3, 22 | XT_HMARK_METHOD_L3_4, 23 | }; 24 | #define XT_HMARK_FLAG(flag) (1 << flag) 25 | 26 | union hmark_ports { 27 | struct { 28 | __u16 src; 29 | __u16 dst; 30 | } p16; 31 | struct { 32 | __be16 src; 33 | __be16 dst; 34 | } b16; 35 | __u32 v32; 36 | __be32 b32; 37 | }; 38 | 39 | struct xt_hmark_info { 40 | union nf_inet_addr src_mask; 41 | union nf_inet_addr dst_mask; 42 | union hmark_ports port_mask; 43 | union hmark_ports port_set; 44 | __u32 flags; 45 | __u16 proto_mask; 46 | __u32 hashrnd; 47 | __u32 hmodulus; 48 | __u32 hoffset; /* Mark offset to start from */ 49 | }; 50 | 51 | #endif /* XT_HMARK_H_ */ 52 | -------------------------------------------------------------------------------- /linux-headers/include/linux/smiapp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * include/uapi/linux/smiapp.h 3 | * 4 | * Generic driver for SMIA/SMIA++ compliant camera modules 5 | * 6 | * Copyright (C) 2014 Intel Corporation 7 | * Contact: Sakari Ailus 8 | * 9 | * This program is free software; you can redistribute it and/or 10 | * modify it under the terms of the GNU General Public License 11 | * version 2 as published by the Free Software Foundation. 12 | * 13 | * This program is distributed in the hope that it will be useful, but 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * General Public License for more details. 17 | * 18 | */ 19 | 20 | #ifndef __UAPI_LINUX_SMIAPP_H_ 21 | #define __UAPI_LINUX_SMIAPP_H_ 22 | 23 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_DISABLED 0 24 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_SOLID_COLOUR 1 25 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_COLOUR_BARS 2 26 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_COLOUR_BARS_GREY 3 27 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_PN9 4 28 | 29 | #endif /* __UAPI_LINUX_SMIAPP_H_ */ 30 | -------------------------------------------------------------------------------- /linux-headers/include/linux/caif/if_caif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) ST-Ericsson AB 2010 3 | * Author: Sjur Brendeland 4 | * License terms: GNU General Public License (GPL) version 2 5 | */ 6 | 7 | #ifndef IF_CAIF_H_ 8 | #define IF_CAIF_H_ 9 | #include 10 | #include 11 | #include 12 | 13 | /** 14 | * enum ifla_caif - CAIF NetlinkRT parameters. 15 | * @IFLA_CAIF_IPV4_CONNID: Connection ID for IPv4 PDP Context. 16 | * The type of attribute is NLA_U32. 17 | * @IFLA_CAIF_IPV6_CONNID: Connection ID for IPv6 PDP Context. 18 | * The type of attribute is NLA_U32. 19 | * @IFLA_CAIF_LOOPBACK: If different from zero, device is doing loopback 20 | * The type of attribute is NLA_U8. 21 | * 22 | * When using RT Netlink to create, destroy or configure a CAIF IP interface, 23 | * enum ifla_caif is used to specify the configuration attributes. 24 | */ 25 | enum ifla_caif { 26 | __IFLA_CAIF_UNSPEC, 27 | IFLA_CAIF_IPV4_CONNID, 28 | IFLA_CAIF_IPV6_CONNID, 29 | IFLA_CAIF_LOOPBACK, 30 | __IFLA_CAIF_MAX 31 | }; 32 | #define IFLA_CAIF_MAX (__IFLA_CAIF_MAX-1) 33 | 34 | #endif /*IF_CAIF_H_*/ 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/bpqether.h: -------------------------------------------------------------------------------- 1 | #ifndef __BPQETHER_H 2 | #define __BPQETHER_H 3 | 4 | /* 5 | * Defines for the BPQETHER pseudo device driver 6 | */ 7 | 8 | #ifndef __LINUX_IF_ETHER_H 9 | #include 10 | #endif 11 | 12 | #define SIOCSBPQETHOPT (SIOCDEVPRIVATE+0) /* reserved */ 13 | #define SIOCSBPQETHADDR (SIOCDEVPRIVATE+1) 14 | 15 | struct bpq_ethaddr { 16 | unsigned char destination[ETH_ALEN]; 17 | unsigned char accept[ETH_ALEN]; 18 | }; 19 | 20 | /* 21 | * For SIOCSBPQETHOPT - this is compatible with PI2/PacketTwin card drivers, 22 | * currently not implemented, though. If someone wants to hook a radio 23 | * to his Ethernet card he may find this useful. ;-) 24 | */ 25 | 26 | #define SIOCGBPQETHPARAM 0x5000 /* get Level 1 parameters */ 27 | #define SIOCSBPQETHPARAM 0x5001 /* set */ 28 | 29 | struct bpq_req { 30 | int cmd; 31 | int speed; /* unused */ 32 | int clockmode; /* unused */ 33 | int txdelay; 34 | unsigned char persist; /* unused */ 35 | int slotime; /* unused */ 36 | int squeldelay; 37 | int dmachan; /* unused */ 38 | int irq; /* unused */ 39 | }; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /linux-headers/include/linux/dvb/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * version.h 3 | * 4 | * Copyright (C) 2000 Holger Waechtler 5 | * for convergence integrated media GmbH 6 | * 7 | * This program is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public License 9 | * as published by the Free Software Foundation; either version 2.1 10 | * of the License, or (at your option) any later version. 11 | * 12 | * This program 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 Lesser General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | * 21 | */ 22 | 23 | #ifndef _DVBVERSION_H_ 24 | #define _DVBVERSION_H_ 25 | 26 | #define DVB_API_VERSION 5 27 | #define DVB_API_VERSION_MINOR 10 28 | 29 | #endif /*_DVBVERSION_H_*/ 30 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atalk.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_ATALK_H__ 2 | #define __LINUX_ATALK_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | /* 9 | * AppleTalk networking structures 10 | * 11 | * The following are directly referenced from the University Of Michigan 12 | * netatalk for compatibility reasons. 13 | */ 14 | #define ATPORT_FIRST 1 15 | #define ATPORT_RESERVED 128 16 | #define ATPORT_LAST 254 /* 254 is only legal on localtalk */ 17 | #define ATADDR_ANYNET (__u16)0 18 | #define ATADDR_ANYNODE (__u8)0 19 | #define ATADDR_ANYPORT (__u8)0 20 | #define ATADDR_BCAST (__u8)255 21 | #define DDP_MAXSZ 587 22 | #define DDP_MAXHOPS 15 /* 4 bits of hop counter */ 23 | 24 | #define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0) 25 | 26 | struct atalk_addr { 27 | __be16 s_net; 28 | __u8 s_node; 29 | }; 30 | 31 | struct sockaddr_at { 32 | __kernel_sa_family_t sat_family; 33 | __u8 sat_port; 34 | struct atalk_addr sat_addr; 35 | char sat_zero[8]; 36 | }; 37 | 38 | struct atalk_netrange { 39 | __u8 nr_phase; 40 | __be16 nr_firstnet; 41 | __be16 nr_lastnet; 42 | }; 43 | 44 | #endif /* __LINUX_ATALK_H__ */ 45 | -------------------------------------------------------------------------------- /linux-headers/include/linux/gsmmux.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_GSMMUX_H 2 | #define _LINUX_GSMMUX_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | struct gsm_config 9 | { 10 | unsigned int adaption; 11 | unsigned int encapsulation; 12 | unsigned int initiator; 13 | unsigned int t1; 14 | unsigned int t2; 15 | unsigned int t3; 16 | unsigned int n2; 17 | unsigned int mru; 18 | unsigned int mtu; 19 | unsigned int k; 20 | unsigned int i; 21 | unsigned int unused[8]; /* Padding for expansion without 22 | breaking stuff */ 23 | }; 24 | 25 | #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) 26 | #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) 27 | 28 | struct gsm_netconfig { 29 | unsigned int adaption; /* Adaption to use in network mode */ 30 | unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */ 31 | unsigned short unused2; 32 | char if_name[IFNAMSIZ]; /* interface name format string */ 33 | __u8 unused[28]; /* For future use */ 34 | }; 35 | 36 | #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig) 37 | #define GSMIOC_DISABLE_NET _IO('G', 3) 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /linux-headers/include/linux/kernelcapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id: kernelcapi.h,v 1.8.6.2 2001/02/07 11:31:31 kai Exp $ 3 | * 4 | * Kernel CAPI 2.0 Interface for Linux 5 | * 6 | * (c) Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de) 7 | * 8 | */ 9 | 10 | #ifndef __KERNELCAPI_H__ 11 | #define __KERNELCAPI_H__ 12 | 13 | #define CAPI_MAXAPPL 240 /* maximum number of applications */ 14 | #define CAPI_MAXCONTR 32 /* maximum number of controller */ 15 | #define CAPI_MAXDATAWINDOW 8 16 | 17 | 18 | typedef struct kcapi_flagdef { 19 | int contr; 20 | int flag; 21 | } kcapi_flagdef; 22 | 23 | typedef struct kcapi_carddef { 24 | char driver[32]; 25 | unsigned int port; 26 | unsigned irq; 27 | unsigned int membase; 28 | int cardnr; 29 | } kcapi_carddef; 30 | 31 | /* new ioctls >= 10 */ 32 | #define KCAPI_CMD_TRACE 10 33 | #define KCAPI_CMD_ADDCARD 11 /* OBSOLETE */ 34 | 35 | /* 36 | * flag > 2 => trace also data 37 | * flag & 1 => show trace 38 | */ 39 | #define KCAPI_TRACE_OFF 0 40 | #define KCAPI_TRACE_SHORT_NO_DATA 1 41 | #define KCAPI_TRACE_FULL_NO_DATA 2 42 | #define KCAPI_TRACE_SHORT 3 43 | #define KCAPI_TRACE_FULL 4 44 | 45 | 46 | 47 | #endif /* __KERNELCAPI_H__ */ 48 | -------------------------------------------------------------------------------- /linux-headers/include/linux/posix_types.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_POSIX_TYPES_H 2 | #define _LINUX_POSIX_TYPES_H 3 | 4 | #include 5 | 6 | /* 7 | * This allows for 1024 file descriptors: if NR_OPEN is ever grown 8 | * beyond that you'll have to change this too. But 1024 fd's seem to be 9 | * enough even for such "real" unices like OSF/1, so hopefully this is 10 | * one limit that doesn't have to be changed [again]. 11 | * 12 | * Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in 13 | * (and thus ) - but this is a more logical 14 | * place for them. Solved by having dummy defines in . 15 | */ 16 | 17 | /* 18 | * This macro may have been defined in . But we always 19 | * use the one here. 20 | */ 21 | #undef __FD_SETSIZE 22 | #define __FD_SETSIZE 1024 23 | 24 | typedef struct { 25 | unsigned long fds_bits[__FD_SETSIZE / (8 * sizeof(long))]; 26 | } __kernel_fd_set; 27 | 28 | /* Type of a signal handler. */ 29 | typedef void (*__kernel_sighandler_t)(int); 30 | 31 | /* Type of a SYSV IPC key. */ 32 | typedef int __kernel_key_t; 33 | typedef int __kernel_mqd_t; 34 | 35 | #include 36 | 37 | #endif /* _LINUX_POSIX_TYPES_H */ 38 | -------------------------------------------------------------------------------- /linux-headers/include/linux/elf-fdpic.h: -------------------------------------------------------------------------------- 1 | /* elf-fdpic.h: FDPIC ELF load map 2 | * 3 | * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved. 4 | * Written by David Howells (dhowells@redhat.com) 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either version 9 | * 2 of the License, or (at your option) any later version. 10 | */ 11 | 12 | #ifndef _LINUX_ELF_FDPIC_H 13 | #define _LINUX_ELF_FDPIC_H 14 | 15 | #include 16 | 17 | #define PT_GNU_STACK (PT_LOOS + 0x474e551) 18 | 19 | /* segment mappings for ELF FDPIC libraries/executables/interpreters */ 20 | struct elf32_fdpic_loadseg { 21 | Elf32_Addr addr; /* core address to which mapped */ 22 | Elf32_Addr p_vaddr; /* VMA recorded in file */ 23 | Elf32_Word p_memsz; /* allocation size recorded in file */ 24 | }; 25 | 26 | struct elf32_fdpic_loadmap { 27 | Elf32_Half version; /* version of these structures, just in case... */ 28 | Elf32_Half nsegs; /* number of segments */ 29 | struct elf32_fdpic_loadseg segs[]; 30 | }; 31 | 32 | #define ELF32_FDPIC_LOADMAP_VERSION 0x0000 33 | 34 | #endif /* _LINUX_ELF_FDPIC_H */ 35 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_recent.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NETFILTER_XT_RECENT_H 2 | #define _LINUX_NETFILTER_XT_RECENT_H 1 3 | 4 | #include 5 | #include 6 | 7 | enum { 8 | XT_RECENT_CHECK = 1 << 0, 9 | XT_RECENT_SET = 1 << 1, 10 | XT_RECENT_UPDATE = 1 << 2, 11 | XT_RECENT_REMOVE = 1 << 3, 12 | XT_RECENT_TTL = 1 << 4, 13 | XT_RECENT_REAP = 1 << 5, 14 | 15 | XT_RECENT_SOURCE = 0, 16 | XT_RECENT_DEST = 1, 17 | 18 | XT_RECENT_NAME_LEN = 200, 19 | }; 20 | 21 | /* Only allowed with --rcheck and --update */ 22 | #define XT_RECENT_MODIFIERS (XT_RECENT_TTL|XT_RECENT_REAP) 23 | 24 | #define XT_RECENT_VALID_FLAGS (XT_RECENT_CHECK|XT_RECENT_SET|XT_RECENT_UPDATE|\ 25 | XT_RECENT_REMOVE|XT_RECENT_TTL|XT_RECENT_REAP) 26 | 27 | struct xt_recent_mtinfo { 28 | __u32 seconds; 29 | __u32 hit_count; 30 | __u8 check_set; 31 | __u8 invert; 32 | char name[XT_RECENT_NAME_LEN]; 33 | __u8 side; 34 | }; 35 | 36 | struct xt_recent_mtinfo_v1 { 37 | __u32 seconds; 38 | __u32 hit_count; 39 | __u8 check_set; 40 | __u8 invert; 41 | char name[XT_RECENT_NAME_LEN]; 42 | __u8 side; 43 | union nf_inet_addr mask; 44 | }; 45 | 46 | #endif /* _LINUX_NETFILTER_XT_RECENT_H */ 47 | -------------------------------------------------------------------------------- /linux-headers/include/linux/stat.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_STAT_H 2 | #define _LINUX_STAT_H 3 | 4 | 5 | #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) 6 | 7 | #define S_IFMT 00170000 8 | #define S_IFSOCK 0140000 9 | #define S_IFLNK 0120000 10 | #define S_IFREG 0100000 11 | #define S_IFBLK 0060000 12 | #define S_IFDIR 0040000 13 | #define S_IFCHR 0020000 14 | #define S_IFIFO 0010000 15 | #define S_ISUID 0004000 16 | #define S_ISGID 0002000 17 | #define S_ISVTX 0001000 18 | 19 | #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 20 | #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 21 | #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 22 | #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 23 | #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 24 | #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 25 | #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) 26 | 27 | #define S_IRWXU 00700 28 | #define S_IRUSR 00400 29 | #define S_IWUSR 00200 30 | #define S_IXUSR 00100 31 | 32 | #define S_IRWXG 00070 33 | #define S_IRGRP 00040 34 | #define S_IWGRP 00020 35 | #define S_IXGRP 00010 36 | 37 | #define S_IRWXO 00007 38 | #define S_IROTH 00004 39 | #define S_IWOTH 00002 40 | #define S_IXOTH 00001 41 | 42 | #endif 43 | 44 | 45 | #endif /* _LINUX_STAT_H */ 46 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_addrtype.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_ADDRTYPE_H 2 | #define _XT_ADDRTYPE_H 3 | 4 | #include 5 | 6 | enum { 7 | XT_ADDRTYPE_INVERT_SOURCE = 0x0001, 8 | XT_ADDRTYPE_INVERT_DEST = 0x0002, 9 | XT_ADDRTYPE_LIMIT_IFACE_IN = 0x0004, 10 | XT_ADDRTYPE_LIMIT_IFACE_OUT = 0x0008, 11 | }; 12 | 13 | 14 | /* rtn_type enum values from rtnetlink.h, but shifted */ 15 | enum { 16 | XT_ADDRTYPE_UNSPEC = 1 << 0, 17 | XT_ADDRTYPE_UNICAST = 1 << 1, /* 1 << RTN_UNICAST */ 18 | XT_ADDRTYPE_LOCAL = 1 << 2, /* 1 << RTN_LOCAL, etc */ 19 | XT_ADDRTYPE_BROADCAST = 1 << 3, 20 | XT_ADDRTYPE_ANYCAST = 1 << 4, 21 | XT_ADDRTYPE_MULTICAST = 1 << 5, 22 | XT_ADDRTYPE_BLACKHOLE = 1 << 6, 23 | XT_ADDRTYPE_UNREACHABLE = 1 << 7, 24 | XT_ADDRTYPE_PROHIBIT = 1 << 8, 25 | XT_ADDRTYPE_THROW = 1 << 9, 26 | XT_ADDRTYPE_NAT = 1 << 10, 27 | XT_ADDRTYPE_XRESOLVE = 1 << 11, 28 | }; 29 | 30 | struct xt_addrtype_info_v1 { 31 | __u16 source; /* source-type mask */ 32 | __u16 dest; /* dest-type mask */ 33 | __u32 flags; 34 | }; 35 | 36 | /* revision 0 */ 37 | struct xt_addrtype_info { 38 | __u16 source; /* source-type mask */ 39 | __u16 dest; /* dest-type mask */ 40 | __u32 invert_source; 41 | __u32 invert_dest; 42 | }; 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_ip6.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ebt_ip6 3 | * 4 | * Authors: 5 | * Kuo-Lang Tseng 6 | * Manohar Castelino 7 | * 8 | * Jan 11, 2008 9 | * 10 | */ 11 | 12 | #ifndef __LINUX_BRIDGE_EBT_IP6_H 13 | #define __LINUX_BRIDGE_EBT_IP6_H 14 | 15 | #include 16 | #include 17 | 18 | #define EBT_IP6_SOURCE 0x01 19 | #define EBT_IP6_DEST 0x02 20 | #define EBT_IP6_TCLASS 0x04 21 | #define EBT_IP6_PROTO 0x08 22 | #define EBT_IP6_SPORT 0x10 23 | #define EBT_IP6_DPORT 0x20 24 | #define EBT_IP6_ICMP6 0x40 25 | 26 | #define EBT_IP6_MASK (EBT_IP6_SOURCE | EBT_IP6_DEST | EBT_IP6_TCLASS |\ 27 | EBT_IP6_PROTO | EBT_IP6_SPORT | EBT_IP6_DPORT | \ 28 | EBT_IP6_ICMP6) 29 | #define EBT_IP6_MATCH "ip6" 30 | 31 | /* the same values are used for the invflags */ 32 | struct ebt_ip6_info { 33 | struct in6_addr saddr; 34 | struct in6_addr daddr; 35 | struct in6_addr smsk; 36 | struct in6_addr dmsk; 37 | __u8 tclass; 38 | __u8 protocol; 39 | __u8 bitmask; 40 | __u8 invflags; 41 | union { 42 | __u16 sport[2]; 43 | __u8 icmpv6_type[2]; 44 | }; 45 | union { 46 | __u16 dport[2]; 47 | __u8 icmpv6_code[2]; 48 | }; 49 | }; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /linux-headers/include/linux/hsr_netlink.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011-2013 Autronica Fire and Security AS 3 | * 4 | * This program is free software; you can redistribute it and/or modify it 5 | * under the terms of the GNU General Public License as published by the Free 6 | * Software Foundation; either version 2 of the License, or (at your option) 7 | * any later version. 8 | * 9 | * Author(s): 10 | * 2011-2013 Arvid Brodin, arvid.brodin@xdin.com 11 | */ 12 | 13 | #ifndef __UAPI_HSR_NETLINK_H 14 | #define __UAPI_HSR_NETLINK_H 15 | 16 | /* Generic Netlink HSR family definition 17 | */ 18 | 19 | /* attributes */ 20 | enum { 21 | HSR_A_UNSPEC, 22 | HSR_A_NODE_ADDR, 23 | HSR_A_IFINDEX, 24 | HSR_A_IF1_AGE, 25 | HSR_A_IF2_AGE, 26 | HSR_A_NODE_ADDR_B, 27 | HSR_A_IF1_SEQ, 28 | HSR_A_IF2_SEQ, 29 | HSR_A_IF1_IFINDEX, 30 | HSR_A_IF2_IFINDEX, 31 | HSR_A_ADDR_B_IFINDEX, 32 | __HSR_A_MAX, 33 | }; 34 | #define HSR_A_MAX (__HSR_A_MAX - 1) 35 | 36 | 37 | /* commands */ 38 | enum { 39 | HSR_C_UNSPEC, 40 | HSR_C_RING_ERROR, 41 | HSR_C_NODE_DOWN, 42 | HSR_C_GET_NODE_STATUS, 43 | HSR_C_SET_NODE_STATUS, 44 | HSR_C_GET_NODE_LIST, 45 | HSR_C_SET_NODE_LIST, 46 | __HSR_C_MAX, 47 | }; 48 | #define HSR_C_MAX (__HSR_C_MAX - 1) 49 | 50 | #endif /* __UAPI_HSR_NETLINK_H */ 51 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_policy.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_POLICY_H 2 | #define _XT_POLICY_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #define XT_POLICY_MAX_ELEM 4 9 | 10 | enum xt_policy_flags { 11 | XT_POLICY_MATCH_IN = 0x1, 12 | XT_POLICY_MATCH_OUT = 0x2, 13 | XT_POLICY_MATCH_NONE = 0x4, 14 | XT_POLICY_MATCH_STRICT = 0x8, 15 | }; 16 | 17 | enum xt_policy_modes { 18 | XT_POLICY_MODE_TRANSPORT, 19 | XT_POLICY_MODE_TUNNEL 20 | }; 21 | 22 | struct xt_policy_spec { 23 | __u8 saddr:1, 24 | daddr:1, 25 | proto:1, 26 | mode:1, 27 | spi:1, 28 | reqid:1; 29 | }; 30 | 31 | union xt_policy_addr { 32 | struct in_addr a4; 33 | struct in6_addr a6; 34 | }; 35 | 36 | struct xt_policy_elem { 37 | union { 38 | struct { 39 | union xt_policy_addr saddr; 40 | union xt_policy_addr smask; 41 | union xt_policy_addr daddr; 42 | union xt_policy_addr dmask; 43 | }; 44 | }; 45 | __be32 spi; 46 | __u32 reqid; 47 | __u8 proto; 48 | __u8 mode; 49 | 50 | struct xt_policy_spec match; 51 | struct xt_policy_spec invert; 52 | }; 53 | 54 | struct xt_policy_info { 55 | struct xt_policy_elem pol[XT_POLICY_MAX_ELEM]; 56 | __u16 flags; 57 | __u16 len; 58 | }; 59 | 60 | #endif /* _XT_POLICY_H */ 61 | -------------------------------------------------------------------------------- /linux-headers/include/linux/adb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Definitions for ADB (Apple Desktop Bus) support. 3 | */ 4 | #ifndef __ADB_H 5 | #define __ADB_H 6 | 7 | /* ADB commands */ 8 | #define ADB_BUSRESET 0 9 | #define ADB_FLUSH(id) (0x01 | ((id) << 4)) 10 | #define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4)) 11 | #define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4)) 12 | 13 | /* ADB default device IDs (upper 4 bits of ADB command byte) */ 14 | #define ADB_DONGLE 1 /* "software execution control" devices */ 15 | #define ADB_KEYBOARD 2 16 | #define ADB_MOUSE 3 17 | #define ADB_TABLET 4 18 | #define ADB_MODEM 5 19 | #define ADB_MISC 7 /* maybe a monitor */ 20 | 21 | #define ADB_RET_OK 0 22 | #define ADB_RET_TIMEOUT 3 23 | 24 | /* The kind of ADB request. The controller may emulate some 25 | or all of those CUDA/PMU packet kinds */ 26 | #define ADB_PACKET 0 27 | #define CUDA_PACKET 1 28 | #define ERROR_PACKET 2 29 | #define TIMER_PACKET 3 30 | #define POWER_PACKET 4 31 | #define MACIIC_PACKET 5 32 | #define PMU_PACKET 6 33 | #define ADB_QUERY 7 34 | 35 | /* ADB queries */ 36 | 37 | /* ADB_QUERY_GETDEVINFO 38 | * Query ADB slot for device presence 39 | * data[2] = id, rep[0] = orig addr, rep[1] = handler_id 40 | */ 41 | #define ADB_QUERY_GETDEVINFO 1 42 | 43 | 44 | #endif /* __ADB_H */ 45 | -------------------------------------------------------------------------------- /linux-headers/include/linux/isdn_divertif.h: -------------------------------------------------------------------------------- 1 | /* $Id: isdn_divertif.h,v 1.4.6.1 2001/09/23 22:25:05 kai Exp $ 2 | * 3 | * Header for the diversion supplementary interface for i4l. 4 | * 5 | * Author Werner Cornelius (werner@titro.de) 6 | * Copyright by Werner Cornelius (werner@titro.de) 7 | * 8 | * This software may be used and distributed according to the terms 9 | * of the GNU General Public License, incorporated herein by reference. 10 | * 11 | */ 12 | 13 | #ifndef _LINUX_ISDN_DIVERTIF_H 14 | #define _LINUX_ISDN_DIVERTIF_H 15 | 16 | /***********************************************************/ 17 | /* magic value is also used to control version information */ 18 | /***********************************************************/ 19 | #define DIVERT_IF_MAGIC 0x25873401 20 | #define DIVERT_CMD_REG 0x00 /* register command */ 21 | #define DIVERT_CMD_REL 0x01 /* release command */ 22 | #define DIVERT_NO_ERR 0x00 /* return value no error */ 23 | #define DIVERT_CMD_ERR 0x01 /* invalid cmd */ 24 | #define DIVERT_VER_ERR 0x02 /* magic/version invalid */ 25 | #define DIVERT_REG_ERR 0x03 /* module already registered */ 26 | #define DIVERT_REL_ERR 0x04 /* module not registered */ 27 | #define DIVERT_REG_NAME isdn_register_divert 28 | 29 | 30 | #endif /* _LINUX_ISDN_DIVERTIF_H */ 31 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter_bridge/ebt_stp.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_BRIDGE_EBT_STP_H 2 | #define __LINUX_BRIDGE_EBT_STP_H 3 | 4 | #include 5 | 6 | #define EBT_STP_TYPE 0x0001 7 | 8 | #define EBT_STP_FLAGS 0x0002 9 | #define EBT_STP_ROOTPRIO 0x0004 10 | #define EBT_STP_ROOTADDR 0x0008 11 | #define EBT_STP_ROOTCOST 0x0010 12 | #define EBT_STP_SENDERPRIO 0x0020 13 | #define EBT_STP_SENDERADDR 0x0040 14 | #define EBT_STP_PORT 0x0080 15 | #define EBT_STP_MSGAGE 0x0100 16 | #define EBT_STP_MAXAGE 0x0200 17 | #define EBT_STP_HELLOTIME 0x0400 18 | #define EBT_STP_FWDD 0x0800 19 | 20 | #define EBT_STP_MASK 0x0fff 21 | #define EBT_STP_CONFIG_MASK 0x0ffe 22 | 23 | #define EBT_STP_MATCH "stp" 24 | 25 | struct ebt_stp_config_info { 26 | __u8 flags; 27 | __u16 root_priol, root_priou; 28 | char root_addr[6], root_addrmsk[6]; 29 | __u32 root_costl, root_costu; 30 | __u16 sender_priol, sender_priou; 31 | char sender_addr[6], sender_addrmsk[6]; 32 | __u16 portl, portu; 33 | __u16 msg_agel, msg_ageu; 34 | __u16 max_agel, max_ageu; 35 | __u16 hello_timel, hello_timeu; 36 | __u16 forward_delayl, forward_delayu; 37 | }; 38 | 39 | struct ebt_stp_info { 40 | __u8 type; 41 | struct ebt_stp_config_info config; 42 | __u16 bitmask; 43 | __u16 invflags; 44 | }; 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /linux-headers/include/linux/if_infiniband.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This software is available to you under a choice of one of two 3 | * licenses. You may choose to be licensed under the terms of the GNU 4 | * General Public License (GPL) Version 2, available at 5 | * , or the OpenIB.org BSD 6 | * license, available in the LICENSE.TXT file accompanying this 7 | * software. These details are also available at 8 | * . 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 11 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 12 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 13 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 14 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 15 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 16 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 17 | * SOFTWARE. 18 | * 19 | * Copyright (c) 2004 Topspin Communications. All rights reserved. 20 | * 21 | * $Id$ 22 | */ 23 | 24 | #ifndef _LINUX_IF_INFINIBAND_H 25 | #define _LINUX_IF_INFINIBAND_H 26 | 27 | #define INFINIBAND_ALEN 20 /* Octets in IPoIB HW addr */ 28 | 29 | #endif /* _LINUX_IF_INFINIBAND_H */ 30 | -------------------------------------------------------------------------------- /linux-headers/include/video/uvesafb.h: -------------------------------------------------------------------------------- 1 | #ifndef _UVESAFB_H 2 | #define _UVESAFB_H 3 | 4 | #include 5 | 6 | struct v86_regs { 7 | __u32 ebx; 8 | __u32 ecx; 9 | __u32 edx; 10 | __u32 esi; 11 | __u32 edi; 12 | __u32 ebp; 13 | __u32 eax; 14 | __u32 eip; 15 | __u32 eflags; 16 | __u32 esp; 17 | __u16 cs; 18 | __u16 ss; 19 | __u16 es; 20 | __u16 ds; 21 | __u16 fs; 22 | __u16 gs; 23 | }; 24 | 25 | /* Task flags */ 26 | #define TF_VBEIB 0x01 27 | #define TF_BUF_ESDI 0x02 28 | #define TF_BUF_ESBX 0x04 29 | #define TF_BUF_RET 0x08 30 | #define TF_EXIT 0x10 31 | 32 | struct uvesafb_task { 33 | __u8 flags; 34 | int buf_len; 35 | struct v86_regs regs; 36 | }; 37 | 38 | /* Constants for the capabilities field 39 | * in vbe_ib */ 40 | #define VBE_CAP_CAN_SWITCH_DAC 0x01 41 | #define VBE_CAP_VGACOMPAT 0x02 42 | 43 | /* The VBE Info Block */ 44 | struct vbe_ib { 45 | char vbe_signature[4]; 46 | __u16 vbe_version; 47 | __u32 oem_string_ptr; 48 | __u32 capabilities; 49 | __u32 mode_list_ptr; 50 | __u16 total_memory; 51 | __u16 oem_software_rev; 52 | __u32 oem_vendor_name_ptr; 53 | __u32 oem_product_name_ptr; 54 | __u32 oem_product_rev_ptr; 55 | __u8 reserved[222]; 56 | char oem_data[256]; 57 | char misc_data[512]; 58 | } __attribute__ ((packed)); 59 | 60 | #endif /* _UVESAFB_H */ 61 | -------------------------------------------------------------------------------- /linux-headers/include/asm/ptrace.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_RISCV_PTRACE_H 2 | #define _ASM_RISCV_PTRACE_H 3 | 4 | #ifndef __ASSEMBLY__ 5 | 6 | #include 7 | 8 | /* User-mode register state for core dumps, ptrace, sigcontext 9 | * 10 | * This decouples struct pt_regs from the userspace ABI. 11 | * struct user_regs_struct must form a prefix of struct pt_regs. 12 | */ 13 | struct user_regs_struct { 14 | unsigned long pc; 15 | unsigned long ra; 16 | unsigned long sp; 17 | unsigned long gp; 18 | unsigned long tp; 19 | unsigned long t0; 20 | unsigned long t1; 21 | unsigned long t2; 22 | unsigned long s0; 23 | unsigned long s1; 24 | unsigned long a0; 25 | unsigned long a1; 26 | unsigned long a2; 27 | unsigned long a3; 28 | unsigned long a4; 29 | unsigned long a5; 30 | unsigned long a6; 31 | unsigned long a7; 32 | unsigned long s2; 33 | unsigned long s3; 34 | unsigned long s4; 35 | unsigned long s5; 36 | unsigned long s6; 37 | unsigned long s7; 38 | unsigned long s8; 39 | unsigned long s9; 40 | unsigned long s10; 41 | unsigned long s11; 42 | unsigned long t3; 43 | unsigned long t4; 44 | unsigned long t5; 45 | unsigned long t6; 46 | }; 47 | 48 | struct user_fpregs_struct { 49 | __u64 f[32]; 50 | __u32 fcsr; 51 | }; 52 | 53 | #endif /* __ASSEMBLY__ */ 54 | 55 | #endif /* _ASM_RISCV_PTRACE_H */ 56 | -------------------------------------------------------------------------------- /linux-headers/include/linux/ivtvfb.h: -------------------------------------------------------------------------------- 1 | /* 2 | On Screen Display cx23415 Framebuffer driver 3 | 4 | Copyright (C) 2006, 2007 Ian Armstrong 5 | 6 | This program is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 2 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | 21 | #ifndef __LINUX_IVTVFB_H__ 22 | #define __LINUX_IVTVFB_H__ 23 | 24 | 25 | #include 26 | 27 | /* Framebuffer external API */ 28 | 29 | struct ivtvfb_dma_frame { 30 | void *source; 31 | unsigned long dest_offset; 32 | int count; 33 | }; 34 | 35 | #define IVTVFB_IOC_DMA_FRAME _IOW('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame) 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /linux-headers/include/linux/sound.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_SOUND_H 2 | #define _LINUX_SOUND_H 3 | 4 | /* 5 | * Minor numbers for the sound driver. 6 | */ 7 | 8 | #include 9 | 10 | #define SND_DEV_CTL 0 /* Control port /dev/mixer */ 11 | #define SND_DEV_SEQ 1 /* Sequencer output /dev/sequencer (FM 12 | synthesizer and MIDI output) */ 13 | #define SND_DEV_MIDIN 2 /* Raw midi access */ 14 | #define SND_DEV_DSP 3 /* Digitized voice /dev/dsp */ 15 | #define SND_DEV_AUDIO 4 /* Sparc compatible /dev/audio */ 16 | #define SND_DEV_DSP16 5 /* Like /dev/dsp but 16 bits/sample */ 17 | /* #define SND_DEV_STATUS 6 */ /* /dev/sndstat (obsolete) */ 18 | #define SND_DEV_UNUSED 6 19 | #define SND_DEV_AWFM 7 /* Reserved */ 20 | #define SND_DEV_SEQ2 8 /* /dev/sequencer, level 2 interface */ 21 | /* #define SND_DEV_SNDPROC 9 */ /* /dev/sndproc for programmable devices (not used) */ 22 | /* #define SND_DEV_DMMIDI 9 */ 23 | #define SND_DEV_SYNTH 9 /* Raw synth access /dev/synth (same as /dev/dmfm) */ 24 | #define SND_DEV_DMFM 10 /* Raw synth access /dev/dmfm */ 25 | #define SND_DEV_UNKNOWN11 11 26 | #define SND_DEV_ADSP 12 /* Like /dev/dsp (obsolete) */ 27 | #define SND_DEV_AMIDI 13 /* Like /dev/midi (obsolete) */ 28 | #define SND_DEV_ADMMIDI 14 /* Like /dev/dmmidi (onsolete) */ 29 | 30 | 31 | #endif /* _LINUX_SOUND_H */ 32 | -------------------------------------------------------------------------------- /linux-headers/include/linux/sunrpc/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/linux/sunrpc/debug.h 3 | * 4 | * Debugging support for sunrpc module 5 | * 6 | * Copyright (C) 1996, Olaf Kirch 7 | */ 8 | 9 | #ifndef _LINUX_SUNRPC_DEBUG_H_ 10 | #define _LINUX_SUNRPC_DEBUG_H_ 11 | 12 | /* 13 | * RPC debug facilities 14 | */ 15 | #define RPCDBG_XPRT 0x0001 16 | #define RPCDBG_CALL 0x0002 17 | #define RPCDBG_DEBUG 0x0004 18 | #define RPCDBG_NFS 0x0008 19 | #define RPCDBG_AUTH 0x0010 20 | #define RPCDBG_BIND 0x0020 21 | #define RPCDBG_SCHED 0x0040 22 | #define RPCDBG_TRANS 0x0080 23 | #define RPCDBG_SVCXPRT 0x0100 24 | #define RPCDBG_SVCDSP 0x0200 25 | #define RPCDBG_MISC 0x0400 26 | #define RPCDBG_CACHE 0x0800 27 | #define RPCDBG_ALL 0x7fff 28 | 29 | 30 | /* 31 | * Declarations for the sysctl debug interface, which allows to read or 32 | * change the debug flags for rpc, nfs, nfsd, and lockd. Since the sunrpc 33 | * module currently registers its sysctl table dynamically, the sysctl path 34 | * for module FOO is . 35 | */ 36 | 37 | enum { 38 | CTL_RPCDEBUG = 1, 39 | CTL_NFSDEBUG, 40 | CTL_NFSDDEBUG, 41 | CTL_NLMDEBUG, 42 | CTL_SLOTTABLE_UDP, 43 | CTL_SLOTTABLE_TCP, 44 | CTL_MIN_RESVPORT, 45 | CTL_MAX_RESVPORT, 46 | }; 47 | 48 | #endif /* _LINUX_SUNRPC_DEBUG_H_ */ 49 | -------------------------------------------------------------------------------- /linux-headers/include/mtd/mtd-user.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 1999-2010 David Woodhouse 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | * 18 | */ 19 | 20 | #ifndef __MTD_USER_H__ 21 | #define __MTD_USER_H__ 22 | 23 | /* This file is blessed for inclusion by userspace */ 24 | #include 25 | 26 | typedef struct mtd_info_user mtd_info_t; 27 | typedef struct erase_info_user erase_info_t; 28 | typedef struct region_info_user region_info_t; 29 | typedef struct nand_oobinfo nand_oobinfo_t; 30 | typedef struct nand_ecclayout_user nand_ecclayout_t; 31 | 32 | #endif /* __MTD_USER_H__ */ 33 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netlink_diag.h: -------------------------------------------------------------------------------- 1 | #ifndef __NETLINK_DIAG_H__ 2 | #define __NETLINK_DIAG_H__ 3 | 4 | #include 5 | 6 | struct netlink_diag_req { 7 | __u8 sdiag_family; 8 | __u8 sdiag_protocol; 9 | __u16 pad; 10 | __u32 ndiag_ino; 11 | __u32 ndiag_show; 12 | __u32 ndiag_cookie[2]; 13 | }; 14 | 15 | struct netlink_diag_msg { 16 | __u8 ndiag_family; 17 | __u8 ndiag_type; 18 | __u8 ndiag_protocol; 19 | __u8 ndiag_state; 20 | 21 | __u32 ndiag_portid; 22 | __u32 ndiag_dst_portid; 23 | __u32 ndiag_dst_group; 24 | __u32 ndiag_ino; 25 | __u32 ndiag_cookie[2]; 26 | }; 27 | 28 | struct netlink_diag_ring { 29 | __u32 ndr_block_size; 30 | __u32 ndr_block_nr; 31 | __u32 ndr_frame_size; 32 | __u32 ndr_frame_nr; 33 | }; 34 | 35 | enum { 36 | /* NETLINK_DIAG_NONE, standard nl API requires this attribute! */ 37 | NETLINK_DIAG_MEMINFO, 38 | NETLINK_DIAG_GROUPS, 39 | NETLINK_DIAG_RX_RING, 40 | NETLINK_DIAG_TX_RING, 41 | 42 | __NETLINK_DIAG_MAX, 43 | }; 44 | 45 | #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1) 46 | 47 | #define NDIAG_PROTO_ALL ((__u8) ~0) 48 | 49 | #define NDIAG_SHOW_MEMINFO 0x00000001 /* show memory info of a socket */ 50 | #define NDIAG_SHOW_GROUPS 0x00000002 /* show groups of a netlink socket */ 51 | #define NDIAG_SHOW_RING_CFG 0x00000004 /* show ring configuration */ 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /linux-headers/include/linux/dlm_netlink.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Red Hat, Inc. All rights reserved. 3 | * 4 | * This copyrighted material is made available to anyone wishing to use, 5 | * modify, copy, or redistribute it subject to the terms and conditions 6 | * of the GNU General Public License v.2. 7 | */ 8 | 9 | #ifndef _DLM_NETLINK_H 10 | #define _DLM_NETLINK_H 11 | 12 | #include 13 | 14 | enum { 15 | DLM_STATUS_WAITING = 1, 16 | DLM_STATUS_GRANTED = 2, 17 | DLM_STATUS_CONVERT = 3, 18 | }; 19 | 20 | #define DLM_LOCK_DATA_VERSION 1 21 | 22 | struct dlm_lock_data { 23 | __u16 version; 24 | __u32 lockspace_id; 25 | int nodeid; 26 | int ownpid; 27 | __u32 id; 28 | __u32 remid; 29 | __u64 xid; 30 | __s8 status; 31 | __s8 grmode; 32 | __s8 rqmode; 33 | unsigned long timestamp; 34 | int resource_namelen; 35 | char resource_name[DLM_RESNAME_MAXLEN]; 36 | }; 37 | 38 | enum { 39 | DLM_CMD_UNSPEC = 0, 40 | DLM_CMD_HELLO, /* user->kernel */ 41 | DLM_CMD_TIMEOUT, /* kernel->user */ 42 | __DLM_CMD_MAX, 43 | }; 44 | 45 | #define DLM_CMD_MAX (__DLM_CMD_MAX - 1) 46 | 47 | enum { 48 | DLM_TYPE_UNSPEC = 0, 49 | DLM_TYPE_LOCK, 50 | __DLM_TYPE_MAX, 51 | }; 52 | 53 | #define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1) 54 | 55 | #define DLM_GENL_VERSION 0x1 56 | #define DLM_GENL_NAME "DLM" 57 | 58 | #endif /* _DLM_NETLINK_H */ 59 | -------------------------------------------------------------------------------- /linux-headers/include/linux/signalfd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * include/linux/signalfd.h 3 | * 4 | * Copyright (C) 2007 Davide Libenzi 5 | * 6 | */ 7 | 8 | #ifndef _LINUX_SIGNALFD_H 9 | #define _LINUX_SIGNALFD_H 10 | 11 | #include 12 | /* For O_CLOEXEC and O_NONBLOCK */ 13 | #include 14 | 15 | /* Flags for signalfd4. */ 16 | #define SFD_CLOEXEC O_CLOEXEC 17 | #define SFD_NONBLOCK O_NONBLOCK 18 | 19 | struct signalfd_siginfo { 20 | __u32 ssi_signo; 21 | __s32 ssi_errno; 22 | __s32 ssi_code; 23 | __u32 ssi_pid; 24 | __u32 ssi_uid; 25 | __s32 ssi_fd; 26 | __u32 ssi_tid; 27 | __u32 ssi_band; 28 | __u32 ssi_overrun; 29 | __u32 ssi_trapno; 30 | __s32 ssi_status; 31 | __s32 ssi_int; 32 | __u64 ssi_ptr; 33 | __u64 ssi_utime; 34 | __u64 ssi_stime; 35 | __u64 ssi_addr; 36 | __u16 ssi_addr_lsb; 37 | 38 | /* 39 | * Pad strcture to 128 bytes. Remember to update the 40 | * pad size when you add new members. We use a fixed 41 | * size structure to avoid compatibility problems with 42 | * future versions, and we leave extra space for additional 43 | * members. We use fixed size members because this strcture 44 | * comes out of a read(2) and we really don't want to have 45 | * a compat on read(2). 46 | */ 47 | __u8 __pad[46]; 48 | }; 49 | 50 | 51 | 52 | #endif /* _LINUX_SIGNALFD_H */ 53 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nf_nat.h: -------------------------------------------------------------------------------- 1 | #ifndef _NETFILTER_NF_NAT_H 2 | #define _NETFILTER_NF_NAT_H 3 | 4 | #include 5 | #include 6 | 7 | #define NF_NAT_RANGE_MAP_IPS (1 << 0) 8 | #define NF_NAT_RANGE_PROTO_SPECIFIED (1 << 1) 9 | #define NF_NAT_RANGE_PROTO_RANDOM (1 << 2) 10 | #define NF_NAT_RANGE_PERSISTENT (1 << 3) 11 | #define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4) 12 | 13 | #define NF_NAT_RANGE_PROTO_RANDOM_ALL \ 14 | (NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PROTO_RANDOM_FULLY) 15 | 16 | #define NF_NAT_RANGE_MASK \ 17 | (NF_NAT_RANGE_MAP_IPS | NF_NAT_RANGE_PROTO_SPECIFIED | \ 18 | NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PERSISTENT | \ 19 | NF_NAT_RANGE_PROTO_RANDOM_FULLY) 20 | 21 | struct nf_nat_ipv4_range { 22 | unsigned int flags; 23 | __be32 min_ip; 24 | __be32 max_ip; 25 | union nf_conntrack_man_proto min; 26 | union nf_conntrack_man_proto max; 27 | }; 28 | 29 | struct nf_nat_ipv4_multi_range_compat { 30 | unsigned int rangesize; 31 | struct nf_nat_ipv4_range range[1]; 32 | }; 33 | 34 | struct nf_nat_range { 35 | unsigned int flags; 36 | union nf_inet_addr min_addr; 37 | union nf_inet_addr max_addr; 38 | union nf_conntrack_man_proto min_proto; 39 | union nf_conntrack_man_proto max_proto; 40 | }; 41 | 42 | #endif /* _NETFILTER_NF_NAT_H */ 43 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/xt_tcpudp.h: -------------------------------------------------------------------------------- 1 | #ifndef _XT_TCPUDP_H 2 | #define _XT_TCPUDP_H 3 | 4 | #include 5 | 6 | /* TCP matching stuff */ 7 | struct xt_tcp { 8 | __u16 spts[2]; /* Source port range. */ 9 | __u16 dpts[2]; /* Destination port range. */ 10 | __u8 option; /* TCP Option iff non-zero*/ 11 | __u8 flg_mask; /* TCP flags mask byte */ 12 | __u8 flg_cmp; /* TCP flags compare byte */ 13 | __u8 invflags; /* Inverse flags */ 14 | }; 15 | 16 | /* Values for "inv" field in struct ipt_tcp. */ 17 | #define XT_TCP_INV_SRCPT 0x01 /* Invert the sense of source ports. */ 18 | #define XT_TCP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */ 19 | #define XT_TCP_INV_FLAGS 0x04 /* Invert the sense of TCP flags. */ 20 | #define XT_TCP_INV_OPTION 0x08 /* Invert the sense of option test. */ 21 | #define XT_TCP_INV_MASK 0x0F /* All possible flags. */ 22 | 23 | /* UDP matching stuff */ 24 | struct xt_udp { 25 | __u16 spts[2]; /* Source port range. */ 26 | __u16 dpts[2]; /* Destination port range. */ 27 | __u8 invflags; /* Inverse flags */ 28 | }; 29 | 30 | /* Values for "invflags" field in struct ipt_udp. */ 31 | #define XT_UDP_INV_SRCPT 0x01 /* Invert the sense of source ports. */ 32 | #define XT_UDP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */ 33 | #define XT_UDP_INV_MASK 0x03 /* All possible flags. */ 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /linux-headers/include/linux/selinux_netlink.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Netlink event notifications for SELinux. 3 | * 4 | * Author: James Morris 5 | * 6 | * Copyright (C) 2004 Red Hat, Inc., James Morris 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License version 2, 10 | * as published by the Free Software Foundation. 11 | */ 12 | #ifndef _LINUX_SELINUX_NETLINK_H 13 | #define _LINUX_SELINUX_NETLINK_H 14 | 15 | #include 16 | 17 | /* Message types. */ 18 | #define SELNL_MSG_BASE 0x10 19 | enum { 20 | SELNL_MSG_SETENFORCE = SELNL_MSG_BASE, 21 | SELNL_MSG_POLICYLOAD, 22 | SELNL_MSG_MAX 23 | }; 24 | 25 | /* Multicast groups - backwards compatiblility for userspace */ 26 | #define SELNL_GRP_NONE 0x00000000 27 | #define SELNL_GRP_AVC 0x00000001 /* AVC notifications */ 28 | #define SELNL_GRP_ALL 0xffffffff 29 | 30 | enum selinux_nlgroups { 31 | SELNLGRP_NONE, 32 | #define SELNLGRP_NONE SELNLGRP_NONE 33 | SELNLGRP_AVC, 34 | #define SELNLGRP_AVC SELNLGRP_AVC 35 | __SELNLGRP_MAX 36 | }; 37 | #define SELNLGRP_MAX (__SELNLGRP_MAX - 1) 38 | 39 | /* Message structures */ 40 | struct selnl_msg_setenforce { 41 | __s32 val; 42 | }; 43 | 44 | struct selnl_msg_policyload { 45 | __u32 seqno; 46 | }; 47 | 48 | #endif /* _LINUX_SELINUX_NETLINK_H */ 49 | -------------------------------------------------------------------------------- /linux-headers/include/asm-generic/sembuf.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SEMBUF_H 2 | #define __ASM_GENERIC_SEMBUF_H 3 | 4 | #include 5 | 6 | /* 7 | * The semid64_ds structure for x86 architecture. 8 | * Note extra padding because this structure is passed back and forth 9 | * between kernel and user space. 10 | * 11 | * semid64_ds was originally meant to be architecture specific, but 12 | * everyone just ended up making identical copies without specific 13 | * optimizations, so we may just as well all use the same one. 14 | * 15 | * 64 bit architectures typically define a 64 bit __kernel_time_t, 16 | * so they do not need the first two padding words. 17 | * On big-endian systems, the padding is in the wrong place. 18 | * 19 | * Pad space is left for: 20 | * - 64-bit time_t to solve y2038 problem 21 | * - 2 miscellaneous 32-bit values 22 | */ 23 | struct semid64_ds { 24 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 25 | __kernel_time_t sem_otime; /* last semop time */ 26 | #if __BITS_PER_LONG != 64 27 | unsigned long __unused1; 28 | #endif 29 | __kernel_time_t sem_ctime; /* last change time */ 30 | #if __BITS_PER_LONG != 64 31 | unsigned long __unused2; 32 | #endif 33 | unsigned long sem_nsems; /* no. of semaphores in array */ 34 | unsigned long __unused3; 35 | unsigned long __unused4; 36 | }; 37 | 38 | #endif /* __ASM_GENERIC_SEMBUF_H */ 39 | -------------------------------------------------------------------------------- /linux-headers/include/linux/net_dropmon.h: -------------------------------------------------------------------------------- 1 | #ifndef __NET_DROPMON_H 2 | #define __NET_DROPMON_H 3 | 4 | #include 5 | #include 6 | 7 | struct net_dm_drop_point { 8 | __u8 pc[8]; 9 | __u32 count; 10 | }; 11 | 12 | #define is_drop_point_hw(x) do {\ 13 | int ____i, ____j;\ 14 | for (____i = 0; ____i < 8; i ____i++)\ 15 | ____j |= x[____i];\ 16 | ____j;\ 17 | } while (0) 18 | 19 | #define NET_DM_CFG_VERSION 0 20 | #define NET_DM_CFG_ALERT_COUNT 1 21 | #define NET_DM_CFG_ALERT_DELAY 2 22 | #define NET_DM_CFG_MAX 3 23 | 24 | struct net_dm_config_entry { 25 | __u32 type; 26 | __u64 data __attribute__((aligned(8))); 27 | }; 28 | 29 | struct net_dm_config_msg { 30 | __u32 entries; 31 | struct net_dm_config_entry options[0]; 32 | }; 33 | 34 | struct net_dm_alert_msg { 35 | __u32 entries; 36 | struct net_dm_drop_point points[0]; 37 | }; 38 | 39 | struct net_dm_user_msg { 40 | union { 41 | struct net_dm_config_msg user; 42 | struct net_dm_alert_msg alert; 43 | } u; 44 | }; 45 | 46 | 47 | /* These are the netlink message types for this protocol */ 48 | 49 | enum { 50 | NET_DM_CMD_UNSPEC = 0, 51 | NET_DM_CMD_ALERT, 52 | NET_DM_CMD_CONFIG, 53 | NET_DM_CMD_START, 54 | NET_DM_CMD_STOP, 55 | _NET_DM_CMD_MAX, 56 | }; 57 | 58 | #define NET_DM_CMD_MAX (_NET_DM_CMD_MAX - 1) 59 | 60 | /* 61 | * Our group identifiers 62 | */ 63 | #define NET_DM_GRP_ALERT 1 64 | #endif 65 | -------------------------------------------------------------------------------- /linux-headers/include/linux/netfilter/nfnetlink_cthelper.h: -------------------------------------------------------------------------------- 1 | #ifndef _NFNL_CTHELPER_H_ 2 | #define _NFNL_CTHELPER_H_ 3 | 4 | #define NFCT_HELPER_STATUS_DISABLED 0 5 | #define NFCT_HELPER_STATUS_ENABLED 1 6 | 7 | enum nfnl_acct_msg_types { 8 | NFNL_MSG_CTHELPER_NEW, 9 | NFNL_MSG_CTHELPER_GET, 10 | NFNL_MSG_CTHELPER_DEL, 11 | NFNL_MSG_CTHELPER_MAX 12 | }; 13 | 14 | enum nfnl_cthelper_type { 15 | NFCTH_UNSPEC, 16 | NFCTH_NAME, 17 | NFCTH_TUPLE, 18 | NFCTH_QUEUE_NUM, 19 | NFCTH_POLICY, 20 | NFCTH_PRIV_DATA_LEN, 21 | NFCTH_STATUS, 22 | __NFCTH_MAX 23 | }; 24 | #define NFCTH_MAX (__NFCTH_MAX - 1) 25 | 26 | enum nfnl_cthelper_policy_type { 27 | NFCTH_POLICY_SET_UNSPEC, 28 | NFCTH_POLICY_SET_NUM, 29 | NFCTH_POLICY_SET, 30 | NFCTH_POLICY_SET1 = NFCTH_POLICY_SET, 31 | NFCTH_POLICY_SET2, 32 | NFCTH_POLICY_SET3, 33 | NFCTH_POLICY_SET4, 34 | __NFCTH_POLICY_SET_MAX 35 | }; 36 | #define NFCTH_POLICY_SET_MAX (__NFCTH_POLICY_SET_MAX - 1) 37 | 38 | enum nfnl_cthelper_pol_type { 39 | NFCTH_POLICY_UNSPEC, 40 | NFCTH_POLICY_NAME, 41 | NFCTH_POLICY_EXPECT_MAX, 42 | NFCTH_POLICY_EXPECT_TIMEOUT, 43 | __NFCTH_POLICY_MAX 44 | }; 45 | #define NFCTH_POLICY_MAX (__NFCTH_POLICY_MAX - 1) 46 | 47 | enum nfnl_cthelper_tuple_type { 48 | NFCTH_TUPLE_UNSPEC, 49 | NFCTH_TUPLE_L3PROTONUM, 50 | NFCTH_TUPLE_L4PROTONUM, 51 | __NFCTH_TUPLE_MAX, 52 | }; 53 | #define NFCTH_TUPLE_MAX (__NFCTH_TUPLE_MAX - 1) 54 | 55 | #endif /* _NFNL_CTHELPER_H */ 56 | -------------------------------------------------------------------------------- /linux-headers/include/linux/atmarp.h: -------------------------------------------------------------------------------- 1 | /* atmarp.h - ATM ARP protocol and kernel-demon interface definitions */ 2 | 3 | /* Written 1995-1999 by Werner Almesberger, EPFL LRC/ICA */ 4 | 5 | 6 | #ifndef _LINUX_ATMARP_H 7 | #define _LINUX_ATMARP_H 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | 14 | #define ATMARP_RETRY_DELAY 30 /* request next resolution or forget 15 | NAK after 30 sec - should go into 16 | atmclip.h */ 17 | #define ATMARP_MAX_UNRES_PACKETS 5 /* queue that many packets while 18 | waiting for the resolver */ 19 | 20 | 21 | #define ATMARPD_CTRL _IO('a',ATMIOC_CLIP+1) /* become atmarpd ctrl sock */ 22 | #define ATMARP_MKIP _IO('a',ATMIOC_CLIP+2) /* attach socket to IP */ 23 | #define ATMARP_SETENTRY _IO('a',ATMIOC_CLIP+3) /* fill or hide ARP entry */ 24 | #define ATMARP_ENCAP _IO('a',ATMIOC_CLIP+5) /* change encapsulation */ 25 | 26 | 27 | enum atmarp_ctrl_type { 28 | act_invalid, /* catch uninitialized structures */ 29 | act_need, /* need address resolution */ 30 | act_up, /* interface is coming up */ 31 | act_down, /* interface is going down */ 32 | act_change /* interface configuration has changed */ 33 | }; 34 | 35 | struct atmarp_ctrl { 36 | enum atmarp_ctrl_type type; /* message type */ 37 | int itf_num;/* interface number (if present) */ 38 | __be32 ip; /* IP address (act_need only) */ 39 | }; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /linux-headers/include/linux/errqueue.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_ERRQUEUE_H 2 | #define _LINUX_ERRQUEUE_H 3 | 4 | #include 5 | 6 | struct sock_extended_err { 7 | __u32 ee_errno; 8 | __u8 ee_origin; 9 | __u8 ee_type; 10 | __u8 ee_code; 11 | __u8 ee_pad; 12 | __u32 ee_info; 13 | __u32 ee_data; 14 | }; 15 | 16 | #define SO_EE_ORIGIN_NONE 0 17 | #define SO_EE_ORIGIN_LOCAL 1 18 | #define SO_EE_ORIGIN_ICMP 2 19 | #define SO_EE_ORIGIN_ICMP6 3 20 | #define SO_EE_ORIGIN_TXSTATUS 4 21 | #define SO_EE_ORIGIN_TIMESTAMPING SO_EE_ORIGIN_TXSTATUS 22 | 23 | #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1)) 24 | 25 | /** 26 | * struct scm_timestamping - timestamps exposed through cmsg 27 | * 28 | * The timestamping interfaces SO_TIMESTAMPING, MSG_TSTAMP_* 29 | * communicate network timestamps by passing this struct in a cmsg with 30 | * recvmsg(). See Documentation/networking/timestamping.txt for details. 31 | */ 32 | struct scm_timestamping { 33 | struct timespec ts[3]; 34 | }; 35 | 36 | /* The type of scm_timestamping, passed in sock_extended_err ee_info. 37 | * This defines the type of ts[0]. For SCM_TSTAMP_SND only, if ts[0] 38 | * is zero, then this is a hardware timestamp and recorded in ts[2]. 39 | */ 40 | enum { 41 | SCM_TSTAMP_SND, /* driver passed skb to NIC, or HW */ 42 | SCM_TSTAMP_SCHED, /* data entered the packet scheduler */ 43 | SCM_TSTAMP_ACK, /* data acknowledged by peer */ 44 | }; 45 | 46 | #endif /* _LINUX_ERRQUEUE_H */ 47 | -------------------------------------------------------------------------------- /linux-headers/include/linux/reboot.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_REBOOT_H 2 | #define _LINUX_REBOOT_H 3 | 4 | /* 5 | * Magic values required to use _reboot() system call. 6 | */ 7 | 8 | #define LINUX_REBOOT_MAGIC1 0xfee1dead 9 | #define LINUX_REBOOT_MAGIC2 672274793 10 | #define LINUX_REBOOT_MAGIC2A 85072278 11 | #define LINUX_REBOOT_MAGIC2B 369367448 12 | #define LINUX_REBOOT_MAGIC2C 537993216 13 | 14 | 15 | /* 16 | * Commands accepted by the _reboot() system call. 17 | * 18 | * RESTART Restart system using default command and mode. 19 | * HALT Stop OS and give system control to ROM monitor, if any. 20 | * CAD_ON Ctrl-Alt-Del sequence causes RESTART command. 21 | * CAD_OFF Ctrl-Alt-Del sequence sends SIGINT to init task. 22 | * POWER_OFF Stop OS and remove all power from system, if possible. 23 | * RESTART2 Restart system using given command string. 24 | * SW_SUSPEND Suspend system using software suspend if compiled in. 25 | * KEXEC Restart system using a previously loaded Linux kernel 26 | */ 27 | 28 | #define LINUX_REBOOT_CMD_RESTART 0x01234567 29 | #define LINUX_REBOOT_CMD_HALT 0xCDEF0123 30 | #define LINUX_REBOOT_CMD_CAD_ON 0x89ABCDEF 31 | #define LINUX_REBOOT_CMD_CAD_OFF 0x00000000 32 | #define LINUX_REBOOT_CMD_POWER_OFF 0x4321FEDC 33 | #define LINUX_REBOOT_CMD_RESTART2 0xA1B2C3D4 34 | #define LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2 35 | #define LINUX_REBOOT_CMD_KEXEC 0x45584543 36 | 37 | 38 | 39 | #endif /* _LINUX_REBOOT_H */ 40 | -------------------------------------------------------------------------------- /linux-headers/include/linux/romfs_fs.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_ROMFS_FS_H 2 | #define __LINUX_ROMFS_FS_H 3 | 4 | #include 5 | #include 6 | 7 | /* The basic structures of the romfs filesystem */ 8 | 9 | #define ROMBSIZE BLOCK_SIZE 10 | #define ROMBSBITS BLOCK_SIZE_BITS 11 | #define ROMBMASK (ROMBSIZE-1) 12 | #define ROMFS_MAGIC 0x7275 13 | 14 | #define ROMFS_MAXFN 128 15 | 16 | #define __mkw(h,l) (((h)&0x00ff)<< 8|((l)&0x00ff)) 17 | #define __mkl(h,l) (((h)&0xffff)<<16|((l)&0xffff)) 18 | #define __mk4(a,b,c,d) cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d))) 19 | #define ROMSB_WORD0 __mk4('-','r','o','m') 20 | #define ROMSB_WORD1 __mk4('1','f','s','-') 21 | 22 | /* On-disk "super block" */ 23 | 24 | struct romfs_super_block { 25 | __be32 word0; 26 | __be32 word1; 27 | __be32 size; 28 | __be32 checksum; 29 | char name[0]; /* volume name */ 30 | }; 31 | 32 | /* On disk inode */ 33 | 34 | struct romfs_inode { 35 | __be32 next; /* low 4 bits see ROMFH_ */ 36 | __be32 spec; 37 | __be32 size; 38 | __be32 checksum; 39 | char name[0]; 40 | }; 41 | 42 | #define ROMFH_TYPE 7 43 | #define ROMFH_HRD 0 44 | #define ROMFH_DIR 1 45 | #define ROMFH_REG 2 46 | #define ROMFH_SYM 3 47 | #define ROMFH_BLK 4 48 | #define ROMFH_CHR 5 49 | #define ROMFH_SCK 6 50 | #define ROMFH_FIF 7 51 | #define ROMFH_EXEC 8 52 | 53 | /* Alignment */ 54 | 55 | #define ROMFH_SIZE 16 56 | #define ROMFH_PAD (ROMFH_SIZE-1) 57 | #define ROMFH_MASK (~ROMFH_PAD) 58 | 59 | #endif 60 | --------------------------------------------------------------------------------