Home
last modified time | relevance | path

Searched refs:ip4 (Results 1 – 25 of 64) sorted by relevance

123

/linux/drivers/infiniband/core/
A Dud_header.c121 { STRUCT_FIELD(ip4, ver),
129 { STRUCT_FIELD(ip4, tos),
137 { STRUCT_FIELD(ip4, id),
145 { STRUCT_FIELD(ip4, ttl),
153 { STRUCT_FIELD(ip4, check),
157 { STRUCT_FIELD(ip4, saddr),
161 { STRUCT_FIELD(ip4, daddr),
289 iph.tos = header->ip4.tos; in ib_ud_ip4_csum()
291 iph.id = header->ip4.id; in ib_ud_ip4_csum()
293 iph.ttl = header->ip4.ttl; in ib_ud_ip4_csum()
[all …]
/linux/net/tipc/
A Dudp_media.c430 struct sockaddr_in ip4; in __tipc_nl_add_udp_addr() local
432 memset(&ip4, 0, sizeof(ip4)); in __tipc_nl_add_udp_addr()
433 ip4.sin_family = AF_INET; in __tipc_nl_add_udp_addr()
434 ip4.sin_port = addr->port; in __tipc_nl_add_udp_addr()
435 ip4.sin_addr.s_addr = addr->ipv4.s_addr; in __tipc_nl_add_udp_addr()
436 if (nla_put(skb, nla_t, sizeof(ip4), &ip4)) in __tipc_nl_add_udp_addr()
589 struct sockaddr_in *ip4 = (struct sockaddr_in *)&sa; in tipc_parse_udp_addr() local
592 addr->port = ip4->sin_port; in tipc_parse_udp_addr()
593 addr->ipv4.s_addr = ip4->sin_addr.s_addr; in tipc_parse_udp_addr()
/linux/drivers/net/ethernet/intel/ixgbevf/
A Dipsec.c180 __be32 spi, bool ip4) in ixgbevf_ipsec_find_rx_state() argument
189 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbevf_ipsec_find_rx_state()
190 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbevf_ipsec_find_rx_state()
561 struct iphdr *ip4 = NULL; in ixgbevf_ipsec_rx() local
574 ip4 = (struct iphdr *)(skb->data + ETH_HLEN); in ixgbevf_ipsec_rx()
575 daddr = &ip4->daddr; in ixgbevf_ipsec_rx()
576 c_hdr = (u8 *)ip4 + ip4->ihl * 4; in ixgbevf_ipsec_rx()
598 xs = ixgbevf_ipsec_find_rx_state(ipsec, daddr, proto, spi, !!ip4); in ixgbevf_ipsec_rx()
/linux/drivers/net/
A Damt.c351 &gnode->group_addr.ip4, in amt_act_src()
1179 group.ip4 = iph->daddr; in amt_dev_xmit()
1915 group.ip4 = ih->group; in amt_igmpv2_report_handler()
1917 host.ip4 = iph->saddr; in amt_igmpv2_report_handler()
1952 group.ip4 = ih->group; in amt_igmpv2_leave_handler()
1954 host.ip4 = iph->saddr; in amt_igmpv2_leave_handler()
1989 host.ip4 = iph->saddr; in amt_igmpv3_report_handler()
2114 host.ip4 = iph->saddr; in amt_mldv1_leave_handler()
2226 if (!amta->ip4) in amt_advertisement_handler()
2232 if (ipv4_is_loopback(amta->ip4) || ipv4_is_multicast(amta->ip4) || in amt_advertisement_handler()
[all …]
/linux/net/ipv4/
A Dxfrm4_protocol.c68 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = NULL; in xfrm4_rcv_encap()
101 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = NULL; in xfrm4_esp_rcv()
129 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = NULL; in xfrm4_ah_rcv()
157 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = NULL; in xfrm4_ipcomp_rcv()
A Dip_vti.c61 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = tunnel; in vti_input()
100 struct ip_tunnel *tunnel = XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4; in vti_rcv_cb()
182 fl->u.ip4.flowi4_oif = dev->ifindex; in vti_xmit()
183 fl->u.ip4.flowi4_flags |= FLOWI_FLAG_ANYSRC; in vti_xmit()
184 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti_xmit()
A Dfib_rules.c135 err = fib_table_lookup(tbl, &flp->u.ip4, in fib4_rule_action()
180 struct flowi4 *fl4 = &fl->u.ip4; in fib4_rule_match()
A Dnetfilter.c90 struct rtable *rt = ip_route_output_key(net, &fl->u.ip4); in nf_ip_route()
A Ddatagram.c46 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect()
/linux/net/bridge/
A Dbr_mdb.c157 ip->dst.ip4 = entry->addr.u.ip4; in __mdb_entry_to_br_ip()
159 ip->src.ip4 = nla_get_in_addr(mdb_attrs[MDBE_ATTR_SOURCE]); in __mdb_entry_to_br_ip()
195 ent->addr.src.ip4)) { in __mdb_fill_srcs()
255 e.addr.u.ip4 = mp->addr.dst.ip4; in __mdb_fill_info()
277 if (mp->addr.src.ip4) { in __mdb_fill_info()
279 mp->addr.src.ip4)) in __mdb_fill_info()
518 if (pg->key.addr.src.ip4) in rtnl_mdb_nlmsg_size()
673 if (!ipv4_is_multicast(entry->addr.u.ip4)) { in is_valid_mdb_entry()
677 if (ipv4_is_local_multicast(entry->addr.u.ip4)) { in is_valid_mdb_entry()
A Dbr_private_mcast_eht.h10 __be32 ip4; member
A Dbr_multicast.c121 br_dst.dst.ip4 = dst; in br_mdb_ip4_get()
163 ip.dst.ip4 = ip_hdr(skb)->daddr; in br_mdb_get()
167 ip.src.ip4 = ip_hdr(skb)->saddr; in br_mdb_get()
171 ip.src.ip4 = 0; in br_mdb_get()
1216 if (ip->src.ip4 == ent->addr.src.ip4) in br_multicast_find_group_src()
1433 br_group.dst.ip4 = group; in br_ip4_multicast_add_group()
2878 if (!querier->addr.src.ip4 || in br_multicast_select_querier()
2879 ntohl(saddr->src.ip4) <= ntohl(querier->addr.src.ip4)) in br_multicast_select_querier()
2965 querier.addr.src.ip4)) { in br_multicast_dump_querier_state()
3286 saddr.src.ip4 = iph->saddr; in br_ip4_multicast_query()
[all …]
/linux/include/net/
A Damt.h121 __be32 ip4; member
236 __be32 ip4; member
246 __be32 ip4; member
A Dflow.h174 struct flowi4 ip4; member
192 return container_of(fl4, struct flowi, u.ip4); in flowi4_to_flowi()
A Dxfrm.h586 struct ip_tunnel *ip4; member
1254 return (xfrm_address_t *)&fl->u.ip4.daddr; in xfrm_flowi_daddr()
1266 return (xfrm_address_t *)&fl->u.ip4.saddr; in xfrm_flowi_saddr()
1280 memcpy(&saddr->a4, &fl->u.ip4.saddr, sizeof(saddr->a4)); in xfrm_flowi_addr_get()
1281 memcpy(&daddr->a4, &fl->u.ip4.daddr, sizeof(daddr->a4)); in xfrm_flowi_addr_get()
1333 (const xfrm_address_t *)&fl->u.ip4.daddr, in xfrm_state_addr_flow_check()
1334 (const xfrm_address_t *)&fl->u.ip4.saddr); in xfrm_state_addr_flow_check()
1593 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = NULL; in xfrm4_rcv_spi()
2003 if (XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4) in xfrm_tunnel_check()
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ipsec.c394 __be32 spi, bool ip4) in ixgbe_ipsec_find_rx_state() argument
405 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbe_ipsec_find_rx_state()
406 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbe_ipsec_find_rx_state()
1168 struct iphdr *ip4 = NULL; in ixgbe_ipsec_rx() local
1181 ip4 = (struct iphdr *)(skb->data + ETH_HLEN); in ixgbe_ipsec_rx()
1182 daddr = &ip4->daddr; in ixgbe_ipsec_rx()
1183 c_hdr = (u8 *)ip4 + ip4->ihl * 4; in ixgbe_ipsec_rx()
1205 xs = ixgbe_ipsec_find_rx_state(ipsec, daddr, proto, spi, !!ip4); in ixgbe_ipsec_rx()
/linux/drivers/infiniband/ulp/srp/
A Dib_srp.h235 struct sockaddr_in ip4; member
241 struct sockaddr_in ip4; member
/linux/include/linux/
A Dif_bridge.h18 __be32 ip4; member
24 __be32 ip4; member
/linux/drivers/net/ipvlan/
A Dipvlan.h79 struct in_addr ip4; /* IPv4 address on logical interface */ member
82 #define ip4addr ipu.ip4
/linux/drivers/infiniband/hw/qedr/
A Dqedr_roce_cm.c469 udh->ip4.protocol = IPPROTO_UDP; in qedr_gsi_build_header()
470 udh->ip4.tos = htonl(grh->flow_label); in qedr_gsi_build_header()
471 udh->ip4.frag_off = htons(IP_DF); in qedr_gsi_build_header()
472 udh->ip4.ttl = grh->hop_limit; in qedr_gsi_build_header()
475 udh->ip4.saddr = ipv4_addr; in qedr_gsi_build_header()
477 udh->ip4.daddr = ipv4_addr; in qedr_gsi_build_header()
/linux/Documentation/networking/device_drivers/ethernet/aquantia/
A Datlantic.rst297 For ``flow-type ip4|udp4|tcp4|sctp4|ip6|udp6|tcp6|sctp6`` you must set the loc
299 For ``flow-type ip4|udp4|tcp4|sctp4|ip6|udp6|tcp6|sctp6`` you can set 8 rules
313 sudo ethtool -N <ethX> flow-type ip4 src-ip 10.0.0.6 dst-ip 10.0.0.4 loc 34
327 ethtool -N <ethX> flow-type ip4 vlan 2001 m 0xF000 action 1 loc 0
/linux/drivers/net/wireguard/selftest/
A Dallowedips.c425 static __init inline struct in_addr *ip4(u8 a, u8 b, u8 c, u8 d) in ip4() function
621 !memcmp(ip, ip4(192, 95, 5, 64), sizeof(struct in_addr))) in wg_allowedips_selftest()
628 !memcmp(ip, ip4(10, 1, 0, 16), sizeof(struct in_addr))) in wg_allowedips_selftest()
/linux/Documentation/networking/device_drivers/ethernet/intel/
A Dixgbe.rst325 #ethtool -N eth11 flow-type ip4 src-ip 172.4.1.2 m 255.0.0.0 dst-ip \
360 <type> - can be ip4, tcp4, udp4, or sctp4
381 ethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.1 src-port 5300 action 7
382 ethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.5 src-port 55 action 10
387 ethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.1 src-port 5300 action 7
388 ethtool -U enp130s0 flow-type ip4 dst-ip 192.168.0.5 src-port 55 action 10
/linux/net/netfilter/
A Dnft_rt.c32 fl.u.ip4.daddr = ip_hdr(skb)->saddr; in get_tcpmss()
A Dnft_flow_offload.c229 fl.u.ip4.daddr = ct->tuplehash[dir].tuple.src.u3.ip; in nft_flow_route()
230 fl.u.ip4.flowi4_oif = nft_in(pkt)->ifindex; in nft_flow_route()

Completed in 64 milliseconds

123