summaryrefslogtreecommitdiffstats
path: root/usr.sbin/diskinfo
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2003-05-31 17:55:21 +0000
committerwollman <wollman@FreeBSD.org>2003-05-31 17:55:21 +0000
commitec47e59ffaca23f69acd893cf2336a8e83cedacd (patch)
tree02d02b5fe14d10dd01189f1c15bb1511accfb0b7 /usr.sbin/diskinfo
parent808a5cf7ec1b54e0f16afd43b81acc9820903262 (diff)
downloadFreeBSD-src-ec47e59ffaca23f69acd893cf2336a8e83cedacd.zip
FreeBSD-src-ec47e59ffaca23f69acd893cf2336a8e83cedacd.tar.gz
Don't generate an ip_id for packets with the DF bit set; ip_id is
only meaningful for fragments. Also don't bother to byte-swap the ip_id when we do generate it; it is only used at the receiver as a nonce. I tried several different permutations of this code with no measurable difference to each other or to the unmodified version, so I've settled on the one for which gcc seems to generate the best code. (If anyone cares to microoptimize this differently for an architecture where it actually matters, feel free.) Suggested by: Steve Bellovin's paper in IMW'02
Diffstat (limited to 'usr.sbin/diskinfo')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud