Added comments whether fields are host or network byte order (task #1568)

This commit is contained in:
goldsimon 2007-05-17 12:45:50 +00:00
parent 874415a193
commit 9085abd838
3 changed files with 11 additions and 1 deletions

View File

@ -48,6 +48,10 @@
extern "C" {
#endif
/* Throughout this file, IP addresses and port numbers are expected to be in
* the same byte order as in the corresponding pcb.
*/
#define NETCONN_NOCOPY 0x00
#define NETCONN_COPY 0x01

View File

@ -47,6 +47,9 @@
extern "C" {
#endif
/* IP addresses and port numbers are expected to be in
* the same byte order as in the corresponding pcb.
*/
struct api_msg_msg {
struct netconn *conn;
enum netconn_type conntype;

View File

@ -48,6 +48,9 @@
extern "C" {
#endif
/* Throughout this file, IP addresses are expected to be in
* the same byte order as in IP_PCB. */
/** must be the maximum of all used hardware address lengths
across all types of interfaces in use */
#define NETIF_MAX_HWADDR_LEN 6U
@ -175,7 +178,7 @@ struct netif *netif_find(char *name);
void netif_set_default(struct netif *netif);
void netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr);
void netif_set_netmask(struct netif *netif, struct ip_addr *netmast);
void netif_set_netmask(struct netif *netif, struct ip_addr *netmask);
void netif_set_gw(struct netif *netif, struct ip_addr *gw);
void netif_set_up(struct netif *netif);
void netif_set_down(struct netif *netif);