Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
57:bc4330dfa62f
Parent:
41:2389bd6b6f74
Child:
63:157ee3202edb
--- a/core/uip/NyLPC_uip.h	Sat Aug 10 02:52:22 2013 +0000
+++ b/core/uip/NyLPC_uip.h	Fri Sep 13 06:38:16 2013 +0000
@@ -119,6 +119,12 @@
 #define NyLPC_TIPv4Addr_set(s,a0,a1,a2,a3) (s)->v=NyLPC_htonl((0xff000000&(((NyLPC_TUInt32)(a0))<<24))|(0x00ff0000&(((NyLPC_TUInt32)(a1))<<16))|(0x0000ff00&(((NyLPC_TUInt32)(a2))<<8))|(0x000000ff&((NyLPC_TUInt32)(a3))))
 #define NyLPC_TIPv4Addr_pack(a0,a1,a2,a3) {NyLPC_HTONL((0xff000000&(((NyLPC_TUInt32)(a0))<<24))|(0x00ff0000&(((NyLPC_TUInt32)(a1))<<16))|(0x0000ff00&(((NyLPC_TUInt32)(a2))<<8))|(0x000000ff&((NyLPC_TUInt32)(a3))))}
 
+/**
+ * IPアドレスを文字列に変換して返します。
+ */
+NyLPC_TInt16 NyLPC_TIPv4Addr_toString(const struct NyLPC_TIPv4Addr* i_ip,NyLPC_TChar* i_buf);
+
+
 
 
 
@@ -139,19 +145,6 @@
  */
 #define UIP_DEFAULT_IP_TTL 64
 
-/**
- * RTOの最大値。ms単位である。
- * 64sが標準値である。
- */
-#define UIP_IP_RTO_MAX_RTO 64000
-
-/**
- * RTOの初期値。ms単位である。
- * 伝送路の特性に合わせて調整すること。
- */
-#define UIP_IP_RTOP_INITIAL 3000
-
-#define UIP_IP_RTO_MINIMUM 100
 
 
 /**
@@ -188,7 +181,7 @@
 #       define NyLPC_ntohl(n) (n)
 #       define NyLPC_HTONS(n) (n)
 #       define NyLPC_NTOHS(n) (n)
-#   else /* UIP_BYTE_ORDER == UIP_BIG_ENDIAN */
+#   else
 #       define NyLPC_htonl(n) NyLPC_TUInt32_bswap(n)
 #       define NyLPC_ntohl(n) NyLPC_TUInt32_bswap(n)
 #       define NyLPC_htons(n) NyLPC_TUInt16_bswap(n)
@@ -429,11 +422,14 @@
 } PACK_STRUCT_END;
 
 
+/**
+ * i_req_addrを問い合わせるARP_REQUESTを生成します。
+ */
 void NyLPC_TArpHeader_setArpRequest(
     struct NyLPC_TArpHeader* i_struct,
     const struct NyLPC_TIPv4Addr i_saddr,
     const struct NyLPC_TEthAddr* i_srceth,
-    const struct NyLPC_TIPv4Addr i_daddr);
+    const struct NyLPC_TIPv4Addr* i_req_addr);
 
 
 typedef struct NyLPC_TcEthernetIIPayload NyLPC_TcEthernetIIPayload_t;