/net/lapb/ |
D | lapb_in.c | 44 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 …]
|
D | lapb_subr.c | 157 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/ |
D | ax25_std_in.c | 39 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 …]
|
D | ax25_ds_in.c | 32 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 …]
|
D | ax25_subr.c | 97 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/ |
D | nf_log.c | 28 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 …]
|
D | nf_sockopt.c | 32 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 …]
|
D | core.c | 267 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() 308 static int __nf_register_net_hook(struct net *net, int pf, in __nf_register_net_hook() argument 314 if (pf == NFPROTO_NETDEV) { in __nf_register_net_hook() 324 pp = nf_hook_entry_head(net, pf, reg->hooknum, reg->dev); in __nf_register_net_hook() 343 if (pf == NFPROTO_NETDEV && reg->hooknum == NF_NETDEV_INGRESS) in __nf_register_net_hook() 347 static_key_slow_inc(&nf_hooks_needed[pf][reg->hooknum]); in __nf_register_net_hook() 381 static void __nf_unregister_net_hook(struct net *net, int pf, in __nf_unregister_net_hook() argument 387 pp = nf_hook_entry_head(net, pf, reg->hooknum, reg->dev); in __nf_unregister_net_hook() 401 if (pf == NFPROTO_NETDEV && reg->hooknum == NF_NETDEV_INGRESS) in __nf_unregister_net_hook() [all …]
|
D | nf_queue.c | 185 switch (state->pf) { in __nf_queue() 220 switch (entry->state.pf) { in __nf_queue() 286 static struct nf_hook_entries *nf_hook_entries_head(const struct net *net, u8 pf, u8 hooknum) in nf_hook_entries_head() argument 288 switch (pf) { in nf_hook_entries_head() 314 u8 pf; in nf_reinject() local 317 pf = entry->state.pf; in nf_reinject() 319 hooks = nf_hook_entries_head(net, pf, entry->state.hook); in nf_reinject()
|
D | nf_conntrack_proto.c | 53 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 …]
|
D | nf_conntrack_proto_icmp.c | 84 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()
|
D | nf_nat_proto.c | 757 .pf = NFPROTO_IPV4, 764 .pf = NFPROTO_IPV4, 771 .pf = NFPROTO_IPV4, 778 .pf = NFPROTO_IPV4, 786 return nf_nat_register_fn(net, ops->pf, ops, nf_nat_ipv4_ops, in nf_nat_ipv4_register_fn() 793 nf_nat_unregister_fn(net, ops->pf, ops, ARRAY_SIZE(nf_nat_ipv4_ops)); in nf_nat_ipv4_unregister_fn() 996 .pf = NFPROTO_IPV6, 1003 .pf = NFPROTO_IPV6, 1010 .pf = NFPROTO_IPV6, 1017 .pf = NFPROTO_IPV6, [all …]
|
D | nfnetlink_log.c | 445 u_int8_t pf, in __build_packet_message() argument 461 0, pf, NFNETLINK_V0, htons(inst->group_num)); in __build_packet_message() 482 if (pf == PF_BRIDGE) { in __build_packet_message() 519 if (pf == PF_BRIDGE) { in __build_packet_message() 629 if ((pf == NFPROTO_NETDEV || pf == NFPROTO_BRIDGE) && in __build_packet_message() 670 u_int8_t pf, in nfulnl_log_packet() argument 740 if (pf == NFPROTO_NETDEV || pf == NFPROTO_BRIDGE) in nfulnl_log_packet() 788 __build_packet_message(log, inst, skb, data_len, pf, in nfulnl_log_packet() 881 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config() local 887 return nf_log_bind_pf(net, pf, &nfulnl_logger); in nfulnl_recv_config() [all …]
|
D | nf_conntrack_proto_udp.c | 41 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() 133 nf_l4proto_log_invalid(skb, state->net, state->pf, in udplite_error_log() 171 state->pf)) { in udplite_error()
|
/net/sunrpc/auth_gss/ |
D | gss_mech_switch.c | 34 struct pf_desc *pf; in gss_mech_free() local 38 pf = &gm->gm_pfs[i]; in gss_mech_free() 39 if (pf->domain) in gss_mech_free() 40 auth_domain_put(pf->domain); in gss_mech_free() 41 kfree(pf->auth_domain_name); in gss_mech_free() 42 pf->auth_domain_name = NULL; in gss_mech_free() 64 struct pf_desc *pf; in gss_mech_svc_setup() local 68 pf = &gm->gm_pfs[i]; in gss_mech_svc_setup() 69 pf->auth_domain_name = make_auth_domain_name(pf->name); in gss_mech_svc_setup() 71 if (pf->auth_domain_name == NULL) in gss_mech_svc_setup() [all …]
|
/net/sched/ |
D | cls_basic.c | 35 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()
|
D | cls_matchall.c | 22 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() 224 new->pf = alloc_percpu(struct tc_matchall_pcnt); in mall_change() 225 if (!new->pf) { in mall_change() 251 free_percpu(new->pf); in mall_change() 372 struct tc_matchall_pcnt *pf = per_cpu_ptr(head->pf, cpu); in mall_dump() local 374 gpf.rhit += pf->rhit; in mall_dump()
|
D | em_ipset.c | 64 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()
|
D | cls_u32.c | 53 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() 404 free_percpu(n->pf); in u32_destroy_key() 825 new->pf = n->pf; in u32_init_knode() 1084 n->pf = __alloc_percpu(size, __alignof__(struct tc_u32_pcnt)); in u32_change() 1085 if (!n->pf) { in u32_change() 1152 free_percpu(n->pf); in u32_change() 1407 struct tc_u32_pcnt *pf = per_cpu_ptr(n->pf, cpu); in u32_dump() local [all …]
|
/net/bridge/ |
D | br_netfilter_hooks.c | 583 u_int8_t pf; in br_nf_forward_ip() local 604 pf = NFPROTO_IPV4; in br_nf_forward_ip() 607 pf = NFPROTO_IPV6; in br_nf_forward_ip() 618 if (pf == NFPROTO_IPV4) { in br_nf_forward_ip() 624 if (pf == NFPROTO_IPV6) { in br_nf_forward_ip() 631 if (pf == NFPROTO_IPV4) in br_nf_forward_ip() 636 NF_HOOK(pf, NF_INET_FORWARD, state->net, NULL, skb, in br_nf_forward_ip() 822 u_int8_t pf; in br_nf_post_routing() local 837 pf = NFPROTO_IPV4; in br_nf_post_routing() 840 pf = NFPROTO_IPV6; in br_nf_post_routing() [all …]
|
/net/ipv6/netfilter/ |
D | ip6table_nat.c | 41 .pf = NFPROTO_IPV6, 47 .pf = NFPROTO_IPV6, 53 .pf = NFPROTO_IPV6, 59 .pf = NFPROTO_IPV6,
|
/net/ipv4/netfilter/ |
D | iptable_nat.c | 39 .pf = NFPROTO_IPV4, 45 .pf = NFPROTO_IPV4, 51 .pf = NFPROTO_IPV4, 57 .pf = NFPROTO_IPV4,
|
/net/bridge/netfilter/ |
D | ebtable_filter.c | 70 .pf = NFPROTO_BRIDGE, 76 .pf = NFPROTO_BRIDGE, 82 .pf = NFPROTO_BRIDGE,
|
D | ebtable_nat.c | 70 .pf = NFPROTO_BRIDGE, 76 .pf = NFPROTO_BRIDGE, 82 .pf = NFPROTO_BRIDGE,
|
D | nf_log_bridge.c | 16 static void nf_log_bridge_packet(struct net *net, u_int8_t pf, in nf_log_bridge_packet() argument 24 nf_log_l2packet(net, pf, eth_hdr(skb)->h_proto, hooknum, skb, in nf_log_bridge_packet()
|