/Linux-v6.6/net/ceph/ |
D | decode.c | 31 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned() 34 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned() 36 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned() 38 addr->in_addr.ss_family = in ceph_decode_entity_addr_versioned() 39 le16_to_cpu((__force __le16)addr->in_addr.ss_family); in ceph_decode_entity_addr_versioned() 64 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_legacy() 65 ceph_decode_copy_safe(p, end, &addr->in_addr, in ceph_decode_entity_addr_legacy() 66 sizeof(addr->in_addr), bad); in ceph_decode_entity_addr_legacy() 67 addr->in_addr.ss_family = in ceph_decode_entity_addr_legacy() 68 be16_to_cpu((__force __be16)addr->in_addr.ss_family); in ceph_decode_entity_addr_legacy() [all …]
|
D | messenger.c | 168 struct sockaddr_storage ss = addr->in_addr; /* align */ in ceph_pr_addr() 436 struct sockaddr_storage ss = con->peer_addr.in_addr; /* align */ in ceph_tcp_connect() 1179 struct sockaddr_storage ss = addr->in_addr; /* align */ in ceph_addr_is_blank() 1180 struct in_addr *addr4 = &((struct sockaddr_in *)&ss)->sin_addr; in ceph_addr_is_blank() 1196 switch (get_unaligned(&addr->in_addr.ss_family)) { in ceph_addr_port() 1198 return ntohs(get_unaligned(&((struct sockaddr_in *)&addr->in_addr)->sin_port)); in ceph_addr_port() 1200 return ntohs(get_unaligned(&((struct sockaddr_in6 *)&addr->in_addr)->sin6_port)); in ceph_addr_port() 1207 switch (get_unaligned(&addr->in_addr.ss_family)) { in ceph_addr_set_port() 1209 put_unaligned(htons(p), &((struct sockaddr_in *)&addr->in_addr)->sin_port); in ceph_addr_set_port() 1212 put_unaligned(htons(p), &((struct sockaddr_in6 *)&addr->in_addr)->sin6_port); in ceph_addr_set_port() [all …]
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | in.h | 92 struct in_addr { struct 179 struct in_addr imr_multiaddr; /* IP multicast address of group */ 180 struct in_addr imr_interface; /* local IP address of interface */ 184 struct in_addr imr_multiaddr; /* IP multicast address of group */ 185 struct in_addr imr_address; /* local IP address of interface */ 248 struct in_addr ipi_spec_dst; 249 struct in_addr ipi_addr; 259 struct in_addr sin_addr; /* Internet address */ 263 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/Linux-v6.6/include/uapi/linux/ |
D | in.h | 92 struct in_addr { struct 179 struct in_addr imr_multiaddr; /* IP multicast address of group */ 180 struct in_addr imr_interface; /* local IP address of interface */ 184 struct in_addr imr_multiaddr; /* IP multicast address of group */ 185 struct in_addr imr_address; /* local IP address of interface */ 248 struct in_addr ipi_spec_dst; 249 struct in_addr ipi_addr; 259 struct in_addr sin_addr; /* Internet address */ 263 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
D | mroute.h | 67 struct in_addr vifc_lcl_addr; /* Local interface address */ 70 struct in_addr vifc_rmt_addr; /* IPIP tunnel addr */ 81 struct in_addr mfcc_origin; /* Origin of mcast */ 82 struct in_addr mfcc_mcastgrp; /* Group in question */ 93 struct in_addr src; 94 struct in_addr grp; 118 struct in_addr im_src,im_dst;
|
D | l2tp.h | 27 struct in_addr l2tp_addr; /* Internet address */ 34 sizeof(__be16) - sizeof(struct in_addr) -
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | gid.c | 123 void *in_addr = MLX5_ADDR_OF(set_roce_address_in, in, roce_address); in mlx5_core_roce_gid_set() local 124 char *addr_l3_addr = MLX5_ADDR_OF(roce_addr_layout, in_addr, in mlx5_core_roce_gid_set() 126 void *addr_mac = MLX5_ADDR_OF(roce_addr_layout, in_addr, in mlx5_core_roce_gid_set() 135 MLX5_SET_RA(in_addr, vlan_valid, 1); in mlx5_core_roce_gid_set() 136 MLX5_SET_RA(in_addr, vlan_id, vlan_id); in mlx5_core_roce_gid_set() 142 MLX5_SET_RA(in_addr, roce_version, roce_version); in mlx5_core_roce_gid_set() 143 MLX5_SET_RA(in_addr, roce_l3_type, roce_l3_type); in mlx5_core_roce_gid_set()
|
/Linux-v6.6/tools/testing/selftests/net/ |
D | ipsec.c | 358 struct in_addr addr, uint8_t prefix) in ip4_addr_set() 426 struct in_addr src, struct in_addr dst) in ip4_route_set() 465 struct in_addr tunsrc, struct in_addr tundst) in tunnel_set_route() 483 struct in_addr intsrc = inet_makeaddr(INADDR_B, src); in init_child() 484 struct in_addr tunsrc = inet_makeaddr(INADDR_A, src); in init_child() 485 struct in_addr tundst = inet_makeaddr(INADDR_A, dst); in init_child() 621 static int udp_ping_init(struct in_addr listen_ip, unsigned int u_timeout, in udp_ping_init() 636 memcpy(&server.sin_addr.s_addr, &listen_ip, sizeof(struct in_addr)); in udp_ping_init() 746 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping() 787 strncpy(to_str, inet_ntoa(*(struct in_addr *)&to), IPV4_STR_SZ - 1); in do_ping() [all …]
|
D | so_incoming_cpu.c | 22 struct sockaddr_in in_addr; in FIXTURE() member 67 self->in_addr.sin_family = AF_INET; in FIXTURE_SETUP() 68 self->in_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in FIXTURE_SETUP() 69 self->in_addr.sin_port = htons(0); in FIXTURE_SETUP()
|
/Linux-v6.6/include/uapi/linux/netfilter_arp/ |
D | arpt_mangle.h | 6 #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr) 12 struct in_addr src_ip; 15 struct in_addr tgt_ip;
|
D | arp_tables.h | 46 struct in_addr src, tgt; 48 struct in_addr smsk, tmsk;
|
/Linux-v6.6/arch/arm/mach-mvebu/ |
D | pm.c | 90 __be32 in_addr[2]; in mvebu_internal_reg_base() local 100 in_addr[0] = cpu_to_be32(0xf0010000); in mvebu_internal_reg_base() 101 in_addr[1] = 0x0; in mvebu_internal_reg_base() 103 return of_translate_address(np, in_addr); in mvebu_internal_reg_base()
|
/Linux-v6.6/drivers/net/wireguard/selftest/ |
D | allowedips.c | 138 horrible_match_v4(const struct horrible_allowedips_node *node, struct in_addr *ip) in horrible_match_v4() 182 struct in_addr *ip, u8 cidr, void *value) in horrible_allowedips_insert_v4() 215 horrible_allowedips_lookup_v4(struct horrible_allowedips *table, struct in_addr *ip) in horrible_allowedips_lookup_v4() 290 if (wg_allowedips_insert_v4(&t, (struct in_addr *)ip, cidr, in randomized_test() 295 if (horrible_allowedips_insert_v4(&h, (struct in_addr *)ip, in randomized_test() 317 (struct in_addr *)mutated, in randomized_test() 323 (struct in_addr *)mutated, cidr, peer)) { in randomized_test() 385 if (lookup(t.root4, 32, ip) != horrible_allowedips_lookup_v4(&h, (struct in_addr *)ip)) { in randomized_test() 386 horrible_allowedips_lookup_v4(&h, (struct in_addr *)ip); in randomized_test() 425 static __init inline struct in_addr *ip4(u8 a, u8 b, u8 c, u8 d) in ip4() [all …]
|
/Linux-v6.6/include/linux/ceph/ |
D | msgr.h | 87 struct sockaddr_storage in_addr; member 93 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) && in ceph_addr_equal_no_type()
|
D | decode.h | 228 __be16 ss_family = htons(a->in_addr.ss_family); in ceph_encode_banner_addr() 229 a->in_addr.ss_family = *(__u16 *)&ss_family; in ceph_encode_banner_addr() 236 __be16 ss_family = *(__be16 *)&a->in_addr.ss_family; in ceph_decode_banner_addr() 237 a->in_addr.ss_family = ntohs(ss_family); in ceph_decode_banner_addr() 238 WARN_ON(a->in_addr.ss_family == 512); in ceph_decode_banner_addr()
|
/Linux-v6.6/tools/usb/ffs-aio-example/simple/host_app/ |
D | test.c | 159 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()
|
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | cls_redirect.c | 27 struct in_addr in_addr; member 79 ap->in_addr = in->sin_addr; in fill_addr_port() 285 struct in_addr next_hop; in build_input() 297 next_hop = (struct in_addr){ .s_addr = htonl(0x7f000002) }; in build_input() 312 .saddr = tuple->src.in_addr.s_addr, in build_input() 313 .daddr = tuple->dst.in_addr.s_addr, in build_input()
|
/Linux-v6.6/net/netlabel/ |
D | netlabel_unlabeled.c | 122 .len = sizeof(struct in_addr) }, 124 .len = sizeof(struct in_addr) }, 232 const struct in_addr *addr, in netlbl_unlhsh_add_addr4() 233 const struct in_addr *mask, in netlbl_unlhsh_add_addr4() 380 if (addr_len != sizeof(struct in_addr) && in netlbl_unlhsh_add() 407 case sizeof(struct in_addr): { in netlbl_unlhsh_add() 408 const struct in_addr *addr4 = addr; in netlbl_unlhsh_add() 409 const struct in_addr *mask4 = mask; in netlbl_unlhsh_add() 468 const struct in_addr *addr, in netlbl_unlhsh_remove_addr4() 469 const struct in_addr *mask, in netlbl_unlhsh_remove_addr4() [all …]
|
D | netlabel_domainhash.h | 79 const struct in_addr *addr, 80 const struct in_addr *mask,
|
/Linux-v6.6/net/ipv4/netfilter/ |
D | nf_dup_ipv4.c | 24 const struct in_addr *gw, int oif) in nf_dup_ipv4_route() 51 const struct in_addr *gw, int oif) in nf_dup_ipv4()
|
D | nft_dup_ipv4.c | 25 struct in_addr gw = { in nft_dup_ipv4_eval() 44 sizeof(struct in_addr)); in nft_dup_ipv4_init()
|
/Linux-v6.6/samples/bpf/ |
D | sockex3_user.c | 88 inet_ntoa((struct in_addr){htonl(next_key.src)}), in main() 90 inet_ntoa((struct in_addr){htonl(next_key.dst)}), in main()
|
/Linux-v6.6/net/rxrpc/ |
D | peer_event.c | 53 sizeof(struct in_addr)); in rxrpc_lookup_peer_local_rcu() 58 sizeof(struct in_addr)); in rxrpc_lookup_peer_local_rcu() 62 sizeof(struct in_addr)); in rxrpc_lookup_peer_local_rcu() 82 sizeof(struct in_addr)); in rxrpc_lookup_peer_local_rcu()
|
/Linux-v6.6/include/uapi/linux/netfilter_ipv4/ |
D | ip_tables.h | 73 struct in_addr src, dst; 75 struct in_addr smsk, dmsk;
|
/Linux-v6.6/include/net/ |
D | netlabel.h | 431 const struct in_addr *addr, 432 const struct in_addr *mask, 552 const struct in_addr *addr, in netlbl_cfg_cipsov4_map_add() 553 const struct in_addr *mask, in netlbl_cfg_cipsov4_map_add()
|