/net/batman-adv/ |
D | multicast.c | 893 struct batadv_orig_node **orig) in batadv_mcast_forw_mode() argument 918 *orig = batadv_mcast_forw_tt_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode() 920 *orig = batadv_mcast_forw_ip_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode() 922 *orig = batadv_mcast_forw_unsnoop_node_get(bat_priv); in batadv_mcast_forw_mode() 924 if (*orig) in batadv_mcast_forw_mode() 947 struct batadv_orig_node *orig, in batadv_mcast_want_unsnoop_update() argument 950 struct hlist_node *node = &orig->mcast_want_all_unsnoopables_node; in batadv_mcast_want_unsnoop_update() 953 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_unsnoop_update() 957 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) { in batadv_mcast_want_unsnoop_update() 968 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) { in batadv_mcast_want_unsnoop_update() [all …]
|
D | packet.h | 197 u8 orig[ETH_ALEN]; member 226 u8 orig[ETH_ALEN]; member 247 u8 orig[ETH_ALEN]; member 285 u8 orig[ETH_ALEN]; member 308 u8 orig[ETH_ALEN]; member 337 u8 orig[ETH_ALEN]; member 376 u8 orig[ETH_ALEN]; member 462 u8 orig[ETH_ALEN]; member 482 u8 orig[ETH_ALEN]; member
|
D | bridge_loop_avoidance.c | 122 if (!batadv_compare_eth(gw1->orig, gw2->orig)) in batadv_compare_backbone_gw() 276 ether_addr_copy(search_entry.orig, addr); in batadv_backbone_hash_find() 500 batadv_bla_get_backbone_gw(struct batadv_priv *bat_priv, u8 *orig, in batadv_bla_get_backbone_gw() argument 507 entry = batadv_backbone_hash_find(bat_priv, orig, vid); in batadv_bla_get_backbone_gw() 514 orig, BATADV_PRINT_VID(vid)); in batadv_bla_get_backbone_gw() 527 ether_addr_copy(entry->orig, orig); in batadv_bla_get_backbone_gw() 544 orig_node = batadv_orig_hash_find(bat_priv, orig); in batadv_bla_get_backbone_gw() 652 "Sending REQUEST to %pM\n", backbone_gw->orig); in batadv_bla_send_request() 655 batadv_bla_send_claim(backbone_gw->bat_priv, backbone_gw->orig, in batadv_bla_send_request() 853 BATADV_PRINT_VID(vid), backbone_gw->orig, crc); in batadv_handle_announce() [all …]
|
D | routing.c | 98 "Deleting route towards: %pM\n", orig_node->orig); in _batadv_update_route() 106 orig_node->orig, neigh_node->addr); in _batadv_update_route() 111 orig_node->orig, neigh_node->addr, in _batadv_update_route() 249 orig_node = batadv_orig_hash_find(bat_priv, icmph->orig); in batadv_recv_my_icmp_packet() 259 ether_addr_copy(icmph->dst, icmph->orig); in batadv_recv_my_icmp_packet() 260 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet() 303 icmp_packet->orig, icmp_packet->dst); in batadv_recv_icmp_ttl_exceeded() 312 orig_node = batadv_orig_hash_find(bat_priv, icmp_packet->orig); in batadv_recv_icmp_ttl_exceeded() 322 ether_addr_copy(icmp_packet->dst, icmp_packet->orig); in batadv_recv_icmp_ttl_exceeded() 323 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded() [all …]
|
D | originator.c | 663 neigh_addr, orig_node->orig, hard_iface->net_dev->name); in batadv_neigh_node_create() 856 if (orig_node->bat_priv->algo_ops->orig.free) in batadv_orig_node_free_rcu() 857 orig_node->bat_priv->algo_ops->orig.free(orig_node); in batadv_orig_node_free_rcu() 996 ether_addr_copy(orig_node->orig, addr); in batadv_orig_node_new() 1111 orig_node->orig, if_outgoing->net_dev->name); in batadv_purge_orig_ifinfo() 1162 orig_node->orig, neigh_node->addr, in batadv_purge_orig_neighbors() 1167 orig_node->orig, neigh_node->addr, in batadv_purge_orig_neighbors() 1242 orig_node->orig, in batadv_purge_orig_node() 1362 if (!bat_priv->algo_ops->orig.print) { in batadv_orig_seq_print_text() 1368 bat_priv->algo_ops->orig.print(bat_priv, seq, BATADV_IF_DEFAULT); in batadv_orig_seq_print_text() [all …]
|
D | tp_meter.c | 600 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_msg() 601 ether_addr_copy(icmp->orig, src); in batadv_tp_send_msg() 652 tp_vars = batadv_tp_list_find_session(bat_priv, icmp->orig, in batadv_tp_recv_ack() 669 orig_node = batadv_orig_hash_find(bat_priv, icmp->orig); in batadv_tp_recv_ack() 1083 tp_vars = batadv_tp_list_find(bat_priv, orig_node->orig); in batadv_tp_stop() 1199 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_ack() 1200 ether_addr_copy(icmp->orig, primary_if->net_dev->dev_addr); in batadv_tp_send_ack() 1351 tp_vars = batadv_tp_list_find_session(bat_priv, icmp->orig, in batadv_tp_init_recv() 1366 ether_addr_copy(tp_vars->other_end, icmp->orig); in batadv_tp_init_recv() 1420 tp_vars = batadv_tp_list_find_session(bat_priv, icmp->orig, in batadv_tp_recv_msg() [all …]
|
D | gateway_common.c | 218 struct batadv_orig_node *orig, in batadv_gw_tvlv_ogm_handler_v1() argument 242 batadv_gw_node_update(bat_priv, orig, &gateway); in batadv_gw_tvlv_ogm_handler_v1() 247 batadv_gw_check_election(bat_priv, orig); in batadv_gw_tvlv_ogm_handler_v1()
|
D | translation-table.c | 1617 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) in batadv_tt_global_add() 1726 orig_node->orig); in batadv_tt_global_add() 1834 best_entry->orig_node->orig); in batadv_tt_global_print_entry() 1843 best_entry->ttvn, best_entry->orig_node->orig, in batadv_tt_global_print_entry() 1866 orig_entry->orig_node->orig); in batadv_tt_global_print_entry() 1875 orig_entry->ttvn, orig_entry->orig_node->orig, in batadv_tt_global_print_entry() 1941 struct batadv_tt_orig_list_entry *orig, in batadv_tt_global_dump_subentry() argument 1949 vlan = batadv_orig_node_vlan_get(orig->orig_node, in batadv_tt_global_dump_subentry() 1964 last_ttvn = atomic_read(&orig->orig_node->last_ttvn); in batadv_tt_global_dump_subentry() 1968 orig->orig_node->orig) || in batadv_tt_global_dump_subentry() [all …]
|
D | gateway_client.c | 234 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election() 259 next_gw->orig_node->orig, in batadv_gw_election() 270 next_gw->orig_node->orig, in batadv_gw_election() 356 orig_node->orig, in batadv_gw_node_add() 419 orig_node->orig, in batadv_gw_node_update() 435 orig_node->orig); in batadv_gw_node_update()
|
D | bridge_loop_avoidance.h | 43 bool batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, u8 *orig, 90 u8 *orig, unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument
|
D | bat_iv_ogm.c | 403 ether_addr_copy(batadv_ogm_packet->orig, in batadv_iv_ogm_iface_update_mac() 509 batadv_ogm_packet->orig, in batadv_iv_ogm_send_to_if() 1194 orig_neigh_node->orig)) in batadv_iv_ogm_calc_tq() 1210 orig_neigh_node->orig, in batadv_iv_ogm_calc_tq() 1290 orig_node->orig, orig_neigh_node->orig, total_count, in batadv_iv_ogm_calc_tq() 1338 orig_node = batadv_iv_ogm_orig_get(bat_priv, batadv_ogm_packet->orig); in batadv_iv_ogm_update_seqnos() 1454 if (batadv_compare_eth(ethhdr->h_source, ogm_packet->orig)) in batadv_iv_ogm_process_per_outif() 1492 !(batadv_compare_eth(ogm_packet->orig, prev_sender)) && in batadv_iv_ogm_process_per_outif() 1666 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_iv_ogm_process() 1683 if (batadv_compare_eth(ogm_packet->orig, in batadv_iv_ogm_process() [all …]
|
D | bat_v_ogm.c | 187 ogm_packet->orig, ntohl(ogm_packet->seqno), in batadv_v_ogm_send() 242 ether_addr_copy(ogm_packet->orig, primary_iface->net_dev->dev_addr); in batadv_v_ogm_primary_iface_set() 424 ogm2->orig); in batadv_v_ogm_metric_update() 663 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_v_ogm_process() 684 orig_node = batadv_v_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_v_ogm_process() 767 if (batadv_is_my_mac(bat_priv, ogm_packet->orig)) in batadv_v_ogm_packet_recv()
|
D | distributed-arp-table.c | 429 orig_addr = bcast_pkt->orig; in batadv_dbg_arp() 496 (batadv_compare_eth(candidate->orig, max_orig_node->orig) > 0)) in batadv_is_orig_node_eligible() 562 select, max_orig_node->orig, max_orig_node->dat_addr, in batadv_choose_next_candidate() 733 struct batadv_orig_node *orig, in batadv_dat_tvlv_ogm_handler_v1() argument 738 clear_bit(BATADV_ORIG_CAPA_HAS_DAT, &orig->capabilities); in batadv_dat_tvlv_ogm_handler_v1() 740 set_bit(BATADV_ORIG_CAPA_HAS_DAT, &orig->capabilities); in batadv_dat_tvlv_ogm_handler_v1()
|
D | types.h | 306 u8 orig[ETH_ALEN]; member 515 u8 orig[ETH_ALEN]; member 1154 u8 orig[ETH_ALEN]; member 1508 struct batadv_algo_orig_ops orig; member 1584 struct batadv_orig_node *orig,
|
D | network-coding.c | 137 struct batadv_orig_node *orig, in batadv_nc_tvlv_ogm_handler_v1() argument 142 clear_bit(BATADV_ORIG_CAPA_HAS_NC, &orig->capabilities); in batadv_nc_tvlv_ogm_handler_v1() 144 set_bit(BATADV_ORIG_CAPA_HAS_NC, &orig->capabilities); in batadv_nc_tvlv_ogm_handler_v1() 359 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_purge_orig_nc_nodes() 779 if (!batadv_compare_eth(ogm_packet->orig, ogm_packet->prev_sender)) in batadv_can_nc_with_orig() 812 if (!batadv_compare_eth(nc_node->addr, orig_node->orig)) in batadv_nc_find_nc_node() 862 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() 1921 seq_printf(seq, "Node: %pM\n", orig_node->orig); in batadv_nc_nodes_seq_print_text()
|
D | bat_v_elp.c | 396 ether_addr_copy(elp_packet->orig, in batadv_v_elp_iface_activate() 442 orig_neigh = batadv_v_ogm_orig_get(bat_priv, elp_packet->orig); in batadv_v_elp_neigh_update() 515 elp_packet->orig); in batadv_v_elp_packet_recv()
|
/net/netfilter/ |
D | xt_DSCP.c | 81 u_int8_t orig, nv; in tos_tg() local 83 orig = ipv4_get_dsfield(iph); in tos_tg() 84 nv = (orig & ~info->tos_mask) ^ info->tos_value; in tos_tg() 86 if (orig != nv) { in tos_tg() 101 u_int8_t orig, nv; in tos_tg6() local 103 orig = ipv6_get_dsfield(iph); in tos_tg6() 104 nv = (orig & ~info->tos_mask) ^ info->tos_value; in tos_tg6() 106 if (orig != nv) { in tos_tg6()
|
D | nf_conntrack_core.c | 287 const struct nf_conntrack_tuple *orig, in nf_ct_invert_tuple() argument 293 inverse->src.l3num = orig->src.l3num; in nf_ct_invert_tuple() 294 if (l3proto->invert_tuple(inverse, orig) == 0) in nf_ct_invert_tuple() 297 inverse->dst.dir = !orig->dst.dir; in nf_ct_invert_tuple() 299 inverse->dst.protonum = orig->dst.protonum; in nf_ct_invert_tuple() 300 return l4proto->invert_tuple(inverse, orig); in nf_ct_invert_tuple() 1039 const struct nf_conntrack_tuple *orig, in __nf_conntrack_alloc() argument 1066 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple = *orig; in __nf_conntrack_alloc() 1091 const struct nf_conntrack_tuple *orig, in nf_conntrack_alloc() argument 1095 return __nf_conntrack_alloc(net, zone, orig, repl, gfp, 0); in nf_conntrack_alloc() [all …]
|
D | nf_conntrack_proto_udp.c | 59 const struct nf_conntrack_tuple *orig) in udp_invert_tuple() argument 61 tuple->src.u.udp.port = orig->dst.u.udp.port; in udp_invert_tuple() 62 tuple->dst.u.udp.port = orig->src.u.udp.port; in udp_invert_tuple()
|
D | nf_conntrack_proto_udplite.c | 68 const struct nf_conntrack_tuple *orig) in udplite_invert_tuple() argument 70 tuple->src.u.udp.port = orig->dst.u.udp.port; in udplite_invert_tuple() 71 tuple->dst.u.udp.port = orig->src.u.udp.port; in udplite_invert_tuple()
|
/net/netfilter/ipvs/ |
D | ip_vs_nfct.c | 150 struct nf_conntrack_tuple *orig, new_reply; in ip_vs_nfct_expect_callback() local 167 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback() 168 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback() 169 &orig->src.u3, orig->src.u.tcp.port, in ip_vs_nfct_expect_callback() 170 &orig->dst.u3, orig->dst.u.tcp.port, &p); in ip_vs_nfct_expect_callback() 178 ARG_TUPLE(orig), ARG_TUPLE(&new_reply), in ip_vs_nfct_expect_callback() 185 ARG_TUPLE(orig), ARG_TUPLE(&new_reply), in ip_vs_nfct_expect_callback() 198 ARG_TUPLE(orig), ARG_TUPLE(&new_reply), in ip_vs_nfct_expect_callback() 205 ARG_TUPLE(orig), ARG_TUPLE(&new_reply), in ip_vs_nfct_expect_callback() 212 __func__, ct, ct->status, ARG_TUPLE(orig)); in ip_vs_nfct_expect_callback()
|
/net/xfrm/ |
D | xfrm_state.c | 1175 static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig) in xfrm_state_clone() argument 1177 struct net *net = xs_net(orig); in xfrm_state_clone() 1182 memcpy(&x->id, &orig->id, sizeof(x->id)); in xfrm_state_clone() 1183 memcpy(&x->sel, &orig->sel, sizeof(x->sel)); in xfrm_state_clone() 1184 memcpy(&x->lft, &orig->lft, sizeof(x->lft)); in xfrm_state_clone() 1185 x->props.mode = orig->props.mode; in xfrm_state_clone() 1186 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone() 1187 x->props.reqid = orig->props.reqid; in xfrm_state_clone() 1188 x->props.family = orig->props.family; in xfrm_state_clone() 1189 x->props.saddr = orig->props.saddr; in xfrm_state_clone() [all …]
|
/net/ipv4/netfilter/ |
D | nf_conntrack_proto_icmp.c | 62 const struct nf_conntrack_tuple *orig) in icmp_invert_tuple() argument 64 if (orig->dst.u.icmp.type >= sizeof(invmap) || in icmp_invert_tuple() 65 !invmap[orig->dst.u.icmp.type]) in icmp_invert_tuple() 68 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmp_invert_tuple() 69 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in icmp_invert_tuple() 70 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmp_invert_tuple()
|
/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 564 struct htable *t, *orig; in mtype_resize() local 583 orig = rcu_dereference_bh_nfnl(h->table); in mtype_resize() 584 htable_bits = orig->htable_bits; in mtype_resize() 605 orig = __ipset_dereference_protected(h->table, 1); in mtype_resize() 607 atomic_set(&orig->ref, 1); in mtype_resize() 608 atomic_inc(&orig->uref); in mtype_resize() 610 set->name, orig->htable_bits, htable_bits, orig); in mtype_resize() 611 for (i = 0; i < jhash_size(orig->htable_bits); i++) { in mtype_resize() 612 n = __ipset_dereference_protected(hbucket(orig, i), 1); in mtype_resize() 678 orig->htable_bits, orig, t->htable_bits, t); in mtype_resize() [all …]
|
/net/ipv6/netfilter/ |
D | nf_conntrack_proto_icmpv6.c | 75 const struct nf_conntrack_tuple *orig) in icmpv6_invert_tuple() argument 77 int type = orig->dst.u.icmp.type - 128; in icmpv6_invert_tuple() 81 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmpv6_invert_tuple() 83 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmpv6_invert_tuple()
|