Use new macro ip_addr_copy

This commit is contained in:
goldsimon 2010-02-14 12:44:48 +00:00
parent 4c65d25eda
commit a50dd0cc7b
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ netbios_recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, ip_addr_t *addr, u
resp->resp_name.ttl = htonl(NETBIOS_NAME_TTL);
resp->resp_name.datalen = htons(sizeof(resp->resp_name.flags)+sizeof(resp->resp_name.addr));
resp->resp_name.flags = htons(NETB_NFLAG_NODETYPE_BNODE);
ip_addr_set(&resp->resp_name.addr, &netif_default->ip_addr);
ip_addr_copy(resp->resp_name.addr, netif_default->ip_addr);
/* send the NetBIOS response */
udp_sendto(upcb, q, addr, port);