Home
last modified time | relevance | path

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

/Linux-v4.19/net/ipv4/
Dipip.c420 __u32 *fwmark) in ipip_netlink_parms() argument
460 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip_netlink_parms()
504 __u32 fwmark = 0; in ipip_newlink() local
513 ipip_netlink_parms(data, &p, &t->collect_md, &fwmark); in ipip_newlink()
514 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipip_newlink()
525 __u32 fwmark = t->fwmark; in ipip_changelink() local
534 ipip_netlink_parms(data, &p, &collect_md, &fwmark); in ipip_changelink()
542 return ip_tunnel_changelink(dev, tb, &p, fwmark); in ipip_changelink()
590 nla_put_u32(skb, IFLA_IPTUN_FWMARK, tunnel->fwmark)) in ipip_fill_info()
Dip_vti.c466 __u32 *fwmark) in vti_netlink_parms() argument
493 *fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti_netlink_parms()
501 __u32 fwmark = 0; in vti_newlink() local
503 vti_netlink_parms(data, &parms, &fwmark); in vti_newlink()
504 return ip_tunnel_newlink(dev, tb, &parms, fwmark); in vti_newlink()
512 __u32 fwmark = t->fwmark; in vti_changelink() local
515 vti_netlink_parms(data, &p, &fwmark); in vti_changelink()
516 return ip_tunnel_changelink(dev, tb, &p, fwmark); in vti_changelink()
547 nla_put_u32(skb, IFLA_VTI_FWMARK, t->fwmark)) in vti_fill_info()
Dip_tunnel.c313 tunnel->fwmark); in ip_tunnel_bind_dev()
578 RT_TOS(tos), tunnel->parms.link, tunnel->fwmark); in ip_md_tunnel_xmit()
717 tunnel->fwmark); in ip_tunnel_xmit()
806 __u32 fwmark) in ip_tunnel_update() argument
823 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
827 t->fwmark = fwmark; in ip_tunnel_update()
1088 struct ip_tunnel_parm *p, __u32 fwmark) in ip_tunnel_newlink() argument
1109 nt->fwmark = fwmark; in ip_tunnel_newlink()
1140 struct ip_tunnel_parm *p, __u32 fwmark) in ip_tunnel_changelink() argument
1172 ip_tunnel_update(itn, t, dev, p, !tb[IFLA_MTU], fwmark); in ip_tunnel_changelink()
Dip_gre.c1162 __u32 *fwmark) in ipgre_netlink_parms() argument
1220 *fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ipgre_netlink_parms()
1357 __u32 fwmark = 0; in ipgre_newlink() local
1368 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_newlink()
1371 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipgre_newlink()
1380 __u32 fwmark = t->fwmark; in ipgre_changelink() local
1391 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_changelink()
1395 err = ip_tunnel_changelink(dev, tb, &p, fwmark); in ipgre_changelink()
1474 nla_put_u32(skb, IFLA_GRE_FWMARK, t->fwmark)) in ipgre_fill_info()
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_sched.c153 if (svc->fwmark) { in ip_vs_scheduler_err()
155 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err()
Dip_vs_ctl.c288 static inline unsigned int ip_vs_svc_fwm_hashkey(struct netns_ipvs *ipvs, __u32 fwmark) in ip_vs_svc_fwm_hashkey() argument
290 return (((size_t)ipvs>>8) ^ fwmark) & IP_VS_SVC_TAB_MASK; in ip_vs_svc_fwm_hashkey()
308 if (svc->fwmark == 0) { in ip_vs_svc_hash()
319 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); in ip_vs_svc_hash()
342 if (svc->fwmark == 0) { in ip_vs_svc_unhash()
388 __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) in __ip_vs_svc_fwm_find() argument
394 hash = ip_vs_svc_fwm_hashkey(ipvs, fwmark); in __ip_vs_svc_fwm_find()
397 if (svc->fwmark == fwmark && svc->af == af in __ip_vs_svc_fwm_find()
409 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, in ip_vs_service_find() argument
417 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
729 s->v4.fwmark = htonl(cp->fwmark); in ip_vs_sync_conn()
845 unsigned long timeout, __u32 fwmark, in ip_vs_proc_conn() argument
909 fwmark, flags); in ip_vs_proc_conn()
912 fwmark); in ip_vs_proc_conn()
1179 ntohl(s->v4.timeout), ntohl(s->v4.fwmark), in ip_vs_proc_sync_conn()
1186 ntohl(s->v6.timeout), ntohl(s->v6.fwmark), in ip_vs_proc_sync_conn()
Dip_vs_core.c254 const union nf_inet_addr fwmark = { .ip = htonl(svc->fwmark) }; in ip_vs_sched_persist() local
317 if (svc->fwmark) { in ip_vs_sched_persist()
319 vaddr = &fwmark; in ip_vs_sched_persist()
505 if (!svc->fwmark && vport != svc->port) { in ip_vs_schedule()
589 if (sysctl_cache_bypass(ipvs) && svc->fwmark && in ip_vs_leave()
1144 if (svc->fwmark) in ip_vs_new_conn_out()
Dip_vs_conn.c657 cp->protocol, cp->fwmark, cp->flags); in ip_vs_try_bind_dest()
908 struct ip_vs_dest *dest, __u32 fwmark) in ip_vs_conn_new() argument
936 cp->fwmark = fwmark; in ip_vs_conn_new()
/Linux-v4.19/include/uapi/linux/
Dip_vs.h136 __u32 fwmark; /* firwall mark of service */ member
198 __u32 fwmark; /* firwall mark of service */ member
238 __u32 fwmark; /* firwall mark of service */ member
/Linux-v4.19/net/ipv6/
Dsit.c897 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
1089 __u32 fwmark) in ipip6_tunnel_update() argument
1104 if (t->parms.link != p->link || t->fwmark != fwmark) { in ipip6_tunnel_update()
1106 t->fwmark = fwmark; in ipip6_tunnel_update()
1240 ipip6_tunnel_update(t, &p, t->fwmark); in ipip6_tunnel_ioctl()
1440 __u32 *fwmark) in ipip6_netlink_parms() argument
1480 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip6_netlink_parms()
1574 ipip6_netlink_parms(data, &nt->parms, &nt->fwmark); in ipip6_newlink()
1611 __u32 fwmark = t->fwmark; in ipip6_changelink() local
1623 ipip6_netlink_parms(data, &p, &fwmark); in ipip6_changelink()
[all …]
Dip6_vti.c687 t->parms.fwmark = p->fwmark; in vti6_tnl_change()
967 parms->fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti6_netlink_parms()
1050 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
Dip6_tunnel.c1285 fl6.flowi6_mark = t->parms.fwmark; in ip4ip6_tnl_xmit()
1377 fl6.flowi6_mark = t->parms.fwmark; in ip6ip6_tnl_xmit()
1509 t->parms.fwmark = p->fwmark; in ip6_tnl_change()
1970 parms->fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ip6_tnl_netlink_parms()
2131 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
Dip6_gre.c672 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv4()
716 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv6()
1183 t->parms.fwmark = p->fwmark; in ip6gre_tnl_copy_tnl_parm()
1776 parms->fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ip6gre_netlink_parms()
2131 nla_put_u32(skb, IFLA_GRE_FWMARK, p->fwmark) || in ip6gre_fill_info()
/Linux-v4.19/include/net/
Dip_tunnels.h142 __u32 fwmark; member
305 struct ip_tunnel_parm *p, __u32 fwmark);
307 struct ip_tunnel_parm *p, __u32 fwmark);
Dip_vs.h534 __u32 fwmark; /* Fire wall mark from skb */ member
580 u32 fwmark; /* firwall mark of service */ member
622 __u32 fwmark; /* firewall mark of the service */ member
1226 struct ip_vs_dest *dest, __u32 fwmark);
1396 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
1416 __u16 protocol, __u32 fwmark, __u32 flags);
Dip6_tunnel.h38 __u32 fwmark; member
/Linux-v4.19/Documentation/networking/
Dtproxy.txt30 # ip rule add fwmark 1 lookup 100
Dip-sysctl.txt60 Controls the fwmark of kernel-generated IPv4 reply packets that are not
62 If unset, these packets have a fwmark of zero. If set, they have the
63 fwmark of the packet they are replying to.
1496 Controls the fwmark of kernel-generated IPv6 reply packets that are not
1498 If unset, these packets have a fwmark of zero. If set, they have the
1499 fwmark of the packet they are replying to.
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.c308 0, 0, parms.link, tun->fwmark); in mlxsw_sp_span_gretap4_route()
408 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()
/Linux-v4.19/tools/testing/selftests/net/
Drtnetlink.sh188 ip rule add fwmark 1 lookup 100
194 ip rule del fwmark 1 lookup 100