mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Added comments whether fields are host or network byte order (task #1568)
This commit is contained in:
parent
874415a193
commit
9085abd838
@ -48,6 +48,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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_NOCOPY 0x00
|
||||||
#define NETCONN_COPY 0x01
|
#define NETCONN_COPY 0x01
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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 api_msg_msg {
|
||||||
struct netconn *conn;
|
struct netconn *conn;
|
||||||
enum netconn_type conntype;
|
enum netconn_type conntype;
|
||||||
|
@ -48,6 +48,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
/** must be the maximum of all used hardware address lengths
|
||||||
across all types of interfaces in use */
|
across all types of interfaces in use */
|
||||||
#define NETIF_MAX_HWADDR_LEN 6U
|
#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_default(struct netif *netif);
|
||||||
|
|
||||||
void netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr);
|
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_gw(struct netif *netif, struct ip_addr *gw);
|
||||||
void netif_set_up(struct netif *netif);
|
void netif_set_up(struct netif *netif);
|
||||||
void netif_set_down(struct netif *netif);
|
void netif_set_down(struct netif *netif);
|
||||||
|
Loading…
Reference in New Issue
Block a user