Changeset 158 for uKadecot/trunk/uip/net/ipv4/uip-fw.h
- Timestamp:
- Feb 20, 2016, 10:43:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uKadecot/trunk/uip/net/ipv4/uip-fw.h
r157 r158 47 47 #define __UIP_FW_H__ 48 48 49 #include " uip.h"49 #include "net/ip/uip.h" 50 50 51 51 /** … … 55 55 struct uip_fw_netif *next; /**< Pointer to the next interface when 56 56 linked in a list. */ 57 u 16_t ipaddr[2]; /**< The IP address of this interface. */58 u 16_t netmask[2]; /**< The netmask of the interface. */59 u 8_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); 60 60 /**< A pointer to the function that 61 61 sends a packet. */ … … 94 94 */ 95 95 #define uip_fw_setipaddr(netif, addr) \ 96 do { (netif)->ipaddr[0] = ((u 16_t *)(addr))[0]; \97 (netif)->ipaddr[1] = ((u 16_t *)(addr))[1]; } while(0)96 do { (netif)->ipaddr[0] = ((uint16_t *)(addr))[0]; \ 97 (netif)->ipaddr[1] = ((uint16_t *)(addr))[1]; } while(0) 98 98 /** 99 99 * Set the netmask of a network interface. … … 106 106 */ 107 107 #define uip_fw_setnetmask(netif, addr) \ 108 do { (netif)->netmask[0] = ((u 16_t *)(addr))[0]; \109 (netif)->netmask[1] = ((u 16_t *)(addr))[1]; } while(0)108 do { (netif)->netmask[0] = ((uint16_t *)(addr))[0]; \ 109 (netif)->netmask[1] = ((uint16_t *)(addr))[1]; } while(0) 110 110 111 111 void uip_fw_init(void); 112 u 8_t uip_fw_forward(void);113 u 8_t uip_fw_output(void);112 uint8_t uip_fw_forward(void); 113 uint8_t uip_fw_output(void); 114 114 void uip_fw_register(struct uip_fw_netif *netif); 115 115 void uip_fw_default(struct uip_fw_netif *netif);
Note:
See TracChangeset
for help on using the changeset viewer.