Revision 660f11be hw/rtl8139.c
b/hw/rtl8139.c | ||
---|---|---|
2090 | 2090 |
#define ETH_MTU 1500 |
2091 | 2091 |
|
2092 | 2092 |
/* ip packet header */ |
2093 |
ip_header *ip = 0;
|
|
2093 |
ip_header *ip = NULL;
|
|
2094 | 2094 |
int hlen = 0; |
2095 | 2095 |
uint8_t ip_protocol = 0; |
2096 | 2096 |
uint16_t ip_data_len = 0; |
2097 | 2097 |
|
2098 |
uint8_t *eth_payload_data = 0;
|
|
2098 |
uint8_t *eth_payload_data = NULL;
|
|
2099 | 2099 |
size_t eth_payload_len = 0; |
2100 | 2100 |
|
2101 | 2101 |
int proto = be16_to_cpu(*(uint16_t *)(saved_buffer + 12)); |
Also available in: Unified diff