Ignore:
Timestamp:
Feb 20, 2016, 10:43:32 PM (8 years ago)
Author:
coas-nagasima
Message:

インクルードのパス指定をContikiに合わせ変更。
整数型の型名をContikiに合わせ変更。

File:
1 edited

Legend:

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

    r157 r158  
    4747#define __UIP_FW_H__
    4848
    49 #include "uip.h"
     49#include "net/ip/uip.h"
    5050
    5151/**
     
    5555  struct uip_fw_netif *next;  /**< Pointer to the next interface when
    5656                                 linked in a list. */
    57   u16_t ipaddr[2];            /**< The IP address of this interface. */
    58   u16_t netmask[2];           /**< The netmask of the interface. */
    59   u8_t (* output)(void);
     57  uint16_t ipaddr[2];            /**< The IP address of this interface. */
     58  uint16_t netmask[2];           /**< The netmask of the interface. */
     59  uint8_t (* output)(void);
    6060                              /**< A pointer to the function that
    6161                                 sends a packet. */
     
    9494 */
    9595#define uip_fw_setipaddr(netif, addr) \
    96         do { (netif)->ipaddr[0] = ((u16_t *)(addr))[0]; \
    97              (netif)->ipaddr[1] = ((u16_t *)(addr))[1]; } while(0)
     96        do { (netif)->ipaddr[0] = ((uint16_t *)(addr))[0]; \
     97             (netif)->ipaddr[1] = ((uint16_t *)(addr))[1]; } while(0)
    9898/**
    9999 * Set the netmask of a network interface.
     
    106106 */
    107107#define uip_fw_setnetmask(netif, addr) \
    108         do { (netif)->netmask[0] = ((u16_t *)(addr))[0]; \
    109              (netif)->netmask[1] = ((u16_t *)(addr))[1]; } while(0)
     108        do { (netif)->netmask[0] = ((uint16_t *)(addr))[0]; \
     109             (netif)->netmask[1] = ((uint16_t *)(addr))[1]; } while(0)
    110110
    111111void uip_fw_init(void);
    112 u8_t uip_fw_forward(void);
    113 u8_t uip_fw_output(void);
     112uint8_t uip_fw_forward(void);
     113uint8_t uip_fw_output(void);
    114114void uip_fw_register(struct uip_fw_netif *netif);
    115115void uip_fw_default(struct uip_fw_netif *netif);
Note: See TracChangeset for help on using the changeset viewer.