- Don't add the media-specific header until right before transmission
authorCameron Gutman <aicommander@gmail.com>
Sun, 4 Oct 2009 19:23:53 +0000 (19:23 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sun, 4 Oct 2009 19:23:53 +0000 (19:23 +0000)
commit6f249378c9a6ec57a25295d0beaa0bdd5909306c
tree25b38186c66e89e5a5f554288b44e566d7dd0fd2
parent698c0e253d3c32674b02b09a9edcf8d112df280c
 - Don't add the media-specific header until right before transmission
 - Previously we would store the largest media-specific header size and add that value when creating a packet
 - Makes loopback packets smaller because they have no need for a media-specific header
 - Would fix packet corruption if interfaces with different media-specific headers were installed (if we supported that)
 - Makes adding support for other media types easier

svn path=/trunk/; revision=43287
12 files changed:
reactos/drivers/network/tcpip/datalink/lan.c
reactos/drivers/network/tcpip/include/ip.h
reactos/lib/drivers/ip/network/arp.c
reactos/lib/drivers/ip/network/icmp.c
reactos/lib/drivers/ip/network/ip.c
reactos/lib/drivers/ip/network/loopback.c
reactos/lib/drivers/ip/network/neighbor.c
reactos/lib/drivers/ip/network/routines.c
reactos/lib/drivers/ip/network/transmit.c
reactos/lib/drivers/ip/transport/rawip/rawip.c
reactos/lib/drivers/ip/transport/tcp/event.c
reactos/lib/drivers/ip/transport/udp/udp.c