mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:49:22 +08:00
sendto needs to return EINTR error; dccpc uses sendto
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@330 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
@@ -66,7 +67,7 @@ struct dhcpc_state
|
||||
****************************************************************************/
|
||||
|
||||
void *dhcpc_open(const void *mac_addr, int mac_len);
|
||||
int dhcpc_request(void *handle, struct dhcpc_state *ds);
|
||||
void dhcpc_close(void *handle);
|
||||
int dhcpc_request(void *handle, struct dhcpc_state *ds);
|
||||
void dhcpc_close(void *handle);
|
||||
|
||||
#endif /* NET_UIP_DHCP_H__ */
|
||||
|
||||
@@ -932,10 +932,11 @@ extern int uip_udpconnect(struct uip_udp_conn *conn, const struct sockaddr_in *a
|
||||
* addr3 The forth octet of the IP address.
|
||||
*/
|
||||
|
||||
#define uip_ipaddr(addr, addr0,addr1,addr2,addr3) do { \
|
||||
((uint16 *)(addr))[0] = HTONS(((addr0) << 8) | (addr1)); \
|
||||
((uint16 *)(addr))[1] = HTONS(((addr2) << 8) | (addr3)); \
|
||||
} while(0)
|
||||
#define uip_ipaddr(addr, addr0, addr1, addr2, addr3) \
|
||||
do { \
|
||||
((uint16 *)(addr))[0] = HTONS(((addr0) << 8) | (addr1)); \
|
||||
((uint16 *)(addr))[1] = HTONS(((addr2) << 8) | (addr3)); \
|
||||
} while(0)
|
||||
|
||||
/* Construct an IPv6 address from eight 16-bit words.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user