Home
last modified time | relevance | path

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

/Linux-v5.4/net/ipv4/
Dipip.c417 __u32 *fwmark) in ipip_netlink_parms() argument
457 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip_netlink_parms()
501 __u32 fwmark = 0; in ipip_newlink() local
510 ipip_netlink_parms(data, &p, &t->collect_md, &fwmark); in ipip_newlink()
511 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipip_newlink()
522 __u32 fwmark = t->fwmark; in ipip_changelink() local
531 ipip_netlink_parms(data, &p, &collect_md, &fwmark); in ipip_changelink()
539 return ip_tunnel_changelink(dev, tb, &p, fwmark); in ipip_changelink()
587 nla_put_u32(skb, IFLA_IPTUN_FWMARK, tunnel->fwmark)) in ipip_fill_info()
Dip_vti.c492 __u32 *fwmark) in vti_netlink_parms() argument
519 *fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti_netlink_parms()
527 __u32 fwmark = 0; in vti_newlink() local
529 vti_netlink_parms(data, &parms, &fwmark); in vti_newlink()
530 return ip_tunnel_newlink(dev, tb, &parms, fwmark); in vti_newlink()
538 __u32 fwmark = t->fwmark; in vti_changelink() local
541 vti_netlink_parms(data, &p, &fwmark); in vti_changelink()
542 return ip_tunnel_changelink(dev, tb, &p, fwmark); in vti_changelink()
573 nla_put_u32(skb, IFLA_VTI_FWMARK, t->fwmark)) in vti_fill_info()
Dip_tunnel.c300 tunnel->fwmark, 0); in ip_tunnel_bind_dev()
737 tunnel->fwmark, skb_get_hash(skb)); in ip_tunnel_xmit()
837 __u32 fwmark) in ip_tunnel_update() argument
854 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
858 t->fwmark = fwmark; in ip_tunnel_update()
1119 struct ip_tunnel_parm *p, __u32 fwmark) in ip_tunnel_newlink() argument
1140 nt->fwmark = fwmark; in ip_tunnel_newlink()
1171 struct ip_tunnel_parm *p, __u32 fwmark) in ip_tunnel_changelink() argument
1203 ip_tunnel_update(itn, t, dev, p, !tb[IFLA_MTU], fwmark); in ip_tunnel_changelink()
Dip_gre.c1092 __u32 *fwmark) in ipgre_netlink_parms() argument
1150 *fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ipgre_netlink_parms()
1281 __u32 fwmark = 0; in ipgre_newlink() local
1292 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_newlink()
1295 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipgre_newlink()
1304 __u32 fwmark = t->fwmark; in ipgre_changelink() local
1315 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_changelink()
1319 err = ip_tunnel_changelink(dev, tb, &p, fwmark); in ipgre_changelink()
1417 nla_put_u32(skb, IFLA_GRE_FWMARK, t->fwmark)) in ipgre_fill_info()
/Linux-v5.4/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.c283 static inline unsigned int ip_vs_svc_fwm_hashkey(struct netns_ipvs *ipvs, __u32 fwmark) in ip_vs_svc_fwm_hashkey() argument
285 return (((size_t)ipvs>>8) ^ fwmark) & IP_VS_SVC_TAB_MASK; in ip_vs_svc_fwm_hashkey()
303 if (svc->fwmark == 0) { in ip_vs_svc_hash()
314 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); in ip_vs_svc_hash()
337 if (svc->fwmark == 0) { in ip_vs_svc_unhash()
383 __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) in __ip_vs_svc_fwm_find() argument
389 hash = ip_vs_svc_fwm_hashkey(ipvs, fwmark); in __ip_vs_svc_fwm_find()
392 if (svc->fwmark == fwmark && svc->af == af in __ip_vs_svc_fwm_find()
404 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, in ip_vs_service_find() argument
412 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
733 s->v4.fwmark = htonl(cp->fwmark); in ip_vs_sync_conn()
849 unsigned long timeout, __u32 fwmark, in ip_vs_proc_conn() argument
913 fwmark, flags); in ip_vs_proc_conn()
916 fwmark); in ip_vs_proc_conn()
1183 ntohl(s->v4.timeout), ntohl(s->v4.fwmark), in ip_vs_proc_sync_conn()
1190 ntohl(s->v6.timeout), ntohl(s->v6.fwmark), in ip_vs_proc_sync_conn()
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()
1169 if (svc->fwmark) in ip_vs_new_conn_out()
Dip_vs_conn.c652 cp->protocol, cp->fwmark, cp->flags); in ip_vs_try_bind_dest()
903 struct ip_vs_dest *dest, __u32 fwmark) in ip_vs_conn_new() argument
931 cp->fwmark = fwmark; in ip_vs_conn_new()
/Linux-v5.4/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.4/net/ipv6/
Dsit.c899 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
1099 __u32 fwmark) in ipip6_tunnel_update() argument
1114 if (t->parms.link != p->link || t->fwmark != fwmark) { in ipip6_tunnel_update()
1116 t->fwmark = fwmark; in ipip6_tunnel_update()
1250 ipip6_tunnel_update(t, &p, t->fwmark); in ipip6_tunnel_ioctl()
1450 __u32 *fwmark) in ipip6_netlink_parms() argument
1490 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip6_netlink_parms()
1584 ipip6_netlink_parms(data, &nt->parms, &nt->fwmark); in ipip6_newlink()
1621 __u32 fwmark = t->fwmark; in ipip6_changelink() local
1633 ipip6_netlink_parms(data, &p, &fwmark); in ipip6_changelink()
[all …]
Dip6_vti.c684 t->parms.fwmark = p->fwmark; in vti6_tnl_change()
964 parms->fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti6_netlink_parms()
1047 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
Dip6_tunnel.c1277 fl6.flowi6_mark = t->parms.fwmark; in ip4ip6_tnl_xmit()
1365 fl6.flowi6_mark = t->parms.fwmark; in ip6ip6_tnl_xmit()
1499 t->parms.fwmark = p->fwmark; in ip6_tnl_change()
1960 parms->fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ip6_tnl_netlink_parms()
2121 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
Dip6_gre.c653 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv4()
698 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv6()
1171 t->parms.fwmark = p->fwmark; in ip6gre_tnl_copy_tnl_parm()
1789 parms->fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ip6gre_netlink_parms()
2143 nla_put_u32(skb, IFLA_GRE_FWMARK, p->fwmark)) in ip6gre_fill_info()
/Linux-v5.4/include/net/
Dip_tunnels.h142 __u32 fwmark; member
287 struct ip_tunnel_parm *p, __u32 fwmark);
289 struct ip_tunnel_parm *p, __u32 fwmark);
Dip_vs.h531 __u32 fwmark; /* Fire wall mark from skb */ member
577 u32 fwmark; /* firwall mark of service */ member
623 __u32 fwmark; /* firewall mark of the service */ member
1233 struct ip_vs_dest *dest, __u32 fwmark);
1403 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
1426 __u16 protocol, __u32 fwmark, __u32 flags);
Dip6_tunnel.h38 __u32 fwmark; member
/Linux-v5.4/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.
341 socket mark will set the mark of the accepting socket to the fwmark of
343 (starting from the first SYNACK) to be sent with that fwmark. The
345 have a fwmark set via setsockopt(SOL_SOCKET, SO_MARK, ...) are
1593 Controls the fwmark of kernel-generated IPv6 reply packets that are not
1595 If unset, these packets have a fwmark of zero. If set, they have the
1596 fwmark of the packet they are replying to.
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.c308 0, 0, parms.link, tun->fwmark, 0); in mlxsw_sp_span_gretap4_route()
412 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()
/Linux-v5.4/tools/testing/selftests/net/
Drtnetlink.sh188 ip rule add fwmark 1 lookup 100
194 ip rule del fwmark 1 lookup 100