Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/net/802/
Dgarp.c27 u8 state; member
31 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_AA,
33 [GARP_EVENT_R_JOIN_IN] = { .state = GARP_APPLICANT_AA },
34 [GARP_EVENT_R_JOIN_EMPTY] = { .state = GARP_APPLICANT_VA },
35 [GARP_EVENT_R_EMPTY] = { .state = GARP_APPLICANT_VA },
36 [GARP_EVENT_R_LEAVE_IN] = { .state = GARP_APPLICANT_VA },
37 [GARP_EVENT_R_LEAVE_EMPTY] = { .state = GARP_APPLICANT_VP },
38 [GARP_EVENT_REQ_JOIN] = { .state = GARP_APPLICANT_INVALID },
39 [GARP_EVENT_REQ_LEAVE] = { .state = GARP_APPLICANT_LA },
42 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_QA,
[all …]
/net/netfilter/
Dnf_queue.c78 struct nf_hook_state *state = &entry->state; in nf_queue_entry_release_refs() local
81 if (state->in) in nf_queue_entry_release_refs()
82 dev_put(state->in); in nf_queue_entry_release_refs()
83 if (state->out) in nf_queue_entry_release_refs()
84 dev_put(state->out); in nf_queue_entry_release_refs()
85 if (state->sk) in nf_queue_entry_release_refs()
86 nf_queue_sock_put(state->sk); in nf_queue_entry_release_refs()
113 struct nf_hook_state *state = &entry->state; in nf_queue_entry_get_refs() local
115 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs()
118 if (state->in) in nf_queue_entry_get_refs()
[all …]
Dnf_conntrack_proto_udp.c38 const struct nf_hook_state *state, in udp_error_log() argument
41 nf_l4proto_log_invalid(skb, state->net, state->pf, in udp_error_log()
47 const struct nf_hook_state *state) in udp_error() argument
56 udp_error_log(skb, state, "short packet"); in udp_error()
62 udp_error_log(skb, state, "truncated/malformed packet"); in udp_error()
74 if (state->hook == NF_INET_PRE_ROUTING && in udp_error()
75 state->net->ct.sysctl_checksum && in udp_error()
76 nf_checksum(skb, state->hook, dataoff, IPPROTO_UDP, state->pf)) { in udp_error()
77 udp_error_log(skb, state, "bad checksum"); in udp_error()
89 const struct nf_hook_state *state) in nf_conntrack_udp_packet() argument
[all …]
Dnf_conntrack_proto_icmp.c71 const struct nf_hook_state *state) in nf_conntrack_icmp_packet() argument
84 if (state->pf != NFPROTO_IPV4) in nf_conntrack_icmp_packet()
106 const struct nf_hook_state *state, in nf_conntrack_inet_error() argument
123 state->pf, state->net, &origtuple)) in nf_conntrack_inet_error()
131 h = nf_conntrack_find_get(state->net, zone, &innertuple); 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()
195 const struct nf_hook_state *state, in icmp_error_log() argument
[all …]
Dnft_chain_route.c18 const struct nf_hook_state *state) in nf_route_table_hook4() argument
28 nft_set_pktinfo(&pkt, skb, state); in nf_route_table_hook4()
45 err = ip_route_me_harder(state->net, state->sk, skb, RTN_UNSPEC); in nf_route_table_hook4()
67 const struct nf_hook_state *state) in nf_route_table_hook6() argument
76 nft_set_pktinfo(&pkt, skb, state); in nf_route_table_hook6()
95 err = nf_ip6_route_me_harder(state->net, state->sk, skb); in nf_route_table_hook6()
117 const struct nf_hook_state *state) in nf_route_table_inet() argument
121 switch (state->pf) { in nf_route_table_inet()
123 return nf_route_table_hook4(priv, skb, state); in nf_route_table_inet()
125 return nf_route_table_hook6(priv, skb, state); in nf_route_table_inet()
[all …]
Dnf_conntrack_proto_tcp.c279 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]); in tcp_print_conntrack()
344 struct ip_ct_tcp_state *state) in tcp_options() argument
357 state->td_scale = 0; in tcp_options()
358 state->flags &= IP_CT_TCP_FLAG_BE_LIBERAL; in tcp_options()
381 state->flags |= IP_CT_TCP_FLAG_SACK_PERM; in tcp_options()
384 state->td_scale = *(u_int8_t *)ptr; in tcp_options()
386 if (state->td_scale > TCP_MAX_WSCALE) in tcp_options()
387 state->td_scale = TCP_MAX_WSCALE; in tcp_options()
389 state->flags |= in tcp_options()
462 struct ip_ct_tcp *state, in tcp_in_window() argument
[all …]
Dnf_conntrack_proto_icmpv6.c88 const struct nf_hook_state *state) in nf_conntrack_icmpv6_packet() argument
96 if (state->pf != NFPROTO_IPV6) in nf_conntrack_icmpv6_packet()
124 const struct nf_hook_state *state, in icmpv6_error_log() argument
127 nf_l4proto_log_invalid(skb, state->net, state->pf, in icmpv6_error_log()
134 const struct nf_hook_state *state) in nf_conntrack_icmpv6_redirect() argument
147 icmpv6_error_log(skb, state, "short redirect"); in nf_conntrack_icmpv6_redirect()
155 icmpv6_error_log(skb, state, "invalid saddr or hoplimit for redirect"); in nf_conntrack_icmpv6_redirect()
164 icmpv6_error_log(skb, state, "redirect without options"); in nf_conntrack_icmpv6_redirect()
177 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_redirect()
184 const struct nf_hook_state *state) in nf_conntrack_icmpv6_error() argument
[all …]
Dnft_chain_filter.c19 const struct nf_hook_state *state) in nft_do_chain_ipv4() argument
23 nft_set_pktinfo(&pkt, skb, state); in nft_do_chain_ipv4()
63 const struct nf_hook_state *state) in nft_do_chain_arp() argument
67 nft_set_pktinfo(&pkt, skb, state); in nft_do_chain_arp()
103 const struct nf_hook_state *state) in nft_do_chain_ipv6() argument
107 nft_set_pktinfo(&pkt, skb, state); in nft_do_chain_ipv6()
147 const struct nf_hook_state *state) in nft_do_chain_inet() argument
151 nft_set_pktinfo(&pkt, skb, state); in nft_do_chain_inet()
153 switch (state->pf) { in nft_do_chain_inet()
203 const struct nf_hook_state *state) in nft_do_chain_bridge() argument
[all …]
Dnft_xfrm.c118 const struct xfrm_state *state) in nft_xfrm_state_get_key() argument
123 state->props.family, in nft_xfrm_state_get_key()
124 state->props.mode)) { in nft_xfrm_state_get_key()
135 *dest = state->id.daddr.a4; in nft_xfrm_state_get_key()
138 memcpy(dest, &state->id.daddr.in6, sizeof(struct in6_addr)); in nft_xfrm_state_get_key()
141 *dest = state->props.saddr.a4; in nft_xfrm_state_get_key()
144 memcpy(dest, &state->props.saddr.in6, sizeof(struct in6_addr)); in nft_xfrm_state_get_key()
147 *dest = state->props.reqid; in nft_xfrm_state_get_key()
150 *dest = state->id.spi; in nft_xfrm_state_get_key()
162 const struct xfrm_state *state; in nft_xfrm_get_eval_in() local
[all …]
/net/wimax/
Dop-rfkill.c79 enum wimax_rf_state state) in wimax_report_rfkill_hw() argument
85 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_hw()
86 BUG_ON(state == WIMAX_RF_QUERY); in wimax_report_rfkill_hw()
87 BUG_ON(state != WIMAX_RF_ON && state != WIMAX_RF_OFF); in wimax_report_rfkill_hw()
94 if (state != wimax_dev->rf_hw) { in wimax_report_rfkill_hw()
95 wimax_dev->rf_hw = state; in wimax_report_rfkill_hw()
103 state == WIMAX_RF_OFF); in wimax_report_rfkill_hw()
110 wimax_dev, state, result); in wimax_report_rfkill_hw()
134 enum wimax_rf_state state) in wimax_report_rfkill_sw() argument
140 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_sw()
[all …]
/net/ncsi/
Dncsi-manage.c41 if (nc->state == NCSI_CHANNEL_ACTIVE && in ncsi_channel_is_last()
56 nd->state = ncsi_dev_state_functional; in ncsi_report_link()
68 nc->state != NCSI_CHANNEL_ACTIVE) { in ncsi_report_link()
97 int state, ret; in ncsi_channel_monitor() local
100 state = nc->state; in ncsi_channel_monitor()
103 monitor_state = nc->monitor.state; in ncsi_channel_monitor()
111 if (state != NCSI_CHANNEL_INACTIVE && in ncsi_channel_monitor()
112 state != NCSI_CHANNEL_ACTIVE) { in ncsi_channel_monitor()
116 nc->id, state, chained ? "on" : "off"); in ncsi_channel_monitor()
147 nc->state = NCSI_CHANNEL_INVISIBLE; in ncsi_channel_monitor()
[all …]
/net/rfkill/
Dcore.c42 unsigned long state; member
126 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event()
181 if (!(rfkill->state & RFKILL_BLOCK_ANY)) { in rfkill_global_led_trigger_worker()
265 ev->hard = !!(rfkill->state & RFKILL_BLOCK_HW); in rfkill_fill_event()
266 ev->soft = !!(rfkill->state & (RFKILL_BLOCK_SW | in rfkill_fill_event()
326 prev = rfkill->state & RFKILL_BLOCK_SW; in rfkill_set_block()
329 rfkill->state |= RFKILL_BLOCK_SW_PREV; in rfkill_set_block()
331 rfkill->state &= ~RFKILL_BLOCK_SW_PREV; in rfkill_set_block()
334 rfkill->state |= RFKILL_BLOCK_SW; in rfkill_set_block()
336 rfkill->state &= ~RFKILL_BLOCK_SW; in rfkill_set_block()
[all …]
/net/bridge/
Dbr_netfilter_hooks.c479 const struct nf_hook_state *state) in br_nf_pre_routing() argument
490 p = br_port_get_rcu(state->in); in br_nf_pre_routing()
495 brnet = net_generic(state->net, brnf_net_id); in br_nf_pre_routing()
496 if (IS_IPV6(skb) || is_vlan_ipv6(skb, state->net) || in br_nf_pre_routing()
497 is_pppoe_ipv6(skb, state->net)) { in br_nf_pre_routing()
507 return br_nf_pre_routing_ipv6(priv, skb, state); in br_nf_pre_routing()
513 if (!IS_IP(skb) && !is_vlan_ip(skb, state->net) && in br_nf_pre_routing()
514 !is_pppoe_ip(skb, state->net)) in br_nf_pre_routing()
519 if (br_validate_ipv4(state->net, skb)) in br_nf_pre_routing()
524 if (!setup_pre_routing(skb, state->net)) in br_nf_pre_routing()
[all …]
/net/llc/
Dllc_conn.c32 static int llc_find_offset(int state, int ev_type);
105 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process()
131 if (!llc_data_accept_state(llc->state)) in llc_conn_state_process()
140 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process()
143 sk->sk_socket->state = SS_CONNECTED; in llc_conn_state_process()
152 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process()
362 if (llc->state > NBR_CONN_STATES) in llc_conn_service()
369 llc->state = trans->next_state; in llc_conn_service()
370 if (!llc_data_accept_state(llc->state)) in llc_conn_service()
394 &llc_conn_state_table[llc->state - 1]; in llc_qualify_conn_ev()
[all …]
/net/bluetooth/rfcomm/
Dcore.c240 BT_DBG("session %p state %ld", s, s->state); in rfcomm_session_timeout()
248 BT_DBG("session %p state %ld timeout %ld", s, s->state, timeout); in rfcomm_session_set_timer()
255 BT_DBG("session %p state %ld", s, s->state); in rfcomm_session_clear_timer()
265 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout()
274 BT_DBG("dlc %p state %ld timeout %ld", d, d->state, timeout); in rfcomm_dlc_set_timer()
282 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_clear_timer()
292 d->state = BT_OPEN; in rfcomm_dlc_clear_state()
378 d, d->state, src, dst, channel); in __rfcomm_dlc_open()
383 if (d->state != BT_OPEN && d->state != BT_CLOSED) in __rfcomm_dlc_open()
405 d->state = BT_CONFIG; in __rfcomm_dlc_open()
[all …]
/net/ipv6/
Danycast.c488 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_first() local
491 state->idev = NULL; in ac6_get_first()
492 for_each_netdev_rcu(net, state->dev) { in ac6_get_first()
494 idev = __in6_dev_get(state->dev); in ac6_get_first()
500 state->idev = idev; in ac6_get_first()
510 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_next() local
514 if (likely(state->idev != NULL)) in ac6_get_next()
515 read_unlock_bh(&state->idev->lock); in ac6_get_next()
517 state->dev = next_net_device_rcu(state->dev); in ac6_get_next()
518 if (!state->dev) { in ac6_get_next()
[all …]
/net/ipv4/netfilter/
Diptable_mangle.c40 ipt_mangle_out(struct sk_buff *skb, const struct nf_hook_state *state) in ipt_mangle_out() argument
56 ret = ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); in ipt_mangle_out()
65 err = ip_route_me_harder(state->net, state->sk, skb, RTN_UNSPEC); in ipt_mangle_out()
78 const struct nf_hook_state *state) in iptable_mangle_hook() argument
80 if (state->hook == NF_INET_LOCAL_OUT) in iptable_mangle_hook()
81 return ipt_mangle_out(skb, state); in iptable_mangle_hook()
82 return ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); in iptable_mangle_hook()
/net/tipc/
Dgroup.c71 enum mbr_state state; member
117 if (m->state == MBR_ACTIVE || m->state == MBR_RECLAIMING || in tipc_group_decr_active()
118 m->state == MBR_REMITTED) in tipc_group_decr_active()
147 return m && m->state != MBR_JOINING && m->state != MBR_LEAVING; in tipc_group_is_receiver()
152 return m && m->state != MBR_JOINING && m->state != MBR_PUBLISHED; in tipc_group_is_sender()
303 u32 instance, int state) in tipc_group_create_member() argument
326 m->state = state; in tipc_group_create_member()
421 int adv, state; in tipc_group_cong() local
437 state = m->state; in tipc_group_cong()
438 if (state == MBR_JOINED && adv == ADV_IDLE) in tipc_group_cong()
[all …]
Dmonitor.c443 struct tipc_mon_state *state, int bearer_id) in tipc_mon_rcv() argument
454 bool probing = state->probing; in tipc_mon_rcv()
457 state->probing = false; in tipc_mon_rcv()
470 if (!state->synched) { in tipc_mon_rcv()
471 state->peer_gen = new_gen - 1; in tipc_mon_rcv()
472 state->acked_gen = acked_gen; in tipc_mon_rcv()
473 state->synched = true; in tipc_mon_rcv()
476 if (more(acked_gen, state->acked_gen)) in tipc_mon_rcv()
477 state->acked_gen = acked_gen; in tipc_mon_rcv()
480 if (!more(new_gen, state->peer_gen) && !probing) in tipc_mon_rcv()
[all …]
/net/ipv6/netfilter/
Dip6table_mangle.c35 ip6t_mangle_out(struct sk_buff *skb, const struct nf_hook_state *state) in ip6t_mangle_out() argument
52 ret = ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6t_mangle_out()
60 err = ip6_route_me_harder(state->net, state->sk, skb); in ip6t_mangle_out()
71 const struct nf_hook_state *state) in ip6table_mangle_hook() argument
73 if (state->hook == NF_INET_LOCAL_OUT) in ip6table_mangle_hook()
74 return ip6t_mangle_out(skb, state); in ip6table_mangle_hook()
75 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook()
/net/core/
Dutils.c193 int state = IN6PTON_COLON_1_2 | IN6PTON_XDIGIT | IN6PTON_NULL; in in6_pton() local
207 if (!(c & state)) in in6_pton()
211 if (!(state & IN6PTON_NULL)) { in in6_pton()
225 switch (state & IN6PTON_COLON_MASK) { in in6_pton()
228 state = IN6PTON_XDIGIT | IN6PTON_DELIM; in in6_pton()
230 state |= IN6PTON_NULL; in in6_pton()
233 state = IN6PTON_XDIGIT | IN6PTON_COLON_2; in in6_pton()
236 state = IN6PTON_XDIGIT; in in6_pton()
239 state = IN6PTON_COLON_2; in in6_pton()
242 state = 0; in in6_pton()
[all …]
/net/bridge/netfilter/
Dnf_conntrack_bridge.c37 struct ip_frag_state state; in nf_br_ip_fragment() local
104 ip_frag_init(skb, hlen, ll_rs, frag_max_size, false, &state); in nf_br_ip_fragment()
106 while (state.left > 0) { in nf_br_ip_fragment()
109 skb2 = ip_frag_next(skb, &state); in nf_br_ip_fragment()
145 const struct nf_hook_state *state) in nf_ct_br_defrag4() argument
162 err = ip_defrag(state->net, skb, in nf_ct_br_defrag4()
175 const struct nf_hook_state *state) in nf_ct_br_defrag6() argument
190 err = nf_ct_frag6_gather(state->net, skb, in nf_ct_br_defrag6()
240 const struct nf_hook_state *state) in nf_ct_bridge_pre() argument
242 struct nf_hook_state bridge_state = *state; in nf_ct_bridge_pre()
[all …]
/net/ax25/
Dax25_ds_subr.c70 …if (ax25->state == AX25_STATE_1 || ax25->state == AX25_STATE_2 || skb_peek(&ax25->ack_queue) != NU… in ax25_ds_enquiry_response()
86 if (ax25o->state == AX25_STATE_1 || ax25o->state == AX25_STATE_2) { in ax25_ds_enquiry_response()
91 if (!(ax25o->condition & AX25_COND_PEER_RX_BUSY) && ax25o->state == AX25_STATE_3) { in ax25_ds_enquiry_response()
96 …if (ax25o->state == AX25_STATE_1 || ax25o->state == AX25_STATE_2 || skb_peek(&ax25o->ack_queue) !=… in ax25_ds_enquiry_response()
101 if (ax25o->state != AX25_STATE_0) in ax25_ds_enquiry_response()
161 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave()
Dax25_std_in.c67 ax25->state = AX25_STATE_3; in ax25_std_state1_machine()
188 ax25->state = AX25_STATE_1; in ax25_std_state3_machine()
204 ax25->state = AX25_STATE_1; in ax25_std_state3_machine()
211 ax25->state = AX25_STATE_1; in ax25_std_state3_machine()
251 ax25->state = AX25_STATE_1; in ax25_std_state3_machine()
289 ax25->state = AX25_STATE_3; in ax25_std_state4_machine()
316 ax25->state = AX25_STATE_3; in ax25_std_state4_machine()
322 ax25->state = AX25_STATE_1; in ax25_std_state4_machine()
332 ax25->state = AX25_STATE_1; in ax25_std_state4_machine()
345 ax25->state = AX25_STATE_3; in ax25_std_state4_machine()
[all …]
/net/sched/
Dem_ipset.c57 struct nf_hook_state state = { in em_ipset_match() local
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()
96 state.in = indev ? indev : dev; in em_ipset_match()
97 state.out = dev; in em_ipset_match()
98 acpar.state = &state; in em_ipset_match()

12345678910>>...15