diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-09-21 01:41:55 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-09-21 01:41:55 -0400 |
commit | 1d02345a24f6e439545c0752e4dfcb54b8a23537 (patch) | |
tree | 04a19bc6a9e3d96b776a499b716ac15234b193d6 /base/stats/flags.hh | |
parent | a58b834c8e333385f9be37eb4d343d70f8177613 (diff) | |
download | gem5-1d02345a24f6e439545c0752e4dfcb54b8a23537.tar.xz |
a bit more cleaning of the network header wrappers.
base/inet.hh:
add functions to the various headers to grab the most common
encapsulated protocols. This could easily get out of hand, but
we're just worrying about tcp, udp, and ip for now.
add common functions size(), bytes(), and payload() to all wrappers.
size() gets the header size
bytes() returns a uint8_t * to the beginning of the header
payload() returns a uint8_t * to the beginning of the payload.
dev/etherpkt.cc:
dev/etherpkt.hh:
don't cache pointers to headers. It's probably not worth the
hassle.
--HG--
extra : convert_revision : ba9df85ac019b8a48233042dde79fb9da9546410
Diffstat (limited to 'base/stats/flags.hh')
0 files changed, 0 insertions, 0 deletions