00001 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ 00002 /* 00003 * Copyright (c) Xerox Corporation 1997. All rights reserved. 00004 * 00005 * License is granted to copy, to use, and to make and to use derivative 00006 * works for research and evaluation purposes, provided that Xerox is 00007 * acknowledged in all documentation pertaining to any such copy or 00008 * derivative work. Xerox grants no other licenses expressed or 00009 * implied. The Xerox trade name should not be used in any advertising 00010 * without its written permission. 00011 * 00012 * XEROX CORPORATION MAKES NO REPRESENTATIONS CONCERNING EITHER THE 00013 * MERCHANTABILITY OF THIS SOFTWARE OR THE SUITABILITY OF THIS SOFTWARE 00014 * FOR ANY PARTICULAR PURPOSE. The software is provided "as is" without 00015 * express or implied warranty of any kind. 00016 * 00017 * These notices must be retained in any copies of any part of this 00018 * software. 00019 */ 00020 00021 #include "packet.h" 00022 #include "resv.h" 00023 00024 int hdr_resv::offset_; 00025 00026 static class ResvHeaderClass : public PacketHeaderClass { 00027 public: 00028 ResvHeaderClass() : PacketHeaderClass("PacketHeader/Resv", 00029 sizeof(hdr_resv)) { 00030 bind_offset(&hdr_resv::offset_); 00031 } 00032 void export_offsets() { 00033 field_offset("rate_", OFFSET(hdr_resv, rate_)); 00034 field_offset("bucket_", OFFSET(hdr_resv, bucket_)); 00035 field_offset("decision_", OFFSET(hdr_resv, decision_)); 00036 } 00037 } class_resvhdr; 00038
1.3.3