Home
last modified time | relevance | path

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

12345678

/openbmc/linux/net/ceph/
H A Ddecode.c31 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 …]
/openbmc/u-boot/include/
H A Dnet.h47 struct in_addr { struct
60 struct in_addr sip, unsigned sport, argument
361 struct in_addr ip_src; /* Source IP address */
385 struct in_addr ip_src; /* Source IP address */
503 extern struct in_addr net_dns_server;
506 extern struct in_addr net_dns_server2;
588 void net_set_ip_header(uchar *pkt, struct in_addr dest, struct in_addr source,
723 struct in_addr ip; in net_read_ip()
747 memcpy((void *)to, from, sizeof(struct in_addr)); in net_copy_ip()
827 void ip_to_string(struct in_addr x, char *s);
[all …]
H A Dhw_sha.h21 void hw_sha512(const uchar *in_addr, uint buflen, uchar *out_addr,
34 void hw_sha384(const uchar *in_addr, uint buflen, uchar *out_addr,
47 void hw_sha256(const uchar *in_addr, uint buflen, uchar *out_addr,
60 void hw_sha1(const uchar *in_addr, uint buflen, uchar *out_addr,
/openbmc/linux/include/uapi/linux/
H A Dmroute.h67 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;
H A Din.h92 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)];
/openbmc/linux/tools/include/uapi/linux/
H A Din.h92 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)];
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgid.c123 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()
/openbmc/u-boot/net/
H A Dbootp.h44 struct in_addr bp_ciaddr; /* Client IP address */
45 struct in_addr bp_yiaddr; /* Your (client) IP address */
46 struct in_addr bp_siaddr; /* Server IP address */
47 struct in_addr bp_giaddr; /* Gateway IP address */
H A Darp.h17 extern struct in_addr net_arp_wait_packet_ip;
27 void arp_raw_request(struct in_addr source_ip, const uchar *targetEther,
28 struct in_addr target_ip);
H A Dbootp.c68 static struct in_addr dhcp_server_ip;
149 struct in_addr tmp_ip; in store_net_params()
208 net_copy_ip(&net_netmask, (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
224 (struct in_addr *)(ext + 2)); in bootp_process_vendor_field()
228 (struct in_addr *)(ext + 2 + 4)); in bootp_process_vendor_field()
451 struct in_addr requested_ip) in dhcp_extended()
719 struct in_addr zero_ip; in bootp_request()
720 struct in_addr bcast_ip; in bootp_request()
974 struct in_addr offered_ip; in dhcp_send_request_packet()
975 struct in_addr zero_ip; in dhcp_send_request_packet()
[all …]
H A Dwol.c56 struct in_addr *ip = (struct in_addr *)(wol->wol_passwd); in wol_receive()
64 static void wol_udp_handler(uchar *pkt, unsigned int dest, struct in_addr sip, in wol_udp_handler()
H A Darp.c30 struct in_addr net_arp_wait_packet_ip;
31 static struct in_addr net_arp_wait_reply_ip;
51 void arp_raw_request(struct in_addr source_ip, const uchar *target_ethaddr, in arp_raw_request()
52 struct in_addr target_ip) in arp_raw_request()
126 struct in_addr reply_ip_addr; in arp_receive()
H A Dnet.c125 struct in_addr net_netmask;
127 struct in_addr net_gateway;
129 struct in_addr net_dns_server;
132 struct in_addr net_dns_server2;
142 struct in_addr net_ip;
144 struct in_addr net_server_ip;
183 struct in_addr net_ntp_server;
761 struct in_addr sip, unsigned sport, in dummy_handler()
1093 struct in_addr dst_ip; in net_process_received_packet()
1094 struct in_addr src_ip; in net_process_received_packet()
[all …]
H A Dlink_local.c52 static struct in_addr ip;
67 static struct in_addr pick(void) in pick()
70 struct in_addr ip; in pick()
137 struct in_addr zero_ip = {.s_addr = 0}; in link_local_timeout()
214 struct in_addr null_ip = {.s_addr = 0}; in link_local_receive_arp()
H A Dping.c18 struct in_addr net_ping_ip;
20 static void set_icmp_header(uchar *pkt, struct in_addr dest) in set_icmp_header()
80 struct in_addr src_ip; in ping_receive()
/openbmc/u-boot/drivers/net/
H A Dnetconsole.c23 static struct in_addr nc_ip; /* server ip */
35 struct in_addr sip, unsigned src, in nc_wait_arp_handler()
41 static void nc_handler(uchar *pkt, unsigned dest, struct in_addr sip, in nc_handler()
53 static int is_broadcast(struct in_addr ip) in is_broadcast()
55 static struct in_addr netmask; in is_broadcast()
56 static struct in_addr our_ip; in is_broadcast()
134 int nc_input_packet(uchar *pkt, struct in_addr src_ip, unsigned dest_port, in nc_input_packet()
181 struct in_addr ip; in nc_send_packet()
/openbmc/linux/include/uapi/linux/netfilter_arp/
H A Darpt_mangle.h6 #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr)
12 struct in_addr src_ip;
15 struct in_addr tgt_ip;
/openbmc/linux/tools/testing/selftests/net/
H A Dipsec.c426 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()
915 struct in_addr src, struct in_addr dst, in xfrm_state_add()
966 struct in_addr src, struct in_addr dst, in xfrm_usersa_found()
1004 struct in_addr src, struct in_addr dst, in xfrm_state_check()
1067 struct in_addr src, struct in_addr dst, in xfrm_set()
1068 struct in_addr tunsrc, struct in_addr tundst, in xfrm_set()
1153 struct in_addr src, struct in_addr dst, in xfrm_prepare()
1173 struct in_addr tunsrc, struct in_addr tundst) in xfrm_policy_del()
1204 struct in_addr src, struct in_addr dst, in xfrm_cleanup()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/
H A D0001-pppd-ippool.c-Fix-type-casting-issues-between-in_add.patch4 Subject: [PATCH 1/2] pppd/ippool.c: Fix type casting issues between in_addr
38 + struct in_addr temp_addr = {*addr};
49 + struct in_addr temp_addr = {free_addr.s_addr};
59 + struct in_addr temp_addr = {free_addr.s_addr};
/openbmc/linux/arch/arm/mach-mvebu/
H A Dpm.c90 __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()
/openbmc/linux/include/linux/ceph/
H A Dmsgr.h87 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()
/openbmc/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c138 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()
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()
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()
427 static struct in_addr ip; in ip4()
625 !memcmp(ip, ip4(192, 95, 5, 64), sizeof(struct in_addr))) in wg_allowedips_selftest()
[all …]
/openbmc/u-boot/lib/
H A Dnet_utils.c14 struct in_addr string_to_ip(const char *s) in string_to_ip()
16 struct in_addr addr; in string_to_ip()
/openbmc/linux/tools/usb/ffs-aio-example/simple/host_app/
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcls_redirect.c27 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()

12345678