/Linux-v5.10/net/ipv4/ |
D | ipip.c | 406 __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()
|
D | ip_vti.c | 530 __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()
|
D | ip_gre.c | 1121 __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 …]
|
D | ip_tunnel.c | 298 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/ |
D | ip_vs_sched.c | 148 if (svc->fwmark) { in ip_vs_scheduler_err() 150 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err()
|
D | ip_vs_ctl.c | 295 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 …]
|
D | ip_vs_sync.c | 144 __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()
|
D | ip_vs_conn.c | 664 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()
|
D | ip_vs_core.c | 275 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/ |
D | ip_vs.h | 149 __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/ |
D | sit.c | 939 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 …]
|
D | ip6_vti.c | 720 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()
|
D | ip6_gre.c | 658 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()
|
D | ip6_tunnel.c | 1380 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/ |
D | device.h | 57 u32 fwmark; member
|
D | socket.c | 27 .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()
|
D | netlink.c | 234 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/ |
D | ip_tunnels.h | 142 __u32 fwmark; member 288 struct ip_tunnel_parm *p, __u32 fwmark); 290 struct ip_tunnel_parm *p, __u32 fwmark);
|
D | ip_vs.h | 529 __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);
|
D | ip6_tunnel.h | 38 __u32 fwmark; member
|
/Linux-v5.10/tools/testing/selftests/wireguard/ |
D | netns.sh | 346 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/ |
D | tproxy.rst | 33 # ip rule add fwmark 1 lookup 100
|
D | ip-sysctl.rst | 71 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/ |
D | rtnetlink.sh | 187 ip rule add fwmark 1 lookup 100 193 ip rule del fwmark 1 lookup 100
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_span.c | 423 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()
|