소스 검색

Obviate uip_init(); our bss is zeroed at startup already.

tags/v0.9.3
Michael Brown 20 년 전
부모
커밋
0d97f0d482
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      src/proto/uip/uip.c

+ 3
- 1
src/proto/uip/uip.c 파일 보기

131
 				initial sequence number. */
131
 				initial sequence number. */
132
 
132
 
133
 #if UIP_ACTIVE_OPEN
133
 #if UIP_ACTIVE_OPEN
134
-static u16_t lastport;       /* Keeps track of the last port used for
134
+static u16_t lastport = 1024;  /* Keeps track of the last port used for
135
 				a new connection. */
135
 				a new connection. */
136
 #endif /* UIP_ACTIVE_OPEN */
136
 #endif /* UIP_ACTIVE_OPEN */
137
 
137
 
174
 #endif /* UIP_LOGGING == 1 */
174
 #endif /* UIP_LOGGING == 1 */
175
 
175
 
176
 /*-----------------------------------------------------------------------------------*/
176
 /*-----------------------------------------------------------------------------------*/
177
+#if 0
177
 void
178
 void
178
 uip_init(void)
179
 uip_init(void)
179
 {
180
 {
200
 #endif /* UIP_FIXEDADDR */
201
 #endif /* UIP_FIXEDADDR */
201
 
202
 
202
 }
203
 }
204
+#endif
203
 /*-----------------------------------------------------------------------------------*/
205
 /*-----------------------------------------------------------------------------------*/
204
 #if UIP_ACTIVE_OPEN
206
 #if UIP_ACTIVE_OPEN
205
 struct uip_conn *
207
 struct uip_conn *

Loading…
취소
저장