File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ struct wiz_udp_header {
77
77
uint16_t size ;
78
78
};
79
79
80
- #define BOOTP_MAX_FILENAME 128
81
80
struct bootp {
82
81
uint8_t op ;
83
82
uint8_t htype ;
@@ -92,7 +91,7 @@ struct bootp {
92
91
uint8_t giaddr [4 ];
93
92
uint8_t chaddr [16 ];
94
93
uint8_t sname [64 ];
95
- char file [BOOTP_MAX_FILENAME ];
94
+ char file [128 ];
96
95
uint8_t vend [64 ];
97
96
};
98
97
@@ -206,9 +205,9 @@ static union {
206
205
} in_header __noinit ;
207
206
208
207
static union {
209
- uint8_t a [sizeof (struct tftp )];
210
- struct bootp bootp ;
211
- struct tftp tftp ;
208
+ uint8_t a [sizeof (struct tftp )];
209
+ struct bootp bootp ;
210
+ struct tftp tftp ;
212
211
} in __noinit ;
213
212
214
213
static union {
@@ -337,7 +336,7 @@ sock0_sendpacket(void)
337
336
338
337
/* S0_TX_WR += len */
339
338
wiz_set_word (WIZ_Sn_TX_WR (0 ),
340
- wiz_get_word (WIZ_Sn_TX_WR (0 )) + out_size );
339
+ wiz_get_word (WIZ_Sn_TX_WR (0 )) + out_size );
341
340
342
341
/* send! */
343
342
wiz_set (WIZ_Sn_CR (0 ), WIZ_SEND );
@@ -380,7 +379,7 @@ sock0_readpacket(void)
380
379
381
380
/* S0_RX_RD += size */
382
381
wiz_set_word (WIZ_Sn_RX_RD (0 ),
383
- wiz_get_word (WIZ_Sn_RX_RD (0 )) + size );
382
+ wiz_get_word (WIZ_Sn_RX_RD (0 )) + size );
384
383
385
384
wiz_set (WIZ_Sn_CR (0 ), WIZ_RECV );
386
385
}
You can’t perform that action at this time.
0 commit comments