/net/batman-adv/ |
D | multicast.c | 1204 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) { in batadv_mcast_forw_send_orig() 1528 struct batadv_orig_node *orig, in batadv_mcast_want_unsnoop_update() argument 1531 struct hlist_node *node = &orig->mcast_want_all_unsnoopables_node; in batadv_mcast_want_unsnoop_update() 1534 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_unsnoop_update() 1538 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) { in batadv_mcast_want_unsnoop_update() 1549 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) { in batadv_mcast_want_unsnoop_update() 1573 struct batadv_orig_node *orig, in batadv_mcast_want_ipv4_update() argument 1576 struct hlist_node *node = &orig->mcast_want_all_ipv4_node; in batadv_mcast_want_ipv4_update() 1579 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_ipv4_update() 1583 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)) { in batadv_mcast_want_ipv4_update() [all …]
|
D | bridge_loop_avoidance.c | 90 hash = jhash(&gw->orig, sizeof(gw->orig), hash); in batadv_choose_backbone_gw() 111 if (!batadv_compare_eth(gw1->orig, gw2->orig)) in batadv_compare_backbone_gw() 270 ether_addr_copy(search_entry.orig, addr); in batadv_backbone_hash_find() 492 batadv_bla_get_backbone_gw(struct batadv_priv *bat_priv, const u8 *orig, in batadv_bla_get_backbone_gw() argument 499 entry = batadv_backbone_hash_find(bat_priv, orig, vid); in batadv_bla_get_backbone_gw() 506 orig, batadv_print_vid(vid)); in batadv_bla_get_backbone_gw() 519 ether_addr_copy(entry->orig, orig); in batadv_bla_get_backbone_gw() 536 orig_node = batadv_orig_hash_find(bat_priv, orig); in batadv_bla_get_backbone_gw() 645 "Sending REQUEST to %pM\n", backbone_gw->orig); in batadv_bla_send_request() 648 batadv_bla_send_claim(backbone_gw->bat_priv, backbone_gw->orig, in batadv_bla_send_request() [all …]
|
D | routing.c | 86 "Deleting route towards: %pM\n", orig_node->orig); in _batadv_update_route() 94 orig_node->orig, neigh_node->addr); in _batadv_update_route() 99 orig_node->orig, neigh_node->addr, in _batadv_update_route() 234 orig_node = batadv_orig_hash_find(bat_priv, icmph->orig); in batadv_recv_my_icmp_packet() 244 ether_addr_copy(icmph->dst, icmph->orig); in batadv_recv_my_icmp_packet() 245 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet() 291 icmp_packet->orig, icmp_packet->dst); in batadv_recv_icmp_ttl_exceeded() 300 orig_node = batadv_orig_hash_find(bat_priv, icmp_packet->orig); in batadv_recv_icmp_ttl_exceeded() 310 ether_addr_copy(icmp_packet->dst, icmp_packet->orig); in batadv_recv_icmp_ttl_exceeded() 311 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded() [all …]
|
D | gateway_common.c | 58 struct batadv_orig_node *orig, in batadv_gw_tvlv_ogm_handler_v1() argument 82 batadv_gw_node_update(bat_priv, orig, &gateway); in batadv_gw_tvlv_ogm_handler_v1() 87 batadv_gw_check_election(bat_priv, orig); in batadv_gw_tvlv_ogm_handler_v1()
|
D | tp_meter.c | 596 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_msg() 597 ether_addr_copy(icmp->orig, src); in batadv_tp_send_msg() 645 tp_vars = batadv_tp_list_find_session(bat_priv, icmp->orig, in batadv_tp_recv_ack() 662 orig_node = batadv_orig_hash_find(bat_priv, icmp->orig); in batadv_tp_recv_ack() 1072 tp_vars = batadv_tp_list_find(bat_priv, orig_node->orig); in batadv_tp_stop() 1188 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_ack() 1189 ether_addr_copy(icmp->orig, primary_if->net_dev->dev_addr); in batadv_tp_send_ack() 1335 tp_vars = batadv_tp_list_find_session(bat_priv, icmp->orig, in batadv_tp_init_recv() 1350 ether_addr_copy(tp_vars->other_end, icmp->orig); in batadv_tp_init_recv() 1403 tp_vars = batadv_tp_list_find_session(bat_priv, icmp->orig, in batadv_tp_recv_msg() [all …]
|
D | bat_v_ogm.c | 338 ogm_packet->orig, ntohl(ogm_packet->seqno), in batadv_v_ogm_send_softif() 446 ether_addr_copy(ogm_packet->orig, primary_iface->net_dev->dev_addr); in batadv_v_ogm_primary_iface_set() 634 ogm2->orig); in batadv_v_ogm_metric_update() 873 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_v_ogm_process() 877 if (batadv_is_my_mac(bat_priv, ogm_packet->orig)) { in batadv_v_ogm_process() 900 orig_node = batadv_v_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_v_ogm_process() 936 ogm_packet->orig, in batadv_v_ogm_process() 937 hardif_neigh->orig); in batadv_v_ogm_process() 957 ogm_packet->orig, hard_iface->net_dev->name, in batadv_v_ogm_process()
|
D | originator.c | 562 ether_addr_copy(hardif_neigh->orig, orig_node->orig); in batadv_hardif_neigh_create() 689 neigh_addr, orig_node->orig, hard_iface->net_dev->name); in batadv_neigh_node_create() 960 ether_addr_copy(orig_node->orig, addr); in batadv_orig_node_new() 1076 orig_node->orig, if_outgoing->net_dev->name); in batadv_purge_orig_ifinfo() 1127 orig_node->orig, neigh_node->addr, in batadv_purge_orig_neighbors() 1132 orig_node->orig, neigh_node->addr, in batadv_purge_orig_neighbors() 1206 orig_node->orig, in batadv_purge_orig_node() 1362 if (!bat_priv->algo_ops->orig.dump) { in batadv_orig_dump() 1367 bat_priv->algo_ops->orig.dump(msg, cb, bat_priv, hardif); in batadv_orig_dump()
|
D | gateway_client.c | 227 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election() 252 next_gw->orig_node->orig, in batadv_gw_election() 263 next_gw->orig_node->orig, in batadv_gw_election() 353 orig_node->orig, in batadv_gw_node_add() 420 orig_node->orig, in batadv_gw_node_update() 436 orig_node->orig); in batadv_gw_node_update()
|
D | translation-table.c | 1603 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) in batadv_tt_global_add() 1716 orig_node->orig); in batadv_tt_global_add() 1801 struct batadv_tt_orig_list_entry *orig, in batadv_tt_global_dump_subentry() argument 1804 u16 flags = (common->flags & (~BATADV_TT_SYNC_MASK)) | orig->flags; in batadv_tt_global_dump_subentry() 1810 vlan = batadv_orig_node_vlan_get(orig->orig_node, in batadv_tt_global_dump_subentry() 1825 last_ttvn = atomic_read(&orig->orig_node->last_ttvn); in batadv_tt_global_dump_subentry() 1829 orig->orig_node->orig) || in batadv_tt_global_dump_subentry() 1830 nla_put_u8(msg, BATADV_ATTR_TT_TTVN, orig->ttvn) || in batadv_tt_global_dump_subentry() 2068 orig_node->orig, in batadv_tt_global_del_orig_node() 2670 ether_addr_copy(tt_req_node->addr, orig_node->orig); in batadv_tt_req_node_new() [all …]
|
D | bat_iv_ogm.c | 247 ether_addr_copy(batadv_ogm_packet->orig, in batadv_iv_ogm_iface_update_mac() 371 batadv_ogm_packet->orig, in batadv_iv_ogm_send_to_if() 1084 orig_neigh_node->orig)) in batadv_iv_ogm_calc_tq() 1100 orig_neigh_node->orig, in batadv_iv_ogm_calc_tq() 1177 orig_node->orig, orig_neigh_node->orig, total_count, in batadv_iv_ogm_calc_tq() 1225 orig_node = batadv_iv_ogm_orig_get(bat_priv, batadv_ogm_packet->orig); in batadv_iv_ogm_update_seqnos() 1342 if (batadv_compare_eth(ethhdr->h_source, ogm_packet->orig)) in batadv_iv_ogm_process_per_outif() 1380 !(batadv_compare_eth(ogm_packet->orig, prev_sender)) && in batadv_iv_ogm_process_per_outif() 1523 ogm_packet->orig)) in batadv_iv_ogm_process_reply() 1592 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_iv_ogm_process() [all …]
|
D | send.c | 250 ether_addr_copy(unicast_packet->dest, orig_node->orig); in batadv_send_skb_push_fill_unicast() 284 struct batadv_orig_node *orig, in batadv_send_skb_prepare_unicast_4addr() argument 300 orig)) in batadv_send_skb_prepare_unicast_4addr() 867 orig_neigh = neigh_node ? neigh_node->orig : NULL; in batadv_send_no_broadcast() 869 ret = batadv_hardif_no_broadcast(if_out, bcast_packet->orig, in batadv_send_no_broadcast() 895 bcast_packet->orig, in batadv_send_no_broadcast()
|
D | types.h | 368 u8 orig[ETH_ALEN]; member 617 u8 orig[ETH_ALEN]; member 748 u8 orig[ETH_ALEN]; member 1759 u8 orig[ETH_ALEN]; member 2241 struct batadv_algo_orig_ops orig; member 2332 struct batadv_orig_node *orig,
|
D | bridge_loop_avoidance.h | 45 bool batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, u8 *orig, 83 u8 *orig, unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument
|
D | network-coding.c | 119 struct batadv_orig_node *orig, in batadv_nc_tvlv_ogm_handler_v1() argument 124 clear_bit(BATADV_ORIG_CAPA_HAS_NC, &orig->capabilities); in batadv_nc_tvlv_ogm_handler_v1() 126 set_bit(BATADV_ORIG_CAPA_HAS_NC, &orig->capabilities); in batadv_nc_tvlv_ogm_handler_v1() 356 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_purge_orig_nc_nodes() 777 if (!batadv_compare_eth(ogm_packet->orig, ogm_packet->prev_sender)) in batadv_can_nc_with_orig() 810 if (!batadv_compare_eth(nc_node->addr, orig_node->orig)) in batadv_nc_find_nc_node() 871 ether_addr_copy(nc_node->addr, orig_node->orig); in batadv_nc_get_nc_node() 876 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_get_nc_node()
|
D | bat_v_elp.c | 413 ether_addr_copy(elp_packet->orig, in batadv_v_elp_iface_activate() 459 orig_neigh = batadv_v_ogm_orig_get(bat_priv, elp_packet->orig); in batadv_v_elp_neigh_update() 531 elp_packet->orig); in batadv_v_elp_packet_recv()
|
D | distributed-arp-table.c | 476 orig_addr = bcast_pkt->orig; in batadv_dbg_arp() 543 batadv_compare_eth(candidate->orig, max_orig_node->orig)) in batadv_is_orig_node_eligible() 608 select, max_orig_node->orig, max_orig_node->dat_addr, in batadv_choose_next_candidate() 779 struct batadv_orig_node *orig, in batadv_dat_tvlv_ogm_handler_v1() argument 784 clear_bit(BATADV_ORIG_CAPA_HAS_DAT, &orig->capabilities); in batadv_dat_tvlv_ogm_handler_v1() 786 set_bit(BATADV_ORIG_CAPA_HAS_DAT, &orig->capabilities); in batadv_dat_tvlv_ogm_handler_v1()
|
/net/netfilter/ |
D | xt_DSCP.c | 76 u_int8_t orig, nv; in tos_tg() local 78 orig = ipv4_get_dsfield(iph); in tos_tg() 79 nv = (orig & ~info->tos_mask) ^ info->tos_value; in tos_tg() 81 if (orig != nv) { in tos_tg() 96 u_int8_t orig, nv; in tos_tg6() local 98 orig = ipv6_get_dsfield(iph); in tos_tg6() 99 nv = (orig & ~info->tos_mask) ^ info->tos_value; in tos_tg6() 101 if (orig != nv) { in tos_tg6()
|
D | nf_conntrack_proto_icmp.c | 57 const struct nf_conntrack_tuple *orig) in nf_conntrack_invert_icmp_tuple() argument 59 if (orig->dst.u.icmp.type >= sizeof(invmap) || in nf_conntrack_invert_icmp_tuple() 60 !invmap[orig->dst.u.icmp.type]) in nf_conntrack_invert_icmp_tuple() 63 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmp_tuple() 64 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple() 65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple()
|
D | nf_conntrack_proto_icmpv6.c | 69 const struct nf_conntrack_tuple *orig) in nf_conntrack_invert_icmpv6_tuple() argument 71 int type = orig->dst.u.icmp.type - 128; in nf_conntrack_invert_icmpv6_tuple() 75 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmpv6_tuple() 77 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple()
|
D | nf_conntrack_core.c | 436 const struct nf_conntrack_tuple *orig) in nf_ct_invert_tuple() argument 440 inverse->src.l3num = orig->src.l3num; in nf_ct_invert_tuple() 442 switch (orig->src.l3num) { in nf_ct_invert_tuple() 444 inverse->src.u3.ip = orig->dst.u3.ip; in nf_ct_invert_tuple() 445 inverse->dst.u3.ip = orig->src.u3.ip; in nf_ct_invert_tuple() 448 inverse->src.u3.in6 = orig->dst.u3.in6; in nf_ct_invert_tuple() 449 inverse->dst.u3.in6 = orig->src.u3.in6; in nf_ct_invert_tuple() 455 inverse->dst.dir = !orig->dst.dir; in nf_ct_invert_tuple() 457 inverse->dst.protonum = orig->dst.protonum; in nf_ct_invert_tuple() 459 switch (orig->dst.protonum) { in nf_ct_invert_tuple() [all …]
|
/net/openvswitch/ |
D | conntrack.c | 185 const struct nf_conntrack_tuple *orig, in __ovs_ct_update_key_orig_tp() argument 188 key->ct_orig_proto = orig->dst.protonum; in __ovs_ct_update_key_orig_tp() 189 if (orig->dst.protonum == icmp_proto) { in __ovs_ct_update_key_orig_tp() 190 key->ct.orig_tp.src = htons(orig->dst.u.icmp.type); in __ovs_ct_update_key_orig_tp() 191 key->ct.orig_tp.dst = htons(orig->dst.u.icmp.code); in __ovs_ct_update_key_orig_tp() 193 key->ct.orig_tp.src = orig->src.u.all; in __ovs_ct_update_key_orig_tp() 194 key->ct.orig_tp.dst = orig->dst.u.all; in __ovs_ct_update_key_orig_tp() 208 const struct nf_conntrack_tuple *orig; in __ovs_ct_update_key() local 213 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in __ovs_ct_update_key() 218 key->ipv4.ct_orig.src = orig->src.u3.ip; in __ovs_ct_update_key() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_nfct.c | 143 struct nf_conntrack_tuple *orig, new_reply; in ip_vs_nfct_expect_callback() local 157 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback() 158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback() 159 &orig->src.u3, orig->src.u.tcp.port, in ip_vs_nfct_expect_callback() 160 &orig->dst.u3, orig->dst.u.tcp.port, &p); in ip_vs_nfct_expect_callback() 194 __func__, ct, ct->status, ARG_TUPLE(orig)); in ip_vs_nfct_expect_callback()
|
/net/xfrm/ |
D | xfrm_state.c | 1655 static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, in xfrm_state_clone() argument 1658 struct net *net = xs_net(orig); in xfrm_state_clone() 1663 memcpy(&x->id, &orig->id, sizeof(x->id)); in xfrm_state_clone() 1664 memcpy(&x->sel, &orig->sel, sizeof(x->sel)); in xfrm_state_clone() 1665 memcpy(&x->lft, &orig->lft, sizeof(x->lft)); in xfrm_state_clone() 1666 x->props.mode = orig->props.mode; in xfrm_state_clone() 1667 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone() 1668 x->props.reqid = orig->props.reqid; in xfrm_state_clone() 1669 x->props.family = orig->props.family; in xfrm_state_clone() 1670 x->props.saddr = orig->props.saddr; in xfrm_state_clone() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 624 struct htable *t, *orig; in mtype_resize() local 644 orig = ipset_dereference_bh_nfnl(h->table); in mtype_resize() 645 htable_bits = orig->htable_bits; in mtype_resize() 674 orig = ipset_dereference_bh_nfnl(h->table); in mtype_resize() 675 atomic_set(&orig->ref, 1); in mtype_resize() 676 atomic_inc(&orig->uref); in mtype_resize() 678 set->name, orig->htable_bits, htable_bits, orig); in mtype_resize() 679 for (r = 0; r < ahash_numof_locks(orig->htable_bits); r++) { in mtype_resize() 682 for (i = ahash_bucket_start(r, orig->htable_bits); in mtype_resize() 683 i < ahash_bucket_end(r, orig->htable_bits); i++) { in mtype_resize() [all …]
|
D | ip_set_hash_netnet.c | 88 struct hash_netnet4_elem *orig) in hash_netnet4_data_reset_elem() argument 90 elem->ip[1] = orig->ip[1]; in hash_netnet4_data_reset_elem() 324 struct hash_netnet6_elem *orig) in hash_netnet6_data_reset_elem() argument 326 elem->ip[1] = orig->ip[1]; in hash_netnet6_data_reset_elem()
|