mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 15:26:43 +00:00
Most modern network cards and routers uses standard frame.
Lowered the frame size because if network card / router can't handle high frame, it will causes fragmentation, leading to packetloss or lost connection. It depends on the network card and router. A standard frame is 1518 bytes on the wire (as far as any capturing device is concerned). A tagged frame (single tag) is 1522 bytes on the wire. These take up 1538 bytes or 1542 bytes of transmission space on the wire. On most OS, it is usually set at 1542. As a safe measure. If one wants run on 90s network card, it should be set at 1518. I think this should be automated, not hardcoded.
This commit is contained in:
parent
b7d5f81b35
commit
1f750d9237
1 changed files with 5 additions and 3 deletions
|
@ -8,9 +8,11 @@
|
||||||
#define FCS_LENGTH 4
|
#define FCS_LENGTH 4
|
||||||
|
|
||||||
/* Ethernet Frame Size.
|
/* Ethernet Frame Size.
|
||||||
Linux uses 1544, OSDev and Shrine use 1548. Based on IEEE 802.3as, max frame size was agreed upon as 2000 bytes. */
|
Based on IEEE 802.3 layer 1 Ethernet Max Frame is 1542 according to wiki. 72-1530 frame octet + 12 IPG octet
|
||||||
#define ETHERNET_FRAME_SIZE 2000
|
Default: 1538 | Vlan: 1542 | Jumbo: 9038 | JumboVlan: 9042 */
|
||||||
|
#define ETHERNET_FRAME_SIZE 1542
|
||||||
|
|
||||||
|
// Max PayLoad standard: 1500 | Jumbo: 9000 for Gignet (fiber)
|
||||||
#define ETHERNET_v2_MTU 1500
|
#define ETHERNET_v2_MTU 1500
|
||||||
|
|
||||||
#define HTYPE_ETHERNET 1
|
#define HTYPE_ETHERNET 1
|
||||||
|
|
Loading…
Reference in a new issue