diff options
| author | Steve French <sfrench@us.ibm.com> | 2005-11-10 18:34:57 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2005-11-10 18:34:57 -0500 |
| commit | 9551583e55e26a0940894828c2d1066e9276325e (patch) | |
| tree | ff412949400da94aa788bd094ced2138e9175935 /include/linux | |
| parent | a2653ebab3a96c6e6183360821faa492c1f88c3f (diff) | |
| parent | 985834a1c3a2e9639145bd8ea16af6e25f2143ad (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/genetlink.h | 51 | ||||
| -rw-r--r-- | include/linux/ide.h | 5 | ||||
| -rw-r--r-- | include/linux/if_ether.h | 4 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 7 | ||||
| -rw-r--r-- | include/linux/netfilter/nf_conntrack_common.h | 159 | ||||
| -rw-r--r-- | include/linux/netfilter/nf_conntrack_ftp.h | 44 | ||||
| -rw-r--r-- | include/linux/netfilter/nf_conntrack_sctp.h | 27 | ||||
| -rw-r--r-- | include/linux/netfilter/nf_conntrack_tcp.h | 56 | ||||
| -rw-r--r-- | include/linux/netfilter/nf_conntrack_tuple_common.h | 13 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack.h | 152 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack_ftp.h | 39 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack_icmp.h | 9 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack_sctp.h | 21 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack_tcp.h | 47 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack_tuple.h | 10 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv6.h | 1 | ||||
| -rw-r--r-- | include/linux/netlink.h | 24 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 3 | ||||
| -rw-r--r-- | include/linux/skbuff.h | 46 | ||||
| -rw-r--r-- | include/linux/sysctl.h | 37 |
20 files changed, 480 insertions, 275 deletions
diff --git a/include/linux/genetlink.h b/include/linux/genetlink.h new file mode 100644 index 000000000000..84f12a41dc01 --- /dev/null +++ b/include/linux/genetlink.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | #ifndef __LINUX_GENERIC_NETLINK_H | ||
| 2 | #define __LINUX_GENERIC_NETLINK_H | ||
| 3 | |||
| 4 | #include <linux/netlink.h> | ||
| 5 | |||
| 6 | #define GENL_NAMSIZ 16 /* length of family name */ | ||
| 7 | |||
| 8 | #define GENL_MIN_ID NLMSG_MIN_TYPE | ||
| 9 | #define GENL_MAX_ID 1023 | ||
| 10 | |||
| 11 | struct genlmsghdr { | ||
| 12 | __u8 cmd; | ||
| 13 | __u8 version; | ||
| 14 | __u16 reserved; | ||
| 15 | }; | ||
| 16 | |||
| 17 | #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr)) | ||
| 18 | |||
| 19 | /* | ||
| 20 | * List of reserved static generic netlink identifiers: | ||
| 21 | */ | ||
| 22 | #define GENL_ID_GENERATE 0 | ||
| 23 | #define GENL_ID_CTRL NLMSG_MIN_TYPE | ||
| 24 | |||
| 25 | /************************************************************************** | ||
| 26 | * Controller | ||
| 27 | **************************************************************************/ | ||
| 28 | |||
| 29 | enum { | ||
| 30 | CTRL_CMD_UNSPEC, | ||
| 31 | CTRL_CMD_NEWFAMILY, | ||
| 32 | CTRL_CMD_DELFAMILY, | ||
| 33 | CTRL_CMD_GETFAMILY, | ||
| 34 | CTRL_CMD_NEWOPS, | ||
| 35 | CTRL_CMD_DELOPS, | ||
| 36 | CTRL_CMD_GETOPS, | ||
| 37 | __CTRL_CMD_MAX, | ||
| 38 | }; | ||
| 39 | |||
| 40 | #define CTRL_CMD_MAX (__CTRL_CMD_MAX - 1) | ||
| 41 | |||
| 42 | enum { | ||
| 43 | CTRL_ATTR_UNSPEC, | ||
| 44 | CTRL_ATTR_FAMILY_ID, | ||
| 45 | CTRL_ATTR_FAMILY_NAME, | ||
| 46 | __CTRL_ATTR_MAX, | ||
| 47 | }; | ||
| 48 | |||
| 49 | #define CTRL_ATTR_MAX (__CTRL_ATTR_MAX - 1) | ||
| 50 | |||
| 51 | #endif /* __LINUX_GENERIC_NETLINK_H */ | ||
diff --git a/include/linux/ide.h b/include/linux/ide.h index 3461abc1e854..77ae55d4c13c 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -230,6 +230,7 @@ typedef struct hw_regs_s { | |||
| 230 | int dma; /* our dma entry */ | 230 | int dma; /* our dma entry */ |
| 231 | ide_ack_intr_t *ack_intr; /* acknowledge interrupt */ | 231 | ide_ack_intr_t *ack_intr; /* acknowledge interrupt */ |
| 232 | hwif_chipset_t chipset; | 232 | hwif_chipset_t chipset; |
| 233 | struct device *dev; | ||
| 233 | } hw_regs_t; | 234 | } hw_regs_t; |
| 234 | 235 | ||
| 235 | /* | 236 | /* |
| @@ -266,6 +267,10 @@ static inline void ide_std_init_ports(hw_regs_t *hw, | |||
| 266 | 267 | ||
| 267 | #include <asm/ide.h> | 268 | #include <asm/ide.h> |
| 268 | 269 | ||
| 270 | #ifndef MAX_HWIFS | ||
| 271 | #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS | ||
| 272 | #endif | ||
| 273 | |||
| 269 | /* needed on alpha, x86/x86_64, ia64, mips, ppc32 and sh */ | 274 | /* needed on alpha, x86/x86_64, ia64, mips, ppc32 and sh */ |
| 270 | #ifndef IDE_ARCH_OBSOLETE_DEFAULTS | 275 | #ifndef IDE_ARCH_OBSOLETE_DEFAULTS |
| 271 | # define ide_default_io_base(index) (0) | 276 | # define ide_default_io_base(index) (0) |
diff --git a/include/linux/if_ether.h b/include/linux/if_ether.h index d21c305c6c64..fe26d431de87 100644 --- a/include/linux/if_ether.h +++ b/include/linux/if_ether.h | |||
| @@ -21,6 +21,8 @@ | |||
| 21 | #ifndef _LINUX_IF_ETHER_H | 21 | #ifndef _LINUX_IF_ETHER_H |
| 22 | #define _LINUX_IF_ETHER_H | 22 | #define _LINUX_IF_ETHER_H |
| 23 | 23 | ||
| 24 | #include <linux/types.h> | ||
| 25 | |||
| 24 | /* | 26 | /* |
| 25 | * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble | 27 | * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble |
| 26 | * and FCS/CRC (frame check sequence). | 28 | * and FCS/CRC (frame check sequence). |
| @@ -100,7 +102,7 @@ | |||
| 100 | struct ethhdr { | 102 | struct ethhdr { |
| 101 | unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ | 103 | unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ |
| 102 | unsigned char h_source[ETH_ALEN]; /* source ether addr */ | 104 | unsigned char h_source[ETH_ALEN]; /* source ether addr */ |
| 103 | unsigned short h_proto; /* packet type ID field */ | 105 | __be16 h_proto; /* packet type ID field */ |
| 104 | } __attribute__((packed)); | 106 | } __attribute__((packed)); |
| 105 | 107 | ||
| 106 | #ifdef __KERNEL__ | 108 | #ifdef __KERNEL__ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c6efce4a04a4..936f8b76114e 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -927,6 +927,13 @@ extern int netdev_max_backlog; | |||
| 927 | extern int weight_p; | 927 | extern int weight_p; |
| 928 | extern int netdev_set_master(struct net_device *dev, struct net_device *master); | 928 | extern int netdev_set_master(struct net_device *dev, struct net_device *master); |
| 929 | extern int skb_checksum_help(struct sk_buff *skb, int inward); | 929 | extern int skb_checksum_help(struct sk_buff *skb, int inward); |
| 930 | #ifdef CONFIG_BUG | ||
| 931 | extern void netdev_rx_csum_fault(struct net_device *dev); | ||
| 932 | #else | ||
| 933 | static inline void netdev_rx_csum_fault(struct net_device *dev) | ||
| 934 | { | ||
| 935 | } | ||
| 936 | #endif | ||
| 930 | /* rx skb timestamps */ | 937 | /* rx skb timestamps */ |
| 931 | extern void net_enable_timestamp(void); | 938 | extern void net_enable_timestamp(void); |
| 932 | extern void net_disable_timestamp(void); | 939 | extern void net_disable_timestamp(void); |
diff --git a/include/linux/netfilter/nf_conntrack_common.h b/include/linux/netfilter/nf_conntrack_common.h new file mode 100644 index 000000000000..6d39b518486b --- /dev/null +++ b/include/linux/netfilter/nf_conntrack_common.h | |||
| @@ -0,0 +1,159 @@ | |||
| 1 | #ifndef _NF_CONNTRACK_COMMON_H | ||
| 2 | #define _NF_CONNTRACK_COMMON_H | ||
| 3 | /* Connection state tracking for netfilter. This is separated from, | ||
| 4 | but required by, the NAT layer; it can also be used by an iptables | ||
| 5 | extension. */ | ||
| 6 | enum ip_conntrack_info | ||
| 7 | { | ||
| 8 | /* Part of an established connection (either direction). */ | ||
| 9 | IP_CT_ESTABLISHED, | ||
| 10 | |||
| 11 | /* Like NEW, but related to an existing connection, or ICMP error | ||
| 12 | (in either direction). */ | ||
| 13 | IP_CT_RELATED, | ||
| 14 | |||
| 15 | /* Started a new connection to track (only | ||
| 16 | IP_CT_DIR_ORIGINAL); may be a retransmission. */ | ||
| 17 | IP_CT_NEW, | ||
| 18 | |||
| 19 | /* >= this indicates reply direction */ | ||
| 20 | IP_CT_IS_REPLY, | ||
| 21 | |||
| 22 | /* Number of distinct IP_CT types (no NEW in reply dirn). */ | ||
| 23 | IP_CT_NUMBER = IP_CT_IS_REPLY * 2 - 1 | ||
| 24 | }; | ||
| 25 | |||
| 26 | /* Bitset representing status of connection. */ | ||
| 27 | enum ip_conntrack_status { | ||
| 28 | /* It's an expected connection: bit 0 set. This bit never changed */ | ||
| 29 | IPS_EXPECTED_BIT = 0, | ||
| 30 | IPS_EXPECTED = (1 << IPS_EXPECTED_BIT), | ||
| 31 | |||
| 32 | /* We've seen packets both ways: bit 1 set. Can be set, not unset. */ | ||
| 33 | IPS_SEEN_REPLY_BIT = 1, | ||
| 34 | IPS_SEEN_REPLY = (1 << IPS_SEEN_REPLY_BIT), | ||
| 35 | |||
| 36 | /* Conntrack should never be early-expired. */ | ||
| 37 | IPS_ASSURED_BIT = 2, | ||
| 38 | IPS_ASSURED = (1 << IPS_ASSURED_BIT), | ||
| 39 | |||
