Home
last modified time | relevance | path

Searched refs:pf (Results 1 – 25 of 76) sorted by relevance

1234

/net/lapb/
Dlapb_in.c44 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine()
47 lapb->dev, frame->pf); in lapb_state0_machine()
48 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine()
52 lapb->dev, frame->pf); in lapb_state0_machine()
54 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine()
69 lapb_dbg(1, "(%p) S0 RX SABME(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine()
72 lapb->dev, frame->pf); in lapb_state0_machine()
74 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine()
87 lapb->dev, frame->pf); in lapb_state0_machine()
88 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine()
[all …]
Dlapb_subr.c157 frame->pf = skb->data[1] & LAPB_EPF; in lapb_decode()
169 frame->pf = skb->data[1] & LAPB_EPF; in lapb_decode()
178 frame->pf = skb->data[0] & LAPB_SPF; in lapb_decode()
191 frame->pf = skb->data[0] & LAPB_SPF; in lapb_decode()
198 frame->pf = skb->data[0] & LAPB_SPF; in lapb_decode()
204 frame->pf = skb->data[0] & LAPB_SPF; in lapb_decode()
/net/ax25/
Dax25_std_in.c39 static int ax25_std_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int t… in ax25_std_state1_machine() argument
45 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine()
51 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine()
55 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_std_state1_machine()
59 if (pf) { in ax25_std_state1_machine()
81 if (pf) { in ax25_std_state1_machine()
103 static int ax25_std_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int t… in ax25_std_state2_machine() argument
108 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_std_state2_machine()
112 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state2_machine()
118 if (pf) in ax25_std_state2_machine()
[all …]
Dax25_ds_in.c32 static int ax25_ds_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int ty… in ax25_ds_state1_machine() argument
38 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state1_machine()
44 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state1_machine()
48 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_ds_state1_machine()
82 if (pf) in ax25_ds_state1_machine()
87 if (pf) in ax25_ds_state1_machine()
100 static int ax25_ds_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int ty… in ax25_ds_state2_machine() argument
110 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state2_machine()
117 if (pf) { in ax25_ds_state2_machine()
127 if (pf) { in ax25_ds_state2_machine()
[all …]
Dax25_subr.c97 int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) in ax25_decode() argument
103 *ns = *nr = *pf = 0; in ax25_decode()
110 *pf = frame[0] & AX25_PF; in ax25_decode()
114 *pf = frame[0] & AX25_PF; in ax25_decode()
117 *pf = frame[0] & AX25_PF; in ax25_decode()
125 *pf = frame[1] & AX25_EPF; in ax25_decode()
130 *pf = frame[1] & AX25_EPF; in ax25_decode()
134 *pf = frame[0] & AX25_PF; in ax25_decode()
/net/netfilter/
Dnf_log.c28 static struct nf_logger *__find_logger(int pf, const char *str_logger) in __find_logger() argument
34 if (loggers[pf][i] == NULL) in __find_logger()
37 log = nft_log_dereference(loggers[pf][i]); in __find_logger()
45 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set() argument
49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set()
53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set()
55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set()
79 int nf_log_register(u_int8_t pf, struct nf_logger *logger) in nf_log_register() argument
84 if (pf >= ARRAY_SIZE(init_net.nf.nf_loggers)) in nf_log_register()
89 if (pf == NFPROTO_UNSPEC) { in nf_log_register()
[all …]
Dnf_sockopt.c32 if (ops->pf == reg->pf in nf_register_sockopt()
62 static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, u_int8_t pf, in nf_sockopt_find() argument
69 if (ops->pf == pf) { in nf_sockopt_find()
93 static int nf_sockopt(struct sock *sk, u_int8_t pf, int val, in nf_sockopt() argument
99 ops = nf_sockopt_find(sk, pf, val, get); in nf_sockopt()
112 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_setsockopt() argument
115 return nf_sockopt(sk, pf, val, opt, &len, 0); in nf_setsockopt()
119 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_getsockopt() argument
122 return nf_sockopt(sk, pf, val, opt, len, 1); in nf_getsockopt()
127 static int compat_nf_sockopt(struct sock *sk, u_int8_t pf, int val, in compat_nf_sockopt() argument
[all …]
Dcore.c267 nf_hook_entry_head(struct net *net, int pf, unsigned int hooknum, in nf_hook_entry_head() argument
270 switch (pf) { in nf_hook_entry_head()
314 static int __nf_register_net_hook(struct net *net, int pf, in __nf_register_net_hook() argument
320 if (pf == NFPROTO_NETDEV) { in __nf_register_net_hook()
330 pp = nf_hook_entry_head(net, pf, reg->hooknum, reg->dev); in __nf_register_net_hook()
348 if (pf == NFPROTO_NETDEV && reg->hooknum == NF_NETDEV_INGRESS) in __nf_register_net_hook()
352 static_key_slow_inc(&nf_hooks_needed[pf][reg->hooknum]); in __nf_register_net_hook()
386 static void __nf_unregister_net_hook(struct net *net, int pf, in __nf_unregister_net_hook() argument
392 pp = nf_hook_entry_head(net, pf, reg->hooknum, reg->dev); in __nf_unregister_net_hook()
406 if (pf == NFPROTO_NETDEV && reg->hooknum == NF_NETDEV_INGRESS) in __nf_unregister_net_hook()
[all …]
Dnf_queue.c174 switch (state->pf) { in __nf_queue()
206 switch (entry->state.pf) { in __nf_queue()
272 static struct nf_hook_entries *nf_hook_entries_head(const struct net *net, u8 pf, u8 hooknum) in nf_hook_entries_head() argument
274 switch (pf) { in nf_hook_entries_head()
300 u8 pf; in nf_reinject() local
303 pf = entry->state.pf; in nf_reinject()
305 hooks = nf_hook_entries_head(net, pf, entry->state.hook); in nf_reinject()
Dnf_conntrack_proto.c53 u16 pf, u8 protonum, in nf_l4proto_log_invalid() argument
67 nf_log_packet(net, pf, 0, skb, NULL, NULL, NULL, in nf_l4proto_log_invalid()
209 .pf = NFPROTO_IPV4,
215 .pf = NFPROTO_IPV4,
221 .pf = NFPROTO_IPV4,
227 .pf = NFPROTO_IPV4,
296 .pf = PF_INET,
356 .pf = NFPROTO_IPV6,
404 .pf = NFPROTO_IPV6,
410 .pf = NFPROTO_IPV6,
[all …]
Dnf_conntrack_proto_icmp.c84 if (state->pf != NFPROTO_IPV4) in nf_conntrack_icmp_packet()
123 state->pf, state->net, &origtuple)) in nf_conntrack_inet_error()
170 if (state->pf == AF_INET) { in nf_conntrack_inet_error()
171 nf_l4proto_log_invalid(skb, state->net, state->pf, in nf_conntrack_inet_error()
175 } else if (state->pf == AF_INET6) { in nf_conntrack_inet_error()
176 nf_l4proto_log_invalid(skb, state->net, state->pf, in nf_conntrack_inet_error()
198 nf_l4proto_log_invalid(skb, state->net, state->pf, in icmp_error_log()
Dnfnetlink_log.c446 u_int8_t pf, in __build_packet_message() argument
467 nfmsg->nfgen_family = pf; in __build_packet_message()
488 if (pf == PF_BRIDGE) { in __build_packet_message()
525 if (pf == PF_BRIDGE) { in __build_packet_message()
634 if ((pf == NFPROTO_NETDEV || pf == NFPROTO_BRIDGE) && in __build_packet_message()
675 u_int8_t pf, in nfulnl_log_packet() argument
745 if (pf == NFPROTO_NETDEV || pf == NFPROTO_BRIDGE) in nfulnl_log_packet()
793 __build_packet_message(log, inst, skb, data_len, pf, in nfulnl_log_packet()
886 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config() local
892 return nf_log_bind_pf(net, pf, &nfulnl_logger); in nfulnl_recv_config()
[all …]
Dnf_nat_proto.c742 .pf = NFPROTO_IPV4,
749 .pf = NFPROTO_IPV4,
756 .pf = NFPROTO_IPV4,
763 .pf = NFPROTO_IPV4,
771 return nf_nat_register_fn(net, ops->pf, ops, nf_nat_ipv4_ops, in nf_nat_ipv4_register_fn()
778 nf_nat_unregister_fn(net, ops->pf, ops, ARRAY_SIZE(nf_nat_ipv4_ops)); in nf_nat_ipv4_unregister_fn()
981 .pf = NFPROTO_IPV6,
988 .pf = NFPROTO_IPV6,
995 .pf = NFPROTO_IPV6,
1002 .pf = NFPROTO_IPV6,
[all …]
Dnf_conntrack_proto_udp.c41 nf_l4proto_log_invalid(skb, state->net, state->pf, in udp_error_log()
76 nf_checksum(skb, state->hook, dataoff, IPPROTO_UDP, state->pf)) { in udp_error()
130 nf_l4proto_log_invalid(skb, state->net, state->pf, in udplite_error_log()
168 state->pf)) { in udplite_error()
Dnf_log_netdev.c15 static void nf_log_netdev_packet(struct net *net, u_int8_t pf, in nf_log_netdev_packet() argument
23 nf_log_l2packet(net, pf, skb->protocol, hooknum, skb, in, out, in nf_log_netdev_packet()
/net/sched/
Dcls_basic.c35 struct tc_basic_pcnt __percpu *pf; member
47 __this_cpu_inc(f->pf->rcnt); in basic_classify()
50 __this_cpu_inc(f->pf->rhit); in basic_classify()
92 free_percpu(f->pf); in __basic_delete_filter()
213 fnew->pf = alloc_percpu(struct tc_basic_pcnt); in basic_change()
214 if (!fnew->pf) { in basic_change()
241 free_percpu(fnew->pf); in basic_change()
301 struct tc_basic_pcnt *pf = per_cpu_ptr(f->pf, cpu); in basic_dump() local
303 gpf.rcnt += pf->rcnt; in basic_dump()
304 gpf.rhit += pf->rhit; in basic_dump()
Dcls_matchall.c22 struct tc_matchall_pcnt __percpu *pf; member
39 __this_cpu_inc(head->pf->rhit); in mall_classify()
52 free_percpu(head->pf); in __mall_destroy()
223 new->pf = alloc_percpu(struct tc_matchall_pcnt); in mall_change()
224 if (!new->pf) { in mall_change()
250 free_percpu(new->pf); in mall_change()
371 struct tc_matchall_pcnt *pf = per_cpu_ptr(head->pf, cpu); in mall_dump() local
373 gpf.rhit += pf->rhit; in mall_dump()
Dem_ipset.c64 state.pf = NFPROTO_IPV4; in em_ipset_match()
70 state.pf = NFPROTO_IPV6; in em_ipset_match()
80 opt.family = state.pf; in em_ipset_match()
Dcls_u32.c53 struct tc_u32_pcnt __percpu *pf; member
130 __this_cpu_inc(n->pf->rcnt); in u32_classify()
163 __this_cpu_inc(n->pf->kcnts[j]); in u32_classify()
179 __this_cpu_inc(n->pf->rhit); in u32_classify()
399 free_percpu(n->pf); in u32_destroy_key()
824 new->pf = n->pf; in u32_init_knode()
1035 n->pf = __alloc_percpu(size, __alignof__(struct tc_u32_pcnt)); in u32_change()
1036 if (!n->pf) { in u32_change()
1103 free_percpu(n->pf); in u32_change()
1358 struct tc_u32_pcnt *pf = per_cpu_ptr(n->pf, cpu); in u32_dump() local
[all …]
/net/sunrpc/auth_gss/
Dgss_mech_switch.c34 struct pf_desc *pf; in gss_mech_free() local
38 pf = &gm->gm_pfs[i]; in gss_mech_free()
39 kfree(pf->auth_domain_name); in gss_mech_free()
40 pf->auth_domain_name = NULL; in gss_mech_free()
61 struct pf_desc *pf; in gss_mech_svc_setup() local
65 pf = &gm->gm_pfs[i]; in gss_mech_svc_setup()
66 pf->auth_domain_name = make_auth_domain_name(pf->name); in gss_mech_svc_setup()
68 if (pf->auth_domain_name == NULL) in gss_mech_svc_setup()
70 status = svcauth_gss_register_pseudoflavor(pf->pseudoflavor, in gss_mech_svc_setup()
71 pf->auth_domain_name); in gss_mech_svc_setup()
/net/bridge/
Dbr_netfilter_hooks.c581 u_int8_t pf; in br_nf_forward_ip() local
602 pf = NFPROTO_IPV4; in br_nf_forward_ip()
605 pf = NFPROTO_IPV6; in br_nf_forward_ip()
616 if (pf == NFPROTO_IPV4) { in br_nf_forward_ip()
622 if (pf == NFPROTO_IPV6) { in br_nf_forward_ip()
629 if (pf == NFPROTO_IPV4) in br_nf_forward_ip()
634 NF_HOOK(pf, NF_INET_FORWARD, state->net, NULL, skb, in br_nf_forward_ip()
816 u_int8_t pf; in br_nf_post_routing() local
831 pf = NFPROTO_IPV4; in br_nf_post_routing()
834 pf = NFPROTO_IPV6; in br_nf_post_routing()
[all …]
/net/ipv6/netfilter/
Dip6table_nat.c41 .pf = NFPROTO_IPV6,
47 .pf = NFPROTO_IPV6,
53 .pf = NFPROTO_IPV6,
59 .pf = NFPROTO_IPV6,
/net/ipv4/netfilter/
Diptable_nat.c39 .pf = NFPROTO_IPV4,
45 .pf = NFPROTO_IPV4,
51 .pf = NFPROTO_IPV4,
57 .pf = NFPROTO_IPV4,
/net/bridge/netfilter/
Debtable_nat.c78 .pf = NFPROTO_BRIDGE,
84 .pf = NFPROTO_BRIDGE,
90 .pf = NFPROTO_BRIDGE,
Debtable_filter.c78 .pf = NFPROTO_BRIDGE,
84 .pf = NFPROTO_BRIDGE,
90 .pf = NFPROTO_BRIDGE,

1234