Home
last modified time | relevance | path

Searched refs:in_addr (Results 1 – 15 of 15) sorted by relevance

/tools/include/uapi/linux/
Din.h89 struct in_addr { struct
174 struct in_addr imr_multiaddr; /* IP multicast address of group */
175 struct in_addr imr_interface; /* local IP address of interface */
179 struct in_addr imr_multiaddr; /* IP multicast address of group */
180 struct in_addr imr_address; /* local IP address of interface */
229 struct in_addr ipi_spec_dst;
230 struct in_addr ipi_addr;
240 struct in_addr sin_addr; /* Internet address */
244 sizeof(unsigned short int) - sizeof(struct in_addr)];
/tools/testing/selftests/net/
Dipsec.c320 struct in_addr addr, uint8_t prefix) in ip4_addr_set()
388 struct in_addr src, struct in_addr dst) in ip4_route_set()
427 struct in_addr tunsrc, struct in_addr tundst) in tunnel_set_route()
445 struct in_addr intsrc = inet_makeaddr(INADDR_B, src); in init_child()
446 struct in_addr tunsrc = inet_makeaddr(INADDR_A, src); in init_child()
447 struct in_addr tundst = inet_makeaddr(INADDR_A, dst); in init_child()
580 static int udp_ping_init(struct in_addr listen_ip, unsigned int u_timeout, in udp_ping_init()
595 memcpy(&server.sin_addr.s_addr, &listen_ip, sizeof(struct in_addr)); in udp_ping_init()
705 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping()
746 strncpy(to_str, inet_ntoa(*(struct in_addr *)&to), IPV4_STR_SZ - 1); in do_ping()
[all …]
Dnettest.c47 struct in_addr in;
53 struct in_addr in;
58 struct in_addr grp; /* multicast group */
91 struct in_addr in;
97 struct in_addr in;
533 struct in_addr *exp_in = (struct in_addr *) expected; in expected_addr_match()
798 struct in_addr in4; in socket_read_dgram()
1438 struct in_addr *in; in convert_addr()
1499 in = (struct in_addr *) addr; in convert_addr()
Dtimestamping.c312 struct in_addr iaddr; in main()
402 &imr.imr_interface.s_addr, sizeof(struct in_addr)) < 0) in main()
Dip_defrag.c26 const struct in_addr addr4 = { .s_addr = __constant_htonl(INADDR_LOOPBACK + 2) };
Dudpgso.c73 const struct in_addr addr4 = { .s_addr = __constant_htonl(INADDR_LOOPBACK + 2) };
Dtxtimestamp.c476 udph->check = get_udp_csum(udph, is_ipv4 ? sizeof(struct in_addr) : in fill_header_udp()
/tools/usb/ffs-aio-example/simple/host_app/
Dtest.c159 unsigned char in_addr, out_addr; in main() local
166 in_addr = iface->endpoint[0].bEndpointAddress; in main()
172 libusb_bulk_transfer(state.handle, in_addr, buffer, BUF_LEN, in main()
/tools/testing/selftests/bpf/prog_tests/
Dcls_redirect.c25 struct in_addr in_addr; member
77 ap->in_addr = in->sin_addr; in fill_addr_port()
283 struct in_addr next_hop; in build_input()
295 next_hop = (struct in_addr){ .s_addr = htonl(0x7f000002) }; in build_input()
310 .saddr = tuple->src.in_addr.s_addr, in build_input()
311 .daddr = tuple->dst.in_addr.s_addr, in build_input()
/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c381 sizeof(struct in_addr) * encap->unigue.hop_count; in accept_locally()
399 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre()
405 sizeof(struct in_addr) * encap->unigue.hop_count; in forward_with_gre()
520 struct in_addr *next_hop, metrics_t *metrics) in forward_to_next_hop()
560 if (!buf_skip(pkt, sizeof(struct in_addr))) in skip_next_hops()
577 struct in_addr *next_hop) in get_next_hop()
1014 struct in_addr next_hop; in cls_redirect()
/tools/testing/selftests/bpf/
Dxdping.c40 struct in_addr inaddr; in get_stats()
Dtest_sock_addr.c912 struct in_addr src4_rw_ip; in sendmsg4_rw_asm_prog_load()
/tools/testing/selftests/net/forwarding/
Dvxlan_bridge_1q.sh253 local in_addr=$1; shift
260 ip address add dev $in_if $in_addr/28
274 ip link add name vx10 type vxlan id 1000 local $in_addr \
285 ip link add name vx20 type vxlan id 2000 local $in_addr \
Dvxlan_bridge_1d.sh193 local in_addr=$1; shift
199 ip address add dev $in_if $in_addr/28
210 ip link add name vx2 type vxlan id 1000 local $in_addr dstport "$VXPORT"
/tools/hv/
Dhv_kvp_daemon.c1038 struct in_addr ipv4_addr; in is_ipv4()