Commit Graph

5 Commits

Author SHA1 Message Date
Asias He
e2b1186cca net: Add more tcp and ip header const
net::tcp_hdr_len_min
net::ipv4_hdr_len_min
net::ipv6_hdr_len_min

InetTraits::ip_hdr_len_min is added to handle both ipv4 and ipv6.
2014-11-10 10:17:49 +02:00
Asias He
2a582fd1a6 net: fix tso maximum packet size
With TSO enabled, we can see a Ethernet frame larger than 64K on tap
device. This makes wireshark unable to handle. It complains:

   The capture file appears to be damaged or corrupt.
   (pcapng_read_packet_block: cap_len 65549 is larger than
   WTAP_MAX_PACKET_SIZE 65535.)
2014-11-06 14:50:11 +02:00
Asias He
6561bde964 net: Add TCP option support
Maximum segment size and Window scale option are supported currently.
2014-10-22 10:28:06 +03:00
Asias He
2625dd5944 net: Introduce eth_protocol_num 2014-10-13 11:37:56 +08:00
Asias He
5cf3f200c5 net: Introduce ip_protocol_num
We use this in all the places where the ip protocol number is used.
2014-10-13 11:37:56 +08:00