Home
last modified time | relevance | path

Searched refs:nla_get_in_addr (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/net/ipv4/
Dfib_rules.c261 rule4->src = nla_get_in_addr(tb[FRA_SRC]); in fib4_rule_configure()
264 rule4->dst = nla_get_in_addr(tb[FRA_DST]); in fib4_rule_configure()
331 if (frh->src_len && (rule4->src != nla_get_in_addr(tb[FRA_SRC]))) in fib4_rule_compare()
334 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
Dip_vti.c554 parms->iph.saddr = nla_get_in_addr(data[IFLA_VTI_LOCAL]); in vti_netlink_parms()
557 parms->iph.daddr = nla_get_in_addr(data[IFLA_VTI_REMOTE]); in vti_netlink_parms()
Ddevinet.c676 ifa->ifa_local != nla_get_in_addr(tb[IFA_LOCAL])) in inet_rtm_deladdr()
684 !inet_ifa_match(nla_get_in_addr(tb[IFA_ADDRESS]), ifa))) in inet_rtm_deladdr()
891 ifa->ifa_local = nla_get_in_addr(tb[IFA_LOCAL]); in rtm_to_ifaddr()
892 ifa->ifa_address = nla_get_in_addr(tb[IFA_ADDRESS]); in rtm_to_ifaddr()
895 ifa->ifa_broadcast = nla_get_in_addr(tb[IFA_BROADCAST]); in rtm_to_ifaddr()
Dfou_core.c690 cfg->udp_config.local_ip.s_addr = nla_get_in_addr(attr); in parse_nl_config()
696 cfg->udp_config.peer_ip.s_addr = nla_get_in_addr(attr); in parse_nl_config()
Dip_tunnel_core.c697 tun_info->key.u.ipv4.dst = nla_get_in_addr(tb[LWTUNNEL_IP_DST]); in ip_tun_build_state()
700 tun_info->key.u.ipv4.src = nla_get_in_addr(tb[LWTUNNEL_IP_SRC]); in ip_tun_build_state()
Dip_gre.c1160 parms->iph.saddr = nla_get_in_addr(data[IFLA_GRE_LOCAL]); in ipgre_netlink_parms()
1163 parms->iph.daddr = nla_get_in_addr(data[IFLA_GRE_REMOTE]); in ipgre_netlink_parms()
Dtcp_metrics.c802 inetpeer_set_addr_v4(addr, nla_get_in_addr(a)); in __parse_nl_addr()
Dipmr.c2547 src = tb[RTA_SRC] ? nla_get_in_addr(tb[RTA_SRC]) : 0; in ipmr_rtm_getroute()
2548 grp = tb[RTA_DST] ? nla_get_in_addr(tb[RTA_DST]) : 0; in ipmr_rtm_getroute()
Droute.c3304 src = tb[RTA_SRC] ? nla_get_in_addr(tb[RTA_SRC]) : 0; in inet_rtm_getroute()
3305 dst = tb[RTA_DST] ? nla_get_in_addr(tb[RTA_DST]) : 0; in inet_rtm_getroute()
Dfib_semantics.c685 *gw = nla_get_in_addr(nla); in fib_gw_from_attr()
/linux-6.6.21/drivers/net/vxlan/
Dvxlan_private.h96 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr()
135 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr()
Dvxlan_vnifilter.c876 nla_get_in_addr(vattrs[VXLAN_VNIFILTER_ENTRY_GROUP]); in vxlan_process_vni_filter()
Dvxlan_mdb.c344 if (ipv4_is_multicast(nla_get_in_addr(attr))) { in vxlan_mdb_is_valid_source()
Dvxlan_core.c3943 conf->remote_ip.sin.sin_addr.s_addr = nla_get_in_addr(data[IFLA_VXLAN_GROUP]); in vxlan_nl2conf()
3966 conf->saddr.sin.sin_addr.s_addr = nla_get_in_addr(data[IFLA_VXLAN_LOCAL]); in vxlan_nl2conf()
/linux-6.6.21/net/sched/
Dact_tunnel_key.c450 saddr = nla_get_in_addr(tb[TCA_TUNNEL_KEY_ENC_IPV4_SRC]); in tunnel_key_init()
451 daddr = nla_get_in_addr(tb[TCA_TUNNEL_KEY_ENC_IPV4_DST]); in tunnel_key_init()
Dact_ct.c1147 nla_get_in_addr(tb[TCA_CT_NAT_IPV4_MIN]); in tcf_ct_fill_params_nat()
1150 nla_get_in_addr(max_attr) : in tcf_ct_fill_params_nat()
/linux-6.6.21/net/l2tp/
Dl2tp_netlink.c177 cfg->local_ip.s_addr = nla_get_in_addr(attrs[L2TP_ATTR_IP_SADDR]); in l2tp_nl_cmd_tunnel_create_get_addr()
178 cfg->peer_ip.s_addr = nla_get_in_addr(attrs[L2TP_ATTR_IP_DADDR]); in l2tp_nl_cmd_tunnel_create_get_addr()
/linux-6.6.21/net/bridge/
Dbr_mdb.c159 ip->src.ip4 = nla_get_in_addr(mdb_attrs[MDBE_ATTR_SOURCE]); in __mdb_entry_to_br_ip()
650 if (ipv4_is_multicast(nla_get_in_addr(attr))) { in is_valid_mdb_source()
/linux-6.6.21/include/net/
Dnetlink.h1758 static inline __be32 nla_get_in_addr(const struct nlattr *nla) in nla_get_in_addr() function
/linux-6.6.21/drivers/net/
Damt.c3206 amt->local_ip = nla_get_in_addr(data[IFLA_AMT_LOCAL_IP]); in amt_newlink()
3250 amt->discovery_ip = nla_get_in_addr(data[IFLA_AMT_DISCOVERY_IP]); in amt_newlink()
Dgeneve.c1461 nla_get_in_addr(data[IFLA_GENEVE_REMOTE]); in geneve_nl2info()
/linux-6.6.21/net/openvswitch/
Dflow_netlink.c704 nla_get_in_addr(a), is_mask); in ip_tun_from_nlattr()
709 nla_get_in_addr(a), is_mask); in ip_tun_from_nlattr()
/linux-6.6.21/net/netfilter/
Dnf_conntrack_netlink.c1283 t->src.u3.ip = nla_get_in_addr(tb[CTA_IP_V4_SRC]); in ipv4_nlattr_to_tuple()
1290 t->dst.u3.ip = nla_get_in_addr(tb[CTA_IP_V4_DST]); in ipv4_nlattr_to_tuple()
/linux-6.6.21/net/mptcp/
Dpm_netlink.c1238 addr->addr.s_addr = nla_get_in_addr(tb[addr_addr]); in mptcp_pm_parse_pm_addr_attr()
/linux-6.6.21/net/netfilter/ipvs/
Dip_vs_ctl.c3815 c.mcast_group.ip = nla_get_in_addr(a); in ip_vs_genl_new_daemon()

12