diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-05 00:13:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-05 00:13:18 +0000 |
commit | e72381a2740de4ba67cefdfe61f351a698e9eecf (patch) | |
tree | 2ffaeba932bc1b43ddb1cee9dcea072437d3fd5a /nuttx/include | |
parent | 65f8e15b78891b15b1caabe45d1163f63fa530e0 (diff) | |
download | px4-nuttx-e72381a2740de4ba67cefdfe61f351a698e9eecf.tar.gz px4-nuttx-e72381a2740de4ba67cefdfe61f351a698e9eecf.tar.bz2 px4-nuttx-e72381a2740de4ba67cefdfe61f351a698e9eecf.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/net/uip/dhcpc.h | 5 | ||||
-rw-r--r-- | nuttx/include/net/uip/uip.h | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/include/net/uip/dhcpc.h b/nuttx/include/net/uip/dhcpc.h index f598c00ad..d1950c9b8 100644 --- a/nuttx/include/net/uip/dhcpc.h +++ b/nuttx/include/net/uip/dhcpc.h @@ -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__ */ diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h index 0aceb8603..004c0ec6e 100644 --- a/nuttx/include/net/uip/uip.h +++ b/nuttx/include/net/uip/uip.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. * |