History

netfilter: inline xt_hashlimit, ebt_802_3 and xt_physdev headers

Three netfilter headers are only included once. Inline their contents at those sites and remove them.

Jeremy Sowden committed 7 years ago

Commit 85cfbc21 parent f5d65c16 files · +16 −35Browse files

Showing the changes to include/linux (3 of 6 files). Show all

Unified · Split

3 files
  1. include/linux/netfilter/xt_hashlimit.h +0 −11
  2. include/linux/netfilter/xt_physdev.h +0 −8
  3. include/linux/netfilter_bridge/ebt_802_3.h +0 −12
include/linux/netfilter/xt_hashlimit.h+0−11
@@ -1,11 +0,0 @@
1−/* SPDX-License-Identifier: GPL-2.0 */
2−#ifndef _XT_HASHLIMIT_H
3−#define _XT_HASHLIMIT_H
4−
5−#include <uapi/linux/netfilter/xt_hashlimit.h>
6−
7−#define XT_HASHLIMIT_ALL (XT_HASHLIMIT_HASH_DIP | XT_HASHLIMIT_HASH_DPT | \
8− XT_HASHLIMIT_HASH_SIP | XT_HASHLIMIT_HASH_SPT | \
9− XT_HASHLIMIT_INVERT | XT_HASHLIMIT_BYTES |\
10− XT_HASHLIMIT_RATE_MATCH)
11−#endif /*_XT_HASHLIMIT_H*/
include/linux/netfilter/xt_physdev.h+0−8
@@ -1,8 +0,0 @@
1−/* SPDX-License-Identifier: GPL-2.0 */
2−#ifndef _XT_PHYSDEV_H
3−#define _XT_PHYSDEV_H
4−
5−#include <linux/if.h>
6−#include <uapi/linux/netfilter/xt_physdev.h>
7−
8−#endif /*_XT_PHYSDEV_H*/
include/linux/netfilter_bridge/ebt_802_3.h+0−12
@@ -1,12 +0,0 @@
1−/* SPDX-License-Identifier: GPL-2.0 */
2−#ifndef __LINUX_BRIDGE_EBT_802_3_H
3−#define __LINUX_BRIDGE_EBT_802_3_H
4−
5−#include <linux/skbuff.h>
6−#include <uapi/linux/netfilter_bridge/ebt_802_3.h>
7−
8−static inline struct ebt_802_3_hdr *ebt_802_3_hdr(const struct sk_buff *skb)
9−{
10− return (struct ebt_802_3_hdr *)skb_mac_header(skb);
11−}
12−#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t