Ignore:
Timestamp:
Nov 18, 2016, 2:58:30 PM (7 years ago)
Author:
coas-nagasima
Message:

uIPを更新
プロジェクトファイルを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uKadecot/trunk/uip/net/ipv4/uip-fw.h

    r158 r262  
    5555  struct uip_fw_netif *next;  /**< Pointer to the next interface when
    5656                                 linked in a list. */
    57   uint16_t ipaddr[2];            /**< The IP address of this interface. */
    58   uint16_t netmask[2];           /**< The netmask of the interface. */
     57  uip_ipaddr_t ipaddr;            /**< The IP address of this interface. */
     58  uip_ipaddr_t netmask;           /**< The netmask of the interface. */
    5959  uint8_t (* output)(void);
    6060                              /**< A pointer to the function that
     
    6363
    6464/**
    65  * Intantiating macro for a uIP network interface.
     65 * Instantiating macro for a uIP network interface.
    6666 *
    6767 * Example:
     
    8080#define UIP_FW_NETIF(ip1,ip2,ip3,ip4, nm1,nm2,nm3,nm4, outputfunc) \
    8181        NULL, \
    82         {HTONS((ip1 << 8) | ip2), HTONS((ip3 << 8) | ip4)}, \
    83         {HTONS((nm1 << 8) | nm2), HTONS((nm3 << 8) | nm4)}, \
     82        { {ip1, ip2, ip3, ip4} }, \
     83        { {nm1, nm2, nm3, nm4} }, \
    8484        outputfunc
    8585
Note: See TracChangeset for help on using the changeset viewer.