1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/linux-3.18.21/kernel/ecnt_kernel.h
2024-07-22 01:58:46 -03:00

25 lines
1.1 KiB
C
Executable File

#ifndef _LINUX_ECNT_KENREL_H
#define _LINUX_ECNT_KENREL_H
static inline void ecnt_reset_kthread_cpus_allowed(struct task_struct *task)
{
/* Binding kernel thread to CPU0 if support VOIP */
#ifdef TCSUPPORT_VOIP
cpumask_var_t new_mask;
*(unsigned long *)new_mask = 0x1;
set_cpus_allowed_ptr(task, new_mask);
#endif
}
#define ECNT_BIN_NET_NETFILTER_TABLE_HOOK \
{ CTL_INT, NET_NF_CONNTRACK_FTP_ENABLE, "nf_conntrack_ftp_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_SIP_ENABLE, "nf_conntrack_sip_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_H323_ENABLE, "nf_conntrack_h323_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_RTSP_ENABLE, "nf_conntrack_rtsp_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_L2TP_ENABLE, "nf_conntrack_l2tp_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_IPSEC_ENABLE, "nf_conntrack_ipsec_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_PPTP_ENABLE, "nf_conntrack_pptp_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_PORTSCAN_ENABLE, "nf_conntrack_portscan_enable" },\
{ CTL_INT, NET_NF_CONNTRACK_FTP_PORT, "nf_conntrack_ftp_port" },\
{ CTL_INT, NET_NF_CONNTRACK_ESP_TIMEOUT, "nf_conntrack_esp_timeout" },\
#endif