Home
last modified time | relevance | path

Searched refs:ip_addr (Results 1 – 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/fs/cifs/
Ddns_resolve.c46 dns_resolve_server_name_to_ip(const char *unc, char **ip_addr) in dns_resolve_server_name_to_ip() argument
53 if (!ip_addr || !unc) in dns_resolve_server_name_to_ip()
81 NULL, ip_addr, NULL, false); in dns_resolve_server_name_to_ip()
87 __func__, len, len, hostname, *ip_addr); in dns_resolve_server_name_to_ip()
98 *ip_addr = name; in dns_resolve_server_name_to_ip()
Ddns_resolve.h27 extern int dns_resolve_server_name_to_ip(const char *unc, char **ip_addr);
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
Ddhcps.c129 const ip_addr_t *ip_addr, u16_t port);
221 (htonl(dhcps->start_addr.addr + (u32_t)i) != ip_2_ip4(&dhcps->netif->ip_addr)->addr)) { in find_free_slot()
267 (ntohl(client_ip.addr) == ip_2_ip4(&dhcps->netif->ip_addr)->addr)) { in validate_discover()
377 dhcp_common_option_long(srvr_msg, ntohl(ip_2_ip4(&netif->ip_addr)->addr), &options_len); in handle_discover()
381 dhcp_common_option_long(srvr_msg, ntohl(ip_2_ip4(&netif->ip_addr)->addr), &options_len); in handle_discover()
402 …void)udp_sendto_if_src(dhcps->pcb, out_msg, &dst_addr, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)); in handle_discover()
408 …_sendto_if_src(dhcps->pcb, out_msg, IP_ADDR_BROADCAST, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)); in handle_discover()
428 …udp_sendto_if_src(dhcps->pcb, out_msg, &client_ipaddr, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)); in handle_discover()
440 …_sendto_if_src(dhcps->pcb, out_msg, IP_ADDR_BROADCAST, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)); in handle_discover()
471 if (serverid.addr != ip_2_ip4(&netif->ip_addr)->addr) { in validate_request_message()
[all …]
Dapi_shell.c240 ip_addr_t ip_addr; member
292 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "ip:%s ", ipaddr_ntoa(&netif->ip_addr));
495 ip_addr_t ip_addr; local
528 ip_addr_set_val(&ip_addr, &(ifconfig_cmd->ip_addr));
529 if (IP_IS_V4_VAL(ifconfig_cmd->ip_addr)) {
531 if (ip_addr_ismulticast_val(&ip_addr) || ip_addr_isbroadcast_val(&ip_addr, netif) ||
532 ip_addr_isany(&ip_addr) || ip_addr_isloopback(&ip_addr)) {
538 if (!ip_addr_netcmp_val(&ip_addr, &netif->ip_addr, ip_2_ip4(&netif->netmask))) {
561 … if (IP_IS_V4_VAL(ifconfig_cmd->ip_addr) && ip_addr_cmp(&netif->netmask, &loc_netif->netmask) &&
562 ip_addr_netcmp_val(&loc_netif->ip_addr, &ip_addr, ip_2_ip4(&netif->netmask))) {
[all …]
Dfixme.c63 old_ipaddr = netif->ip_addr; in netif_dhcp_off()
74 ip_addr_set_val(&netif->ip_addr, &old_ipaddr); in netif_dhcp_off()
/kernel/linux/linux-5.10/drivers/scsi/be2iscsi/
Dbe_mgmt.c449 req->ip_addr.ip_type = ip_type; in beiscsi_if_mod_gw()
450 memcpy(req->ip_addr.addr, gw, in beiscsi_if_mod_gw()
468 if (!beiscsi_if_zero_ip(gw_resp.ip_addr.addr, ip_type)) { in beiscsi_if_set_gw()
470 gw_resp.ip_addr.addr); in beiscsi_if_set_gw()
525 req->ip_params.ip_record.ip_addr.size_of_structure = in beiscsi_if_clr_ip()
527 req->ip_params.ip_record.ip_addr.ip_type = if_info->ip_addr.ip_type; in beiscsi_if_clr_ip()
528 memcpy(req->ip_params.ip_record.ip_addr.addr, in beiscsi_if_clr_ip()
529 if_info->ip_addr.addr, in beiscsi_if_clr_ip()
530 sizeof(if_info->ip_addr.addr)); in beiscsi_if_clr_ip()
531 memcpy(req->ip_params.ip_record.ip_addr.subnet_mask, in beiscsi_if_clr_ip()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/
Drocker_ofdpa.c149 __be32 ip_addr; /* key */ member
1219 ofdpa_neigh_tbl_find(const struct ofdpa *ofdpa, __be32 ip_addr) in ofdpa_neigh_tbl_find() argument
1224 entry, be32_to_cpu(ip_addr)) in ofdpa_neigh_tbl_find()
1225 if (found->ip_addr == ip_addr) in ofdpa_neigh_tbl_find()
1237 be32_to_cpu(entry->ip_addr)); in ofdpa_neigh_add()
1260 int flags, __be32 ip_addr, const u8 *eth_dst) in ofdpa_port_ipv4_neigh() argument
1282 found = ofdpa_neigh_tbl_find(ofdpa, ip_addr); in ofdpa_port_ipv4_neigh()
1289 entry->ip_addr = ip_addr; in ofdpa_port_ipv4_neigh()
1331 eth_type, ip_addr, in ofdpa_port_ipv4_neigh()
1338 err, &entry->ip_addr, group_id); in ofdpa_port_ipv4_neigh()
[all …]
/kernel/liteos_m/components/net/lwip-2.1/enhancement/src/
Dlwip_ifaddrs.c154 addr_in->sin_addr.s_addr = ((ip4_addr_t *)&netif->ip_addr)->addr; in get_ipv4_ifaddr()
160 addr_in->sin_addr.s_addr = ((ip4_addr_t *)&netif->ip_addr)->addr; in get_ipv4_ifaddr()
168 …addr_in->sin_addr.s_addr = (((ip4_addr_t *)&netif->ip_addr)->addr & ((ip4_addr_t *)&netif->netmask… in get_ipv4_ifaddr()
/kernel/uniproton/src/net/lwip-2.1/enhancement/src/
Dlwip_ifaddrs.c140 addrIn->sin_addr.s_addr = ((ip4_addr_t *)&netif->ip_addr)->addr; in OsGetIpv4Ifaddr()
146 addrIn->sin_addr.s_addr = ((ip4_addr_t *)&netif->ip_addr)->addr; in OsGetIpv4Ifaddr()
154 …addrIn->sin_addr.s_addr = (((ip4_addr_t *)&netif->ip_addr)->addr & ((ip4_addr_t *)&netif->netmask)… in OsGetIpv4Ifaddr()
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4client.c201 const char *ip_addr = cl_init->ip_addr; in nfs4_alloc_client() local
245 if (ip_addr == NULL) { in nfs4_alloc_client()
255 ip_addr = (const char *)buf; in nfs4_alloc_client()
257 strlcpy(clp->cl_ipaddr, ip_addr, sizeof(clp->cl_ipaddr)); in nfs4_alloc_client()
865 const char *ip_addr, in nfs4_set_client() argument
874 .ip_addr = ip_addr, in nfs4_set_client()
941 .ip_addr = mds_clp->cl_ipaddr, in nfs4_set_ds_client()
Ddns_resolve.c22 char *ip_addr = NULL; in nfs_dns_resolve_name() local
25 ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL, in nfs_dns_resolve_name()
28 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name()
31 kfree(ip_addr); in nfs_dns_resolve_name()
Dnfs3client.c90 .ip_addr = mds_clp->cl_ipaddr, in nfs3_set_ds_client()
/kernel/linux/linux-5.10/drivers/hv/
Dhv_kvp.c272 len = utf8s_to_utf16s((char *)in->body.kvp_ip_val.ip_addr, in process_ob_ipinfo()
273 strlen((char *)in->body.kvp_ip_val.ip_addr), in process_ob_ipinfo()
275 (wchar_t *)out->kvp_ip_val.ip_addr, in process_ob_ipinfo()
331 utf16s_to_utf8s((wchar_t *)in->kvp_ip_val.ip_addr, in process_ib_ipinfo()
334 (__u8 *)out->body.kvp_ip_val.ip_addr, in process_ib_ipinfo()
/kernel/liteos_a/net/lwip-2.1/porting/src/
Dsockets.c192 if (ip_addr_cmp(&netif->ip_addr, &addr)) { in ip_addr_isbroadcast_bysock()
441 if (ip_addr_netcmp(&rtgw_addr, &netif->ip_addr, ip_2_ip4(&netif->netmask))) {
529 sock_in->sin_addr.s_addr = ip_2_ip4(&netif->ip_addr)->addr;
554 sock_in->sin_addr.s_addr = ip_2_ip4(&netif->ip_addr)->addr;
617 if (ip_addr_netcmp(&taget_addr, &netif->ip_addr, ip_2_ip4(&netif->netmask)) == 0) {
641 ip_addr_netcmp(&loc_netif->ip_addr, &taget_addr,
717 ip_addr_set_zero(&netif->ip_addr);
812 ip_addr_netcmp(&loc_netif->ip_addr,
813 &netif->ip_addr, ip_2_ip4(&loc_netif->netmask))) {
829 if (!ip_addr_netcmp(&netif->gw, &netif->ip_addr, ip_2_ip4(&taget_addr))) {
[all …]
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_core.c1349 struct sockaddr_l2tpip ip_addr = {0}; in l2tp_tunnel_sock_create() local
1356 ip_addr.l2tp_family = AF_INET; in l2tp_tunnel_sock_create()
1357 ip_addr.l2tp_addr = cfg->local_ip; in l2tp_tunnel_sock_create()
1358 ip_addr.l2tp_conn_id = tunnel_id; in l2tp_tunnel_sock_create()
1359 err = kernel_bind(sock, (struct sockaddr *)&ip_addr, in l2tp_tunnel_sock_create()
1360 sizeof(ip_addr)); in l2tp_tunnel_sock_create()
1364 ip_addr.l2tp_family = AF_INET; in l2tp_tunnel_sock_create()
1365 ip_addr.l2tp_addr = cfg->peer_ip; in l2tp_tunnel_sock_create()
1366 ip_addr.l2tp_conn_id = peer_tunnel_id; in l2tp_tunnel_sock_create()
1367 err = kernel_connect(sock, (struct sockaddr *)&ip_addr, in l2tp_tunnel_sock_create()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/
Discsi_ibft.c122 char ip_addr[16]; member
138 char ip_addr[16]; member
312 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic()
372 str += sprintf_ipaddr(str, tgt->ip_addr); in ibft_attr_show_target()
484 if (address_not_null(nic->ip_addr)) in ibft_check_nic_for()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c690 memset(iparams.ip_addr, 0, sizeof(iparams.ip_addr)); in qedr_iw_create_listen()
692 iparams.ip_addr[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_create_listen()
694 iparams.vlan = qedr_iw_get_vlan_ipv4(dev, iparams.ip_addr); in qedr_iw_create_listen()
699 iparams.ip_addr[i] = in qedr_iw_create_listen()
705 iparams.vlan = qedr_iw_get_vlan_ipv6(iparams.ip_addr); in qedr_iw_create_listen()
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dvxlan_asymmetric.sh108 local ip_addr=$1; shift
116 ip address add $ip_addr/24 dev $if_name
127 local ip_addr=$1; shift
132 ip address del $ip_addr/24 dev $if_name
Dvxlan_symmetric.sh118 local ip_addr=$1; shift
126 ip address add $ip_addr/24 dev $if_name
137 local ip_addr=$1; shift
142 ip address del $ip_addr/24 dev $if_name
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_utils.c62 u32 *ip_addr, in i40iw_arp_table() argument
73 ip[0] = *ip_addr; in i40iw_arp_table()
75 memcpy(ip, ip_addr, sizeof(ip)); in i40iw_arp_table()
79 if (memcmp(iwdev->arp_table[arp_index].ip_addr, ip, sizeof(ip)) == 0) in i40iw_arp_table()
95 memcpy(iwdev->arp_table[arp_index].ip_addr, ip, sizeof(ip)); in i40iw_arp_table()
105 memset(iwdev->arp_table[arp_index].ip_addr, 0, in i40iw_arp_table()
106 sizeof(iwdev->arp_table[arp_index].ip_addr)); in i40iw_arp_table()
/kernel/uniproton/src/net/lwip-2.1/src/
Dsockets.c327 sockIn->sin_addr.s_addr = ip_2_ip4(&netif->ip_addr)->addr; in OsLwipIoctlInternalSiocgifConf()
350 sockIn->sin_addr.s_addr = ip_2_ip4(&netif->ip_addr)->addr; in OsLwipIoctlInternalSiocgifAddr()
676 …sockIn->sin_addr.s_addr = (ip_2_ip4(&((netif)->ip_addr))->addr | ~(ip_2_ip4(&netif->netmask)->addr… in OsLwipIoctlInternalSiocgifBrdAddr()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dhyperv.h125 __u16 ip_addr[MAX_IP_ADDR_SIZE]; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dhyperv.h137 __u16 ip_addr[MAX_IP_ADDR_SIZE]; member
/kernel/linux/linux-5.10/drivers/scsi/qedi/
Dqedi_iscsi.h226 char ip_addr[64]; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dhyperv.h332 __u16 ip_addr[MAX_IP_ADDR_SIZE]; member

123