Lines Matching refs:addr
81 struct sockaddr_storage *addr; in cifs_swn_send_register_message() local
115 addr = &swnreg->tcon->ses->server->swn_dstaddr; in cifs_swn_send_register_message()
117 addr = &swnreg->tcon->ses->server->dstaddr; in cifs_swn_send_register_message()
119 ret = nla_put(skb, CIFS_GENL_ATTR_SWN_IP, sizeof(struct sockaddr_storage), addr); in cifs_swn_send_register_message()
463 static int cifs_swn_reconnect(struct cifs_tcon *tcon, struct sockaddr_storage *addr) in cifs_swn_reconnect() argument
469 if (cifs_sockaddr_equal(&tcon->ses->server->dstaddr, addr)) in cifs_swn_reconnect()
472 ret = cifs_swn_store_swn_addr(addr, &tcon->ses->server->dstaddr, in cifs_swn_reconnect()
509 static int cifs_swn_client_move(struct cifs_swn_reg *swnreg, struct sockaddr_storage *addr) in cifs_swn_client_move() argument
511 struct sockaddr_in *ipv4 = (struct sockaddr_in *)addr; in cifs_swn_client_move()
512 struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)addr; in cifs_swn_client_move()
514 if (addr->ss_family == AF_INET) in cifs_swn_client_move()
516 else if (addr->ss_family == AF_INET6) in cifs_swn_client_move()
519 return cifs_swn_reconnect(swnreg->tcon, addr); in cifs_swn_client_move()
571 struct sockaddr_storage addr; in cifs_swn_notify() local
574 nla_memcpy(&addr, info->attrs[CIFS_GENL_ATTR_SWN_IP], sizeof(addr)); in cifs_swn_notify()
579 return cifs_swn_client_move(swnreg, &addr); in cifs_swn_notify()