Home
last modified time | relevance | path

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

12

/linux/net/ipv4/
H A Dipip.c454 bool *collect_md, __u32 *fwmark) in ipip_netlink_parms()
472 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip_netlink_parms()
484 __u32 fwmark = 0; in ipip_newlink()
493 ipip_netlink_parms(data, &p, &t->collect_md, &fwmark); in ipip_newlink()
495 fwmark); in ipip_newlink()
506 __u32 fwmark = t->fwmark; in ipip_changelink()
518 ipip_netlink_parms(data, &p, &collect_md, &fwmark); in ipip_changelink()
526 return ip_tunnel_changelink(dev, tb, &p, fwmark); in ipip_changelink()
574 nla_put_u32(skb, IFLA_IPTUN_FWMARK, tunnel->fwmark)) in ipip_fill_info()
453 ipip_netlink_parms(struct nlattr * data[],struct ip_tunnel_parm_kern * parms,bool * collect_md,__u32 * fwmark) ipip_netlink_parms() argument
483 __u32 fwmark = 0; ipip_newlink() local
505 __u32 fwmark = t->fwmark; ipip_changelink() local
[all...]
H A Dip_vti.c547 __u32 *fwmark) in vti_netlink_parms() argument
574 *fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti_netlink_parms()
584 __u32 fwmark = 0; in vti_newlink() local
586 vti_netlink_parms(data, &parms, &fwmark); in vti_newlink()
588 &parms, fwmark); in vti_newlink()
597 __u32 fwmark = t->fwmark; in vti_changelink() local
602 vti_netlink_parms(data, &p, &fwmark); in vti_changelink()
603 return ip_tunnel_changelink(dev, tb, &p, fwmark); in vti_changelink()
634 nla_put_u32(skb, IFLA_VTI_FWMARK, t->fwmark)) in vti_fill_info()
[all...]
H A Dip_gre.c1190 __u32 *fwmark) in ipgre_netlink_parms() argument
1250 *fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ipgre_netlink_parms()
1259 __u32 *fwmark) in erspan_netlink_parms() argument
1264 err = ipgre_netlink_parms(dev, data, tb, parms, fwmark); in erspan_netlink_parms()
1421 __u32 fwmark = 0; in ipgre_newlink()
1428 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_newlink()
1432 fwmark); in ipgre_newlink()
1442 __u32 fwmark = 0; in erspan_newlink()
1449 err = erspan_netlink_parms(dev, data, tb, &p, &fwmark); in erspan_newlink()
1453 fwmark); in erspan_newlink()
1420 __u32 fwmark = 0; ipgre_newlink() local
1441 __u32 fwmark = 0; erspan_newlink() local
1461 __u32 fwmark = t->fwmark; ipgre_changelink() local
1499 __u32 fwmark = t->fwmark; erspan_changelink() local
[all...]
H A Dip_tunnel.c305 tunnel->parms.link, tunnel->fwmark, 0, 0); in ip_tunnel_bind_dev()
773 tunnel->fwmark, skb_get_hash(skb), 0); in ip_tunnel_xmit()
873 __u32 fwmark) in ip_tunnel_update()
890 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
894 t->fwmark = fwmark; in ip_tunnel_update()
1221 __u32 fwmark) in ip_tunnel_newlink()
1245 nt->fwmark = fwmark; in ip_tunnel_changelink()
867 ip_tunnel_update(struct ip_tunnel_net * itn,struct ip_tunnel * t,struct net_device * dev,struct ip_tunnel_parm_kern * p,bool set_mtu,__u32 fwmark) ip_tunnel_update() argument
1184 ip_tunnel_newlink(struct net * net,struct net_device * dev,struct nlattr * tb[],struct ip_tunnel_parm_kern * p,__u32 fwmark) ip_tunnel_newlink() argument
1237 ip_tunnel_changelink(struct net_device * dev,struct nlattr * tb[],struct ip_tunnel_parm_kern * p,__u32 fwmark) ip_tunnel_changelink() argument
[all...]
/linux/net/netfilter/ipvs/
H A Dip_vs_sched.c147 if (svc->fwmark) { in ip_vs_scheduler_err()
149 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err()
H A Dip_vs_ctl.c374 * Returns hash value of fwmark for virtual service lookup
377 __u32 fwmark) in ip_vs_svc_fwm_hashval()
379 return jhash_2words(fwmark, af, (u32)t->hash_key.key[0]); in ip_vs_svc_fwm_hashval()
382 /* Hashes a service in the svc_table by <proto,addr,port> or by fwmark */ in ip_vs_svc_hash()
410 if (svc->fwmark == 0) { in ip_vs_svc_hash()
418 * Hash it by fwmark in ip_vs_svc_hash()
420 hash = ip_vs_svc_fwm_hashval(t, svc->af, svc->fwmark); in ip_vs_svc_hash()
517 svc->protocol == protocol && !svc->fwmark) { in __ip_vs_service_find()
530 * Get service by {fwmark} in the service table.
533 __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) in __ip_vs_svc_fwm_find()
376 ip_vs_svc_fwm_hashval(struct ip_vs_rht * t,int af,__u32 fwmark) ip_vs_svc_fwm_hashval() argument
532 __ip_vs_svc_fwm_find(struct netns_ipvs * ipvs,int af,__u32 fwmark) __ip_vs_svc_fwm_find() argument
562 ip_vs_service_find(struct netns_ipvs * ipvs,int af,__u32 fwmark,__u16 protocol,const union nf_inet_addr * vaddr,__be16 vport) ip_vs_service_find() argument
1057 ip_vs_find_dest(struct netns_ipvs * ipvs,int svc_af,int dest_af,const union nf_inet_addr * daddr,__be16 dport,const union nf_inet_addr * vaddr,__be16 vport,__u16 protocol,__u32 fwmark,__u32 flags) ip_vs_find_dest() argument
[all...]
H A Dip_vs_sync.c32 * Persistence support, fwmark and time-out.
108 | fwmark |
143 __be32 fwmark; /* Firewall mark from skb */ member
165 __be32 fwmark; /* Firewall mark from skb */ member
751 s->v4.fwmark = htonl(cp->fwmark); in ip_vs_sync_conn()
867 unsigned long timeout, __u32 fwmark, in ip_vs_proc_conn()
945 fwmark, flags); in ip_vs_proc_conn()
948 fwmark); in ip_vs_proc_conn()
971 * - can not find the right fwmark in ip_vs_process_message_v0()
845 ip_vs_proc_conn(struct netns_ipvs * ipvs,struct ip_vs_conn_param * param,unsigned int flags,unsigned int state,unsigned int protocol,unsigned int type,const union nf_inet_addr * daddr,__be16 dport,unsigned long timeout,__u32 fwmark,struct ip_vs_sync_conn_options * opt) ip_vs_proc_conn() argument
[all...]
H A Dip_vs_core.c440 const union nf_inet_addr fwmark = { .ip = htonl(svc->fwmark) }; in ip_vs_sched_persist() local
496 /* Note: persistent fwmark-based services and in ip_vs_sched_persist()
498 * fwmark template: in ip_vs_sched_persist()
499 * <IPPROTO_IP,caddr,0,fwmark,0,daddr,0> in ip_vs_sched_persist()
503 if (svc->fwmark) { in ip_vs_sched_persist()
505 vaddr = &fwmark; in ip_vs_sched_persist()
693 if (!svc->fwmark && vport != svc->port) { in ip_vs_schedule()
774 /* if it is fwmark-based service, the cache_bypass sysctl is up in ip_vs_leave()
777 if (sysctl_cache_bypass(ipvs) && svc->fwmark in ip_vs_leave()
[all...]
H A Dip_vs_conn.c519 * p->vaddr is a fwmark in ip_vs_ct_in_get()
1199 cp->protocol, cp->fwmark, cp->flags); in ip_vs_try_bind_dest()
1478 struct ip_vs_dest *dest, __u32 fwmark) in ip_vs_conn_new()
1511 /* proto should only be IPPROTO_IP if p->vaddr is a fwmark */ in ip_vs_conn_new()
1518 cp->fwmark = fwmark; in ip_vs_conn_new()
1449 ip_vs_conn_new(const struct ip_vs_conn_param * p,int dest_af,const union nf_inet_addr * daddr,__be16 dport,unsigned int flags,struct ip_vs_dest * dest,__u32 fwmark) ip_vs_conn_new() argument
/linux/include/uapi/linux/
H A Dip_vs.h143 __u32 fwmark; /* firwall mark of service */ member
205 __u32 fwmark; /* firwall mark of service */ member
245 __u32 fwmark; /* firwall mark of service */ member
/linux/tools/testing/selftests/net/
H A Dcmsg_so_mark.sh30 ip -netns $NS rule add fwmark $MARK lookup 300
31 ip -6 -netns $NS rule add fwmark $MARK lookup 300
72 ip -netns "$NS" rule add fwmark 0/0xffffffff lookup 300 || exit 1
73 ip -6 -netns "$NS" rule add fwmark 0/0xffffffff lookup 300 || exit 1
/linux/net/ipv6/
H A Dsit.c1005 flowi4_init_output(&fl4, parms->link, READ_ONCE(tunnel->fwmark), in ipip6_tunnel_xmit()
1220 __u32 fwmark) in ipip6_tunnel_6rdctl()
1254 if (old_p->link != p->link || t->fwmark != fwmark) { in __ipip6_tunnel_ioctl_validate()
1255 WRITE_ONCE(t->fwmark, fwmark); in __ipip6_tunnel_ioctl_validate()
1440 err = ipip6_tunnel_update(t, p, t->fwmark); in ipip6_tunnel_setup()
1634 __u32 *fwmark) in ipip6_changelink()
1649 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip6_changelink()
1715 ipip6_netlink_parms(data, &p, &nt->fwmark); in ipip6_fill_info()
1139 ipip6_tunnel_update(struct ip_tunnel * t,struct ip_tunnel_parm_kern * p,__u32 fwmark) ipip6_tunnel_update() argument
1494 ipip6_netlink_parms(struct nlattr * data[],struct ip_tunnel_parm_kern * parms,__u32 * fwmark) ipip6_netlink_parms() argument
1613 __u32 fwmark = t->fwmark; ipip6_changelink() local
[all...]
H A Dip6_vti.c718 t->parms.fwmark = p->fwmark; in vti6_tnl_change()
1007 parms->fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti6_netlink_parms()
1097 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
H A Dip6_tunnel.c1371 fl6.flowi6_mark = t->parms.fwmark; in ipxip6_tnl_xmit()
1555 t->parms.fwmark = p->fwmark; in ip6_tnl_change()
1582 p->flowinfo || p->link || p->fwmark || p->collect_md)) in ip6_tnl0_update()
1862 fl6.flowi6_mark = t->parms.fwmark; in ip6_tnl_fill_forward_path()
2066 parms->fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ip6_tnl_netlink_parms()
2223 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
H A Dip6_gre.c625 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv4()
670 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv6()
697 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_other()
1199 t->parms.fwmark = p->fwmark; in ip6gre_tnl_copy_tnl_parm()
1823 parms->fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]);
2220 nla_put_u32(skb, IFLA_GRE_FWMARK, p->fwmark)) in ip6erspan_newlink()
/linux/drivers/net/wireguard/
H A Ddevice.h55 u32 fwmark; member
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_tproxy_tcp.sh215 ip netns exec "$nsrouter" $ip_command rule add fwmark 1 table 100
272 ip netns exec "$nsrouter" $ip_command rule del fwmark 1 table 100
H A Dnft_tproxy_udp.sh181 ip netns exec "$nsrouter" $ip_command rule add fwmark 1 table 100
246 ip netns exec "$nsrouter" $ip_command rule del fwmark 1 table 100
H A Dnft_nat_zones.sh89 echo netns exec "$gw" ip rule add fwmark "$i" lookup $((1000+i))
/linux/include/net/
H A Dip_tunnels.h197 __u32 fwmark;
430 struct ip_tunnel_parm_kern *p, __u32 fwmark);
433 __u32 fwmark);
194 __u32 fwmark; global() member
H A Dip_vs.h841 __u32 fwmark; /* Fire wall mark from skb */
893 u32 fwmark; /* firewall mark of service */
937 __u32 fwmark; /* firewall mark of the service */
1715 struct ip_vs_dest *dest, __u32 fwmark);
1884 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol,
1907 __u16 protocol, __u32 fwmark, __u32 flags); in ip_vs_dest_put()
844 __u32 fwmark; /* Fire wall mark from skb */ global() member
896 u32 fwmark; /* firewall mark of service */ global() member
940 __u32 fwmark; /* firewall mark of the service */ global() member
H A Dip6_tunnel.h38 __u32 fwmark; member
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.sh712 if ! ip -net "$listener_ns" $r6flag rule add fwmark 1 lookup 100; then
722 ip -net "$listener_ns" $r6flag rule del fwmark 1 lookup 100
738 ip -net "$listener_ns" $r6flag rule del fwmark 1 lookup 100
/linux/Documentation/networking/
H A Dip-sysctl.rst77 Controls the fwmark of kernel-generated IPv4 reply packets that are not
79 If disabled, these packets have a fwmark of zero. If enabled, they have the
80 fwmark of the packet they are replying to.
557 socket mark will set the mark of the accepting socket to the fwmark of
559 (starting from the first SYNACK) to be sent with that fwmark. The
561 have a fwmark set via setsockopt(SOL_SOCKET, SO_MARK, ...) are
2104 - 0 - The fwmark of the packet is not included in reverse path
2106 utilizing the fwmark in only one direction, e.g., transparent
2109 - 1 - The fwmark of the packet is included in reverse path route
2110 lookup. This permits rp_filter to function when the fwmark i
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_span.c438 0, 0, tun->net, parms.link, tun->fwmark, 0, 0); in mlxsw_sp_span_gretap4_route()
547 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()

12