Переглянути джерело

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

tags/v0.9.3
Michael Brown 19 роки тому
джерело
коміт
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 *

Завантаження…
Відмінити
Зберегти