Home
last modified time | relevance | path

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

/Linux-v5.10/net/ipv4/
Dipip.c406 __u32 *fwmark) in ipip_netlink_parms() argument
446 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip_netlink_parms()
490 __u32 fwmark = 0; in ipip_newlink() local
499 ipip_netlink_parms(data, &p, &t->collect_md, &fwmark); in ipip_newlink()
500 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipip_newlink()
511 __u32 fwmark = t->fwmark; in ipip_changelink() local
520 ipip_netlink_parms(data, &p, &collect_md, &fwmark); in ipip_changelink()
528 return ip_tunnel_changelink(dev, tb, &p, fwmark); in ipip_changelink()
576 nla_put_u32(skb, IFLA_IPTUN_FWMARK, tunnel->fwmark)) in ipip_fill_info()
Dip_vti.c530 __u32 *fwmark) in vti_netlink_parms() argument
557 *fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti_netlink_parms()
565 __u32 fwmark = 0; in vti_newlink() local
567 vti_netlink_parms(data, &parms, &fwmark); in vti_newlink()
568 return ip_tunnel_newlink(dev, tb, &parms, fwmark); in vti_newlink()
576 __u32 fwmark = t->fwmark; in vti_changelink() local
579 vti_netlink_parms(data, &p, &fwmark); in vti_changelink()
580 return ip_tunnel_changelink(dev, tb, &p, fwmark); in vti_changelink()
611 nla_put_u32(skb, IFLA_VTI_FWMARK, t->fwmark)) in vti_fill_info()
Dip_gre.c1121 __u32 *fwmark) in ipgre_netlink_parms() argument
1179 *fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ipgre_netlink_parms()
1188 __u32 *fwmark) in erspan_netlink_parms() argument
1193 err = ipgre_netlink_parms(dev, data, tb, parms, fwmark); in erspan_netlink_parms()
1347 __u32 fwmark = 0; in ipgre_newlink() local
1354 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_newlink()
1357 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipgre_newlink()
1365 __u32 fwmark = 0; in erspan_newlink() local
1372 err = erspan_netlink_parms(dev, data, tb, &p, &fwmark); in erspan_newlink()
1375 return ip_tunnel_newlink(dev, tb, &p, fwmark); in erspan_newlink()
[all …]
Dip_tunnel.c298 tunnel->fwmark, 0); in ip_tunnel_bind_dev()
726 tunnel->fwmark, skb_get_hash(skb)); in ip_tunnel_xmit()
826 __u32 fwmark) in ip_tunnel_update() argument
843 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
847 t->fwmark = fwmark; in ip_tunnel_update()
1122 struct ip_tunnel_parm *p, __u32 fwmark) in ip_tunnel_newlink() argument
1143 nt->fwmark = fwmark; in ip_tunnel_newlink()
1174 struct ip_tunnel_parm *p, __u32 fwmark) in ip_tunnel_changelink() argument
1206 ip_tunnel_update(itn, t, dev, p, !tb[IFLA_MTU], fwmark); in ip_tunnel_changelink()
/Linux-v5.10/net/netfilter/ipvs/
Dip_vs_sched.c148 if (svc->fwmark) { in ip_vs_scheduler_err()
150 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err()
Dip_vs_ctl.c295 static inline unsigned int ip_vs_svc_fwm_hashkey(struct netns_ipvs *ipvs, __u32 fwmark) in ip_vs_svc_fwm_hashkey() argument
297 return (((size_t)ipvs>>8) ^ fwmark) & IP_VS_SVC_TAB_MASK; in ip_vs_svc_fwm_hashkey()
315 if (svc->fwmark == 0) { in ip_vs_svc_hash()
326 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); in ip_vs_svc_hash()
349 if (svc->fwmark == 0) { in ip_vs_svc_unhash()
395 __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) in __ip_vs_svc_fwm_find() argument
401 hash = ip_vs_svc_fwm_hashkey(ipvs, fwmark); in __ip_vs_svc_fwm_find()
404 if (svc->fwmark == fwmark && svc->af == af in __ip_vs_svc_fwm_find()
416 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, in ip_vs_service_find() argument
424 if (fwmark) { in ip_vs_service_find()
[all …]
Dip_vs_sync.c144 __be32 fwmark; /* Firewall mark from skb */ member
166 __be32 fwmark; /* Firewall mark from skb */ member
730 s->v4.fwmark = htonl(cp->fwmark); in ip_vs_sync_conn()
846 unsigned long timeout, __u32 fwmark, in ip_vs_proc_conn() argument
910 fwmark, flags); in ip_vs_proc_conn()
913 fwmark); in ip_vs_proc_conn()
1180 ntohl(s->v4.timeout), ntohl(s->v4.fwmark), in ip_vs_proc_sync_conn()
1187 ntohl(s->v6.timeout), ntohl(s->v6.fwmark), in ip_vs_proc_sync_conn()
Dip_vs_conn.c664 cp->protocol, cp->fwmark, cp->flags); in ip_vs_try_bind_dest()
943 struct ip_vs_dest *dest, __u32 fwmark) in ip_vs_conn_new() argument
971 cp->fwmark = fwmark; in ip_vs_conn_new()
Dip_vs_core.c275 const union nf_inet_addr fwmark = { .ip = htonl(svc->fwmark) }; in ip_vs_sched_persist() local
338 if (svc->fwmark) { in ip_vs_sched_persist()
340 vaddr = &fwmark; in ip_vs_sched_persist()
528 if (!svc->fwmark && vport != svc->port) { in ip_vs_schedule()
612 if (sysctl_cache_bypass(ipvs) && svc->fwmark && in ip_vs_leave()
1162 if (svc->fwmark) in ip_vs_new_conn_out()
/Linux-v5.10/include/uapi/linux/
Dip_vs.h149 __u32 fwmark; /* firwall mark of service */ member
211 __u32 fwmark; /* firwall mark of service */ member
251 __u32 fwmark; /* firwall mark of service */ member
/Linux-v5.10/net/ipv6/
Dsit.c939 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
1138 __u32 fwmark) in ipip6_tunnel_update() argument
1153 if (t->parms.link != p->link || t->fwmark != fwmark) { in ipip6_tunnel_update()
1155 t->fwmark = fwmark; in ipip6_tunnel_update()
1322 ipip6_tunnel_update(t, p, t->fwmark); in ipip6_tunnel_change()
1496 __u32 *fwmark) in ipip6_netlink_parms() argument
1536 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip6_netlink_parms()
1630 ipip6_netlink_parms(data, &nt->parms, &nt->fwmark); in ipip6_newlink()
1667 __u32 fwmark = t->fwmark; in ipip6_changelink() local
1679 ipip6_netlink_parms(data, &p, &fwmark); in ipip6_changelink()
[all …]
Dip6_vti.c720 t->parms.fwmark = p->fwmark; in vti6_tnl_change()
1001 parms->fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti6_netlink_parms()
1084 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
Dip6_gre.c658 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv4()
703 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv6()
1197 t->parms.fwmark = p->fwmark; in ip6gre_tnl_copy_tnl_parm()
1815 parms->fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ip6gre_netlink_parms()
2168 nla_put_u32(skb, IFLA_GRE_FWMARK, p->fwmark)) in ip6gre_fill_info()
Dip6_tunnel.c1380 fl6.flowi6_mark = t->parms.fwmark; in ipxip6_tnl_xmit()
1558 t->parms.fwmark = p->fwmark; in ip6_tnl_change()
2018 parms->fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ip6_tnl_netlink_parms()
2179 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
/Linux-v5.10/drivers/net/wireguard/
Ddevice.h57 u32 fwmark; member
Dsocket.c27 .flowi4_mark = wg->fwmark, in send4()
36 skb->mark = wg->fwmark; in send4()
105 .flowi6_mark = wg->fwmark, in send6()
116 skb->mark = wg->fwmark; in send6()
Dnetlink.c234 nla_put_u32(skb, WGDEVICE_A_FWMARK, wg->fwmark) || in wg_get_device_dump()
529 wg->fwmark = nla_get_u32(info->attrs[WGDEVICE_A_FWMARK]); in wg_set_device()
/Linux-v5.10/include/net/
Dip_tunnels.h142 __u32 fwmark; member
288 struct ip_tunnel_parm *p, __u32 fwmark);
290 struct ip_tunnel_parm *p, __u32 fwmark);
Dip_vs.h529 __u32 fwmark; /* Fire wall mark from skb */ member
575 u32 fwmark; /* firwall mark of service */ member
621 __u32 fwmark; /* firewall mark of the service */ member
1245 struct ip_vs_dest *dest, __u32 fwmark);
1415 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
1438 __u16 protocol, __u32 fwmark, __u32 flags);
Dip6_tunnel.h38 __u32 fwmark; member
/Linux-v5.10/tools/testing/selftests/wireguard/
Dnetns.sh346 n1 wg set wg0 fwmark 51820 peer "$pub2" allowed-ips 192.168.99.7,abab::1111
348 ip1 -6 rule add not fwmark 51820 table 51820
351 ip1 -4 rule add not fwmark 51820 table 51820
/Linux-v5.10/Documentation/networking/
Dtproxy.rst33 # ip rule add fwmark 1 lookup 100
Dip-sysctl.rst71 Controls the fwmark of kernel-generated IPv4 reply packets that are not
73 If unset, these packets have a fwmark of zero. If set, they have the
74 fwmark of the packet they are replying to.
393 socket mark will set the mark of the accepting socket to the fwmark of
395 (starting from the first SYNACK) to be sent with that fwmark. The
397 have a fwmark set via setsockopt(SOL_SOCKET, SO_MARK, ...) are
1828 Controls the fwmark of kernel-generated IPv6 reply packets that are not
1830 If unset, these packets have a fwmark of zero. If set, they have the
1831 fwmark of the packet they are replying to.
/Linux-v5.10/tools/testing/selftests/net/
Drtnetlink.sh187 ip rule add fwmark 1 lookup 100
193 ip rule del fwmark 1 lookup 100
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.c423 0, 0, parms.link, tun->fwmark, 0); in mlxsw_sp_span_gretap4_route()
530 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()