Home
last modified time | relevance | path

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

12

/linux/net/ipv4/
H A Dipip.c443 bool *collect_md, __u32 *fwmark) in ipip_newlink()
461 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]);
473 __u32 fwmark = 0; in ipip_changelink()
482 ipip_netlink_parms(data, &p, &t->collect_md, &fwmark); in ipip_changelink()
484 fwmark); in ipip_changelink()
495 __u32 fwmark = t->fwmark; in ipip_get_size()
504 ipip_netlink_parms(data, &p, &collect_md, &fwmark); in ipip_get_size()
512 return ip_tunnel_changelink(dev, tb, &p, fwmark); in ipip_get_size()
560 nla_put_u32(skb, IFLA_IPTUN_FWMARK, tunnel->fwmark))
418 ipip_netlink_parms(struct nlattr * data[],struct ip_tunnel_parm_kern * parms,bool * collect_md,__u32 * fwmark) ipip_netlink_parms() argument
448 __u32 fwmark = 0; ipip_newlink() local
470 __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
599 vti_netlink_parms(data, &p, &fwmark); in vti_changelink()
600 return ip_tunnel_changelink(dev, tb, &p, fwmark); in vti_changelink()
631 nla_put_u32(skb, IFLA_VTI_FWMARK, t->fwmark)) in vti_fill_info()
H A Dip_gre.c1186 __u32 *fwmark) in ipgre_netlink_parms()
1246 *fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ipgre_netlink_parms()
1255 __u32 *fwmark) in erspan_netlink_parms()
1260 err = ipgre_netlink_parms(dev, data, tb, parms, fwmark); in erspan_netlink_parms()
1416 __u32 fwmark = 0; in ipgre_newlink()
1423 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark); in ipgre_newlink()
1427 fwmark); in ipgre_newlink()
1437 __u32 fwmark = 0; in erspan_newlink()
1444 err = erspan_netlink_parms(dev, data, tb, &p, &fwmark); in erspan_newlink()
1448 fwmark); in erspan_newlink()
1185 ipgre_netlink_parms(struct net_device * dev,struct nlattr * data[],struct nlattr * tb[],struct ip_tunnel_parm_kern * parms,__u32 * fwmark) ipgre_netlink_parms() argument
1254 erspan_netlink_parms(struct net_device * dev,struct nlattr * data[],struct nlattr * tb[],struct ip_tunnel_parm_kern * parms,__u32 * fwmark) erspan_netlink_parms() argument
1415 __u32 fwmark = 0; ipgre_newlink() local
1436 __u32 fwmark = 0; erspan_newlink() local
1456 __u32 fwmark = t->fwmark; ipgre_changelink() local
1485 __u32 fwmark = t->fwmark; erspan_changelink() local
[all...]
H A Dip_tunnel.c299 tunnel->parms.link, tunnel->fwmark, 0, 0); in ip_tunnel_bind_dev()
765 tunnel->fwmark, skb_get_hash(skb), 0); in ip_tunnel_xmit()
864 __u32 fwmark) in ip_tunnel_update() argument
881 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
885 t->fwmark = fwmark; in ip_tunnel_update()
1194 __u32 fwmark) in ip_tunnel_newlink() argument
1214 nt->fwmark = fwmark; in ip_tunnel_newlink()
1247 struct ip_tunnel_parm_kern *p, __u32 fwmark) in ip_tunnel_changelink() argument
1279 ip_tunnel_update(itn, t, dev, p, !tb[IFLA_MTU], fwmark); in ip_tunnel_changelink()
/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.c349 * Returns hash value of fwmark for virtual service lookup in ip_vs_svc_hash()
352 __u32 fwmark) in ip_vs_svc_hash()
354 return jhash_2words(fwmark, af, (u32)t->hash_key.key[0]); in ip_vs_svc_hash()
357 /* Hashes a service in the svc_table by <proto,addr,port> or by fwmark */ in ip_vs_svc_hash()
378 if (svc->fwmark == 0) {
386 * Hash it by fwmark in ip_vs_svc_unhash()
388 hash = ip_vs_svc_fwm_hashval(t, svc->af, svc->fwmark); in ip_vs_svc_unhash()
475 svc->protocol == protocol && !svc->fwmark) { in ip_vs_service_find()
488 * Get service by {fwmark} in the service table. in ip_vs_service_find()
491 __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) in ip_vs_service_find()
335 ip_vs_svc_fwm_hashkey(struct netns_ipvs * ipvs,__u32 fwmark) ip_vs_svc_fwm_hashkey() argument
435 __ip_vs_svc_fwm_find(struct netns_ipvs * ipvs,int af,__u32 fwmark) __ip_vs_svc_fwm_find() argument
456 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
729 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
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()
933 * - can not find the right fwmark in ip_vs_proc_conn()
[all...]
H A Dip_vs_conn.c494 * p->vaddr is a fwmark in ip_vs_conn_fill_cport()
1071 cp->protocol, cp->fwmark, cp->flags); in ip_vs_conn_array()
1347 struct ip_vs_dest *dest, __u32 fwmark) in ip_vs_random_dropentry()
1371 /* proto should only be IPPROTO_IP if p->vaddr is a fwmark */
1378 cp->fwmark = fwmark; in ip_vs_conn_flush()
942 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.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/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
/linux/net/ipv6/
H A Dsit.c932 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
1136 __u32 fwmark) in ipip6_tunnel_update()
1151 if (t->parms.link != p->link || t->fwmark != fwmark) { in ipip6_tunnel_update()
1153 t->fwmark = fwmark; in ipip6_tunnel_update()
1321 ipip6_tunnel_update(t, p, t->fwmark); in ipip6_tunnel_change()
1491 __u32 *fwmark) in ipip6_netlink_parms()
1506 *fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ipip6_netlink_parms()
1570 ipip6_netlink_parms(data, &nt->parms, &nt->fwmark); in ipip6_newlink()
1135 ipip6_tunnel_update(struct ip_tunnel * t,struct ip_tunnel_parm_kern * p,__u32 fwmark) ipip6_tunnel_update() argument
1490 ipip6_netlink_parms(struct nlattr * data[],struct ip_tunnel_parm_kern * parms,__u32 * fwmark) ipip6_netlink_parms() argument
1609 __u32 fwmark = t->fwmark; ipip6_changelink() local
[all...]
H A Dip6_vti.c716 t->parms.fwmark = p->fwmark; in vti6_tnl_change()
997 parms->fwmark = nla_get_u32(data[IFLA_VTI_FWMARK]); in vti6_netlink_parms()
1083 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
H A Dip6_gre.c628 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv4()
673 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_ipv6()
700 fl6->flowi6_mark = t->parms.fwmark; in prepare_ip6gre_xmit_other()
1203 t->parms.fwmark = p->fwmark; in ip6gre_tnl_copy_tnl_parm()
1804 parms->fwmark = nla_get_u32(data[IFLA_GRE_FWMARK]); in ip6gre_netlink_parms()
2152 nla_put_u32(skb, IFLA_GRE_FWMARK, p->fwmark)) in ip6gre_fill_info()
H A Dip6_tunnel.c1368 fl6.flowi6_mark = t->parms.fwmark; in ipxip6_tnl_xmit()
1549 t->parms.fwmark = p->fwmark; in ip6_tnl_change()
1576 p->flowinfo || p->link || p->fwmark || p->collect_md)) in ip6_tnl0_update()
2041 parms->fwmark = nla_get_u32(data[IFLA_IPTUN_FWMARK]); in ip6_tnl_netlink_parms()
2195 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
/linux/drivers/net/wireguard/
H A 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()
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.sh107 echo netns exec "$gw" ip rule add fwmark "$i" lookup $((1000+i))
/linux/include/net/
H A Dip_vs.h828 __u32 fwmark; /* Fire wall mark from skb */
880 u32 fwmark; /* firewall mark of service */
924 __u32 fwmark; /* firewall mark of the service */
1661 struct ip_vs_dest *dest, __u32 fwmark);
1831 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, in ip_vs_register_conntrack()
1854 __u16 protocol, __u32 fwmark, __u32 flags);
590 __u32 fwmark; /* Fire wall mark from skb */ global() member
638 u32 fwmark; /* firewall mark of service */ global() member
684 __u32 fwmark; /* firewall mark of the service */ global() member
H A Dip_tunnels.h194 __u32 fwmark; member
428 struct ip_tunnel_parm_kern *p, __u32 fwmark);
431 __u32 fwmark);
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
2100 - 0 - The fwmark of the packet is not included in reverse path
2102 utilizing the fwmark in only one direction, e.g., transparent
2105 - 1 - The fwmark of the packet is included in reverse path route
2106 lookup. This permits rp_filter to function when the fwmark i
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_span.c426 0, 0, tun->net, parms.link, tun->fwmark, 0, 0); in mlxsw_sp_span_gretap4_route()
534 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()

12