p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/net/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/net/act_api.h
#ifndef __NET_ACT_API_H
#define __NET_ACT_API_H

/*
 * Public action API for classifiers/qdiscs
*/

#include <net/sch_generic.h>
#include <net/pkt_sched.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include <linux/idr_ext.h>

struct tcf_idrinfo {
	spinlock_t	lock;
	struct idr_ext	action_idr;
};

struct tc_action_ops;

struct tc_action {
	const struct tc_action_ops	*ops;
	__u32				type; /* for backward compat(TCA_OLD_COMPAT) */
	__u32				order;
	struct list_head		list;
	struct tcf_idrinfo		*idrinfo;

	u32				tcfa_index;
	int				tcfa_refcnt;
	int				tcfa_bindcnt;
	u32				tcfa_capab;
	int				tcfa_action;
	struct tcf_t			tcfa_tm;
	struct gnet_stats_basic_packed	tcfa_bstats;
	struct gnet_stats_basic_packed	tcfa_bstats_hw;
	struct gnet_stats_queue		tcfa_qstats;
	struct net_rate_estimator __rcu *tcfa_rate_est;
	spinlock_t			tcfa_lock;
	struct gnet_stats_basic_cpu __percpu *cpu_bstats;
	struct gnet_stats_basic_cpu __percpu *cpu_bstats_hw;
	struct gnet_stats_queue __percpu *cpu_qstats;
	struct tc_cookie	*act_cookie;
	struct tcf_chain	*goto_chain;
};
#define tcf_index	common.tcfa_index
#define tcf_refcnt	common.tcfa_refcnt
#define tcf_bindcnt	common.tcfa_bindcnt
#define tcf_capab	common.tcfa_capab
#define tcf_action	common.tcfa_action
#define tcf_tm		common.tcfa_tm
#define tcf_bstats	common.tcfa_bstats
#define tcf_qstats	common.tcfa_qstats
#define tcf_rate_est	common.tcfa_rate_est
#define tcf_lock	common.tcfa_lock

/* Update lastuse only if needed, to avoid dirtying a cache line.
 * We use a temp variable to avoid fetching jiffies twice.
 */
static inline void tcf_lastuse_update(struct tcf_t *tm)
{
	unsigned long now = jiffies;

	if (tm->lastuse != now)
		tm->lastuse = now;
	if (unlikely(!tm->firstuse))
		tm->firstuse = now;
}

static inline void tcf_tm_dump(struct tcf_t *dtm, const struct tcf_t *stm)
{
	dtm->install = jiffies_to_clock_t(jiffies - stm->install);
	dtm->lastuse = jiffies_to_clock_t(jiffies - stm->lastuse);
	dtm->firstuse = jiffies_to_clock_t(jiffies - stm->firstuse);
	dtm->expires = jiffies_to_clock_t(stm->expires);
}

#ifdef CONFIG_NET_CLS_ACT

#define ACT_P_CREATED 1
#define ACT_P_DELETED 1

struct tc_action_ops {
	struct list_head head;
	char    kind[IFNAMSIZ];
	__u32   type; /* TBD to match kind */
	size_t	size;
	struct module		*owner;
	int     (*act)(struct sk_buff *, const struct tc_action *,
		       struct tcf_result *);
	int     (*dump)(struct sk_buff *, struct tc_action *, int, int);
	void	(*cleanup)(struct tc_action *, int bind);
	int     (*lookup)(struct net *, struct tc_action **, u32);
	int     (*init)(struct net *net, struct nlattr *nla,
			struct nlattr *est, struct tc_action **act, int ovr,
			int bind);
	int     (*walk)(struct net *, struct sk_buff *,
			struct netlink_callback *, int, const struct tc_action_ops *);
	void	(*stats_update)(struct tc_action *, u64, u32, u64, bool);
	struct net_device *(*get_dev)(const struct tc_action *a);
};

struct tc_action_net {
	struct tcf_idrinfo *idrinfo;
	const struct tc_action_ops *ops;
};

static inline
int tc_action_net_init(struct tc_action_net *tn,
		       const struct tc_action_ops *ops)
{
	int err = 0;

	tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL);
	if (!tn->idrinfo)
		return -ENOMEM;
	tn->ops = ops;
	spin_lock_init(&tn->idrinfo->lock);
	idr_init_ext(&tn->idrinfo->action_idr);
	return err;
}

void tcf_idrinfo_destroy(const struct tc_action_ops *ops,
			 struct tcf_idrinfo *idrinfo);

static inline void tc_action_net_exit(struct tc_action_net *tn)
{
	rtnl_lock();
	tcf_idrinfo_destroy(tn->ops, tn->idrinfo);
	rtnl_unlock();
	kfree(tn->idrinfo);
}

int tcf_generic_walker(struct tc_action_net *tn, struct sk_buff *skb,
		       struct netlink_callback *cb, int type,
		       const struct tc_action_ops *ops);
int tcf_idr_search(struct tc_action_net *tn, struct tc_action **a, u32 index);
bool tcf_idr_check(struct tc_action_net *tn, u32 index, struct tc_action **a,
		    int bind);
int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
		   struct tc_action **a, const struct tc_action_ops *ops,
		   int bind, bool cpustats);
void tcf_idr_cleanup(struct tc_action *a, struct nlattr *est);
void tcf_idr_insert(struct tc_action_net *tn, struct tc_action *a);

int __tcf_idr_release(struct tc_action *a, bool bind, bool strict);

static inline int tcf_idr_release(struct tc_action *a, bool bind)
{
	return __tcf_idr_release(a, bind, false);
}

int tcf_register_action(struct tc_action_ops *a, struct pernet_operations *ops);
int tcf_unregister_action(struct tc_action_ops *a, struct pernet_operations *ops);
int tcf_action_destroy(struct list_head *actions, int bind);
int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions,
		    int nr_actions, struct tcf_result *res);
int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
		    struct nlattr *est, char *name, int ovr, int bind,
		    struct list_head *actions);
struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
				    struct nlattr *nla, struct nlattr *est,
				    char *name, int ovr, int bind);
int tcf_action_dump(struct sk_buff *skb, struct list_head *, int, int);
int tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int, int);
int tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int, int);
int tcf_action_copy_stats(struct sk_buff *, struct tc_action *, int);

#endif /* CONFIG_NET_CLS_ACT */

static inline void tcf_action_stats_update(struct tc_action *a, u64 bytes,
					   u64 packets, u64 lastuse, bool hw)
{
#ifdef CONFIG_NET_CLS_ACT
	if (!a->ops->stats_update)
		return;

	a->ops->stats_update(a, bytes, packets, lastuse, hw);
#endif
}

typedef int tc_setup_cb_t(enum tc_setup_type type,
			  void *type_data, void *cb_priv);

#endif
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
9p
--
January 19 2024 08:12:51
0 / 0
0755
bluetooth
--
January 19 2024 08:12:51
0 / 0
0755
caif
--
January 19 2024 08:12:51
0 / 0
0755
irda
--
January 19 2024 08:12:51
0 / 0
0755
iucv
--
January 19 2024 08:12:51
0 / 0
0755
netfilter
--
January 19 2024 08:12:51
0 / 0
0755
netns
--
January 19 2024 08:12:51
0 / 0
0755
nfc
--
January 19 2024 08:12:51
0 / 0
0755
phonet
--
January 19 2024 08:12:51
0 / 0
0755
sctp
--
January 19 2024 08:12:51
0 / 0
0755
tc_act
--
January 19 2024 08:12:51
0 / 0
0755
6lowpan.h
9.63 KB
November 06 2023 09:15:52
0 / 0
0644
act_api.h
5.642 KB
November 06 2023 09:15:52
0 / 0
0644
addrconf.h
12.438 KB
November 06 2023 09:15:52
0 / 0
0644
af_ieee802154.h
1.554 KB
November 06 2023 09:15:52
0 / 0
0644
af_rxrpc.h
1.928 KB
November 06 2023 09:15:52
0 / 0
0644
af_unix.h
2.163 KB
November 06 2023 09:15:52
0 / 0
0644
af_vsock.h
7.13 KB
November 06 2023 09:15:52
0 / 0
0644
ah.h
0.425 KB
November 06 2023 09:15:52
0 / 0
0644
arp.h
2.117 KB
November 06 2023 09:15:52
0 / 0
0644
atmclip.h
1.441 KB
November 06 2023 09:15:52
0 / 0
0644
ax25.h
15.093 KB
November 06 2023 09:15:52
0 / 0
0644
ax88796.h
0.975 KB
November 06 2023 09:15:52
0 / 0
0644
bond_3ad.h
10.221 KB
November 06 2023 09:15:52
0 / 0
0644
bond_alb.h
6.598 KB
November 06 2023 09:15:52
0 / 0
0644
bond_options.h
3.916 KB
November 06 2023 09:15:52
0 / 0
0644
bonding.h
19.34 KB
November 06 2023 09:15:52
0 / 0
0644
busy_poll.h
3.229 KB
November 06 2023 09:15:52
0 / 0
0644
cfg80211-wext.h
1.953 KB
November 06 2023 09:15:52
0 / 0
0644
cfg80211.h
260.457 KB
November 06 2023 09:15:52
0 / 0
0644
cfg802154.h
10.812 KB
November 06 2023 09:15:52
0 / 0
0644
checksum.h
4.024 KB
November 06 2023 09:15:52
0 / 0
0644
cipso_ipv4.h
7.889 KB
November 06 2023 09:15:52
0 / 0
0644
cls_cgroup.h
1.562 KB
November 06 2023 09:15:52
0 / 0
0644
codel.h
5.646 KB
November 06 2023 09:15:52
0 / 0
0644
codel_impl.h
7.976 KB
November 06 2023 09:15:52
0 / 0
0644
codel_qdisc.h
2.903 KB
November 06 2023 09:15:52
0 / 0
0644
compat.h
2.079 KB
November 06 2023 09:15:52
0 / 0
0644
datalink.h
0.471 KB
November 06 2023 09:15:52
0 / 0
0644
dcbevent.h
1.263 KB
November 06 2023 09:15:52
0 / 0
0644
dcbnl.h
4.451 KB
November 06 2023 09:15:52
0 / 0
0644
devlink.h
23.734 KB
November 06 2023 09:15:52
0 / 0
0644
dn.h
6.986 KB
November 06 2023 09:15:52
0 / 0
0644
dn_dev.h
5.424 KB
November 06 2023 09:15:52
0 / 0
0644
dn_fib.h
4.033 KB
November 06 2023 09:15:52
0 / 0
0644
dn_neigh.h
0.805 KB
November 06 2023 09:15:52
0 / 0
0644
dn_nsp.h
5.966 KB
November 06 2023 09:15:52
0 / 0
0644
dn_route.h
4.283 KB
November 06 2023 09:15:52
0 / 0
0644
dsa.h
4.265 KB
November 06 2023 09:15:52
0 / 0
0644
dsfield.h
1.074 KB
November 06 2023 09:15:52
0 / 0
0644
dst.h
14.609 KB
November 06 2023 09:15:52
0 / 0
0644
dst_cache.h
2.494 KB
November 06 2023 09:15:52
0 / 0
0644
dst_metadata.h
4.887 KB
November 06 2023 09:15:52
0 / 0
0644
dst_ops.h
2.022 KB
November 06 2023 09:15:52
0 / 0
0644
esp.h
0.35 KB
November 06 2023 09:15:52
0 / 0
0644
ethoc.h
0.49 KB
November 06 2023 09:15:52
0 / 0
0644
failover.h
1.15 KB
November 06 2023 09:15:52
0 / 0
0644
fib_notifier.h
1.286 KB
November 06 2023 09:15:52
0 / 0
0644
fib_rules.h
3.646 KB
November 06 2023 09:15:52
0 / 0
0644
firewire.h
0.583 KB
November 06 2023 09:15:52
0 / 0
0644
flow.h
7.558 KB
November 06 2023 09:15:52
0 / 0
0644
flow_dissector.h
7.886 KB
November 06 2023 09:15:52
0 / 0
0644
flowcache.h
0.548 KB
November 06 2023 09:15:52
0 / 0
0644
fou.h
0.487 KB
November 06 2023 09:15:52
0 / 0
0644
fq.h
2.67 KB
November 06 2023 09:15:52
0 / 0
0644
fq_impl.h
6.898 KB
November 06 2023 09:15:52
0 / 0
0644
garp.h
2.634 KB
November 06 2023 09:15:52
0 / 0
0644
gen_stats.h
2.479 KB
November 06 2023 09:15:52
0 / 0
0644
genetlink.h
11.257 KB
November 06 2023 09:15:52
0 / 0
0644
geneve.h
1.765 KB
November 06 2023 09:15:52
0 / 0
0644
gre.h
3.229 KB
November 06 2023 09:15:52
0 / 0
0644
gro_cells.h
2.051 KB
November 06 2023 09:15:52
0 / 0
0644
gue.h
3.188 KB
November 06 2023 09:15:52
0 / 0
0644
icmp.h
1.56 KB
November 06 2023 09:15:52
0 / 0
0644
ieee80211_radiotap.h
13.038 KB
November 06 2023 09:15:52
0 / 0
0644
ieee802154.h
5.59 KB
November 06 2023 09:15:52
0 / 0
0644
ieee802154_netdev.h
9.139 KB
November 06 2023 09:15:52
0 / 0
0644
if_inet6.h
6.198 KB
November 06 2023 09:15:52
0 / 0
0644
ife.h
0.991 KB
November 06 2023 09:15:52
0 / 0
0644
inet6_connection_sock.h
1.403 KB
November 06 2023 09:15:52
0 / 0
0644
inet6_hashtables.h
2.922 KB
November 06 2023 09:15:52
0 / 0
0644
inet_common.h
1.544 KB
November 06 2023 09:15:52
0 / 0
0644
inet_connection_sock.h
11.056 KB
November 06 2023 09:15:52
0 / 0
0644
inet_ecn.h
6.059 KB
November 06 2023 09:15:52
0 / 0
0644
inet_frag.h
4.844 KB
November 06 2023 09:15:52
0 / 0
0644
inet_hashtables.h
12.311 KB
November 06 2023 09:15:52
0 / 0
0644
inet_sock.h
7.381 KB
November 06 2023 09:15:52
0 / 0
0644
inet_timewait_sock.h
6.357 KB
November 06 2023 09:15:52
0 / 0
0644
inetpeer.h
4.229 KB
November 06 2023 09:15:52
0 / 0
0644
ip.h
16.709 KB
November 06 2023 09:15:52
0 / 0
0644
ip6_checksum.h
2.905 KB
November 06 2023 09:15:52
0 / 0
0644
ip6_fib.h
8.613 KB
November 06 2023 09:15:52
0 / 0
0644
ip6_route.h
5.687 KB
November 06 2023 09:15:52
0 / 0
0644
ip6_tunnel.h
3.153 KB
November 06 2023 09:15:52
0 / 0
0644
ip_fib.h
11.092 KB
November 06 2023 09:15:52
0 / 0
0644
ip_tunnels.h
12.486 KB
November 06 2023 09:15:52
0 / 0
0644
ip_vs.h
45.54 KB
November 06 2023 09:15:52
0 / 0
0644
ipcomp.h
0.605 KB
November 06 2023 09:15:52
0 / 0
0644
ipconfig.h
0.754 KB
November 06 2023 09:15:52
0 / 0
0644
ipv6.h
26.433 KB
November 06 2023 09:15:52
0 / 0
0644
ipx.h
3.716 KB
November 06 2023 09:15:52
0 / 0
0644
iw_handler.h
20.872 KB
November 06 2023 09:15:52
0 / 0
0644
lapb.h
4.869 KB
November 06 2023 09:15:52
0 / 0
0644
lib80211.h
4.172 KB
November 06 2023 09:15:52
0 / 0
0644
llc.h
4.432 KB
November 06 2023 09:15:52
0 / 0
0644
llc_c_ac.h
10.092 KB
November 06 2023 09:15:52
0 / 0
0644
llc_c_ev.h
11.579 KB
November 06 2023 09:15:52
0 / 0
0644
llc_c_st.h
1.709 KB
November 06 2023 09:15:52
0 / 0
0644
llc_conn.h
4.117 KB
November 06 2023 09:15:52
0 / 0
0644
llc_if.h
3.034 KB
November 06 2023 09:15:52
0 / 0
0644
llc_pdu.h
14.189 KB
November 06 2023 09:15:52
0 / 0
0644
llc_s_ac.h
1.631 KB
November 06 2023 09:15:52
0 / 0
0644
llc_s_ev.h
2.281 KB
November 06 2023 09:15:52
0 / 0
0644
llc_s_st.h
0.919 KB
November 06 2023 09:15:52
0 / 0
0644
llc_sap.h
1.175 KB
November 06 2023 09:15:52
0 / 0
0644
lwtunnel.h
4.005 KB
November 06 2023 09:15:52
0 / 0
0644
mac80211.h
248.911 KB
November 06 2023 09:15:52
0 / 0
0644
mac802154.h
15.267 KB
November 06 2023 09:15:52
0 / 0
0644
mip6.h
1.579 KB
November 06 2023 09:15:52
0 / 0
0644
mld.h
2.765 KB
November 06 2023 09:15:52
0 / 0
0644
mpls.h
0.91 KB
November 06 2023 09:15:52
0 / 0
0644
mrp.h
3.011 KB
November 06 2023 09:15:52
0 / 0
0644
ndisc.h
14.677 KB
November 06 2023 09:15:52
0 / 0
0644
neighbour.h
12.923 KB
November 06 2023 09:15:52
0 / 0
0644
net_failover.h
0.999 KB
November 06 2023 09:15:52
0 / 0
0644
net_namespace.h
11.888 KB
November 06 2023 09:15:52
0 / 0
0644
net_ratelimit.h
0.177 KB
November 06 2023 09:15:52
0 / 0
0644
netevent.h
0.852 KB
November 06 2023 09:15:52
0 / 0
0644
netlabel.h
17.24 KB
November 06 2023 09:15:52
0 / 0
0644
netlink.h
39.599 KB
November 06 2023 09:15:52
0 / 0
0644
netprio_cgroup.h
1.484 KB
November 06 2023 09:15:52
0 / 0
0644
netrom.h
7.916 KB
November 06 2023 09:15:52
0 / 0
0644
nexthop.h
0.802 KB
November 06 2023 09:15:52
0 / 0
0644
nl802154.h
12.095 KB
November 06 2023 09:15:52
0 / 0
0644
p8022.h
0.431 KB
November 06 2023 09:15:52
0 / 0
0644
page_pool.h
4.392 KB
November 06 2023 09:15:52
0 / 0
0644
ping.h
1.386 KB
November 06 2023 09:15:52
0 / 0
0644
pkt_cls.h
19.325 KB
November 06 2023 09:15:52
0 / 0
0644
pkt_sched.h
4.008 KB
November 06 2023 09:15:52
0 / 0
0644
pptp.h
0.948 KB
November 06 2023 09:15:52
0 / 0
0644
protocol.h
3.932 KB
November 06 2023 09:15:52
0 / 0
0644
psample.h
0.785 KB
November 06 2023 09:15:52
0 / 0
0644
psnap.h
0.318 KB
November 06 2023 09:15:52
0 / 0
0644
raw.h
1.864 KB
November 06 2023 09:15:52
0 / 0
0644
rawv6.h
0.546 KB
November 06 2023 09:15:52
0 / 0
0644
red.h
10.247 KB
November 06 2023 09:15:52
0 / 0
0644
regulatory.h
10.886 KB
November 06 2023 09:15:52
0 / 0
0644
request_sock.h
7.634 KB
November 06 2023 09:15:52
0 / 0
0644
rose.h
7.941 KB
November 06 2023 09:15:52
0 / 0
0644
route.h
9.364 KB
November 06 2023 09:15:52
0 / 0
0644
rtnetlink.h
6.603 KB
November 06 2023 09:15:52
0 / 0
0644
sch_generic.h
24.541 KB
November 06 2023 09:15:52
0 / 0
0644
sch_generic_kabi.h
4.322 KB
November 06 2023 09:15:52
0 / 0
0644
scm.h
3.479 KB
November 06 2023 09:15:52
0 / 0
0644
secure_seq.h
1.037 KB
November 06 2023 09:15:52
0 / 0
0644
slhc_vj.h
6.627 KB
November 06 2023 09:15:52
0 / 0
0644
snmp.h
5.956 KB
November 06 2023 09:15:52
0 / 0
0644
sock.h
67.533 KB
November 06 2023 09:15:52
0 / 0
0644
sock_reuseport.h
0.542 KB
November 06 2023 09:15:52
0 / 0
0644
stp.h
0.35 KB
November 06 2023 09:15:52
0 / 0
0644
switchdev.h
9.045 KB
November 06 2023 09:15:52
0 / 0
0644
tcp.h
52.118 KB
November 06 2023 09:15:52
0 / 0
0644
tcp_memcontrol.h
0.597 KB
November 06 2023 09:15:52
0 / 0
0644
tcp_states.h
1.213 KB
November 06 2023 09:15:52
0 / 0
0644
timewait_sock.h
1.199 KB
November 06 2023 09:15:52
0 / 0
0644
transp_v6.h
1.757 KB
November 06 2023 09:15:52
0 / 0
0644
tso.h
0.436 KB
November 06 2023 09:15:52
0 / 0
0644
tun_proto.h
0.965 KB
November 06 2023 09:15:52
0 / 0
0644
udp.h
10.956 KB
November 06 2023 09:15:52
0 / 0
0644
udp_tunnel.h
5.218 KB
November 06 2023 09:15:52
0 / 0
0644
udplite.h
3.808 KB
November 06 2023 09:15:52
0 / 0
0644
vsock_addr.h
1.048 KB
November 06 2023 09:15:52
0 / 0
0644
vxlan.h
11.302 KB
November 06 2023 09:15:52
0 / 0
0644
wext.h
1.474 KB
November 06 2023 09:15:52
0 / 0
0644
wimax.h
20.084 KB
November 06 2023 09:15:52
0 / 0
0644
wpan-phy.h
2.554 KB
November 06 2023 09:15:52
0 / 0
0644
x25.h
9.737 KB
November 06 2023 09:15:52
0 / 0
0644
x25device.h
0.34 KB
November 06 2023 09:15:52
0 / 0
0644
xdp.h
3.445 KB
November 06 2023 09:15:52
0 / 0
0644
xdp_sock.h
4.891 KB
November 06 2023 09:15:52
0 / 0
0644
xfrm.h
49.833 KB
November 06 2023 09:15:52
0 / 0
0644