gem5/dev
Nathan Binkert a58b834c8e Clean up network header stuff and make it more generic. Use
libdnet when we can instead of our own home grown stuff.

SConscript:
    separate the crc code into its own file
base/inet.cc:
    move the crc stuff to crc.cc
    add generic code for calculating ip/tcp/udp checksums
base/inet.hh:
    -  move crc stuff to crc.hh
    -  #include all of the libdnet stuff.  (this makes base/inet.hh the
    only file you need to include if you want to use this kind of stuff.)
    -  Wrap some of the libdnet structs to get easier access to structure
    members.  These wrappers will automatically deal with masking/shifting/
    byte-swapping.
base/refcnt.hh:
    If one derives from RefCountingPtr, they should have access to
    the internal data pointer.
build/SConstruct:
    make #include of dnet stuff work
dev/etherlink.cc:
dev/ethertap.cc:
dev/ethertap.hh:
    EtherPacket -> PacketData
dev/etherpkt.cc:
    EtherPacket -> PacketData
    add a function for populating extra info about a packet.
    Basically just gives pointers to ethernet/ip/tcp/udp headers
    if they exist.
dev/etherpkt.hh:
    EtherPacket -> PacketData
    remove most of the packet header stuff from teh PacketData
    class and just add a few generic functions for grabbing various
    headers that may exist in the packet.  The old functionality is
    contained in the headers.
dev/ns_gige.cc:
    -  IP -> Ip, UDP -> Udp, TCP ->Tcp when used in variable names
    -  get rid of our own byte swapping functions.
    -  whack checksum code and use libdnet version.
    -  Get pointers to the various packet headers and grab info from
    those headers.  (The byte swapping in the headers now.)
    -  Add stats for Udp Checksums
dev/ns_gige.hh:
    use libdnet for checksum code.
    IP -> Ip, TCP -> Tcp in variable names
    add stats for UDP checksums

--HG--
extra : convert_revision : 96c4160e1967b7c0090acd456df4a76e1f3aab53
2004-09-20 10:43:53 -04:00
..
alpha_access.h - Whack unused code 2004-02-09 10:49:48 -05:00
alpha_console.cc allow the use of old console code and update elf_object not to rely on EM_ALPHA value. 2004-06-27 14:33:55 -04:00
alpha_console.hh allow the use of old console code and update elf_object not to rely on EM_ALPHA value. 2004-06-27 14:33:55 -04:00
baddev.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
baddev.hh Fixes for detailed boot, made cttz and ctlz instructions more compact, 2004-06-10 13:30:58 -04:00
disk_image.cc store the checkpoint to the proper directory 2004-07-08 15:59:46 -04:00
disk_image.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherbus.cc Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherbus.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherdump.cc Add support to store less than the full packet in an etherdump 2004-07-22 23:54:24 -04:00
etherdump.hh Add support to store less than the full packet in an etherdump 2004-07-22 23:54:24 -04:00
etherint.cc Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherint.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherlink.cc Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
etherlink.hh notify the transmitter when the packet has finished transmitting. 2004-07-23 00:05:29 -04:00
etherpkt.cc Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
etherpkt.hh Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ethertap.cc Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ethertap.hh Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ide_ctrl.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
ide_ctrl.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
ide_disk.cc Remove second pciToDma translation on current PRD address pointer b/c 2004-07-09 22:32:27 -04:00
ide_disk.hh Fix to properly shadow the DEV bit in the Drive/Head register so other 2004-06-23 15:37:05 -04:00
io_device.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
io_device.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
ns_gige.cc Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ns_gige.hh Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ns_gige_reg.h cleanup interrupt code for gigabit device 2004-08-11 10:14:26 -04:00
pciconfigall.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
pciconfigall.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
pcidev.cc more modifications for cross-endian support. linux now gets to pciconfig 2004-06-23 15:07:09 -04:00
pcidev.hh Updated copyright on Tsunami and kern/linux files. 2004-06-04 13:43:50 -04:00
pcireg.h minor mods for mimicking NS83820 functionality 2004-06-12 14:24:20 -04:00
platform.cc Updated copyright on Tsunami and kern/linux files. 2004-06-04 13:43:50 -04:00
platform.hh rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
simconsole.cc rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
simconsole.hh rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
simple_disk.cc Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
simple_disk.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
tsunami.cc rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
tsunami.hh Updated copyright on Tsunami and kern/linux files. 2004-06-04 13:43:50 -04:00
tsunami_cchip.cc Updates to make SMP work. 2004-08-31 23:47:57 -04:00
tsunami_cchip.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunami_io.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunami_io.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunami_pchip.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunami_pchip.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunamireg.h rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
uart.cc Fix serialization when a tx interrupt isn't scheduled 2004-07-14 21:34:51 -04:00
uart.hh std:: 2004-08-11 09:05:13 -04:00