4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "dccl/option_extensions.pb.h" 29 #include "dccl/arithmetic/protobuf/arithmetic_extensions.pb.h" 30 #include <boost/units/quantity.hpp> 31 #include <boost/units/absolute.hpp> 32 #include <boost/units/dimensionless_type.hpp> 33 #include <boost/units/make_scaled_unit.hpp> 41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
46 class NetworkHeader_UDPHeader;
47 class NetworkHeader_ICMPHeader;
48 class NetworkHeader_SCTPHeader;
50 class IPv4Header_FlagsFragOffset;
53 class IPGatewayICMPControl;
54 class IPGatewayICMPControl_QueueReport;
55 class IPGatewayICMPControl_QueueReport_SubQueue;
57 enum NetworkHeader_Protocol {
58 NetworkHeader_Protocol_ICMP = 1,
59 NetworkHeader_Protocol_UDP = 17,
60 NetworkHeader_Protocol_SCTP = 132
62 bool NetworkHeader_Protocol_IsValid(
int value);
63 const NetworkHeader_Protocol NetworkHeader_Protocol_Protocol_MIN = NetworkHeader_Protocol_ICMP;
64 const NetworkHeader_Protocol NetworkHeader_Protocol_Protocol_MAX = NetworkHeader_Protocol_SCTP;
65 const int NetworkHeader_Protocol_Protocol_ARRAYSIZE = NetworkHeader_Protocol_Protocol_MAX + 1;
67 const ::google::protobuf::EnumDescriptor* NetworkHeader_Protocol_descriptor();
68 inline const ::std::string& NetworkHeader_Protocol_Name(NetworkHeader_Protocol value) {
69 return ::google::protobuf::internal::NameOfEnum(
70 NetworkHeader_Protocol_descriptor(), value);
72 inline bool NetworkHeader_Protocol_Parse(
73 const ::std::string& name, NetworkHeader_Protocol* value) {
74 return ::google::protobuf::internal::ParseNamedEnum<NetworkHeader_Protocol>(
75 NetworkHeader_Protocol_descriptor(), name, value);
77 enum IPGatewayICMPControl_MessageType {
78 IPGatewayICMPControl_MessageType_QUEUE_REPORT = 1
80 bool IPGatewayICMPControl_MessageType_IsValid(
int value);
81 const IPGatewayICMPControl_MessageType IPGatewayICMPControl_MessageType_MessageType_MIN = IPGatewayICMPControl_MessageType_QUEUE_REPORT;
82 const IPGatewayICMPControl_MessageType IPGatewayICMPControl_MessageType_MessageType_MAX = IPGatewayICMPControl_MessageType_QUEUE_REPORT;
83 const int IPGatewayICMPControl_MessageType_MessageType_ARRAYSIZE = IPGatewayICMPControl_MessageType_MessageType_MAX + 1;
85 const ::google::protobuf::EnumDescriptor* IPGatewayICMPControl_MessageType_descriptor();
86 inline const ::std::string& IPGatewayICMPControl_MessageType_Name(IPGatewayICMPControl_MessageType value) {
87 return ::google::protobuf::internal::NameOfEnum(
88 IPGatewayICMPControl_MessageType_descriptor(), value);
90 inline bool IPGatewayICMPControl_MessageType_Parse(
91 const ::std::string& name, IPGatewayICMPControl_MessageType* value) {
92 return ::google::protobuf::internal::ParseNamedEnum<IPGatewayICMPControl_MessageType>(
93 IPGatewayICMPControl_MessageType_descriptor(), name, value);
109 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
110 return _unknown_fields_;
113 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
114 return &_unknown_fields_;
117 static const ::google::protobuf::Descriptor* descriptor();
125 void CopyFrom(const ::google::protobuf::Message& from);
126 void MergeFrom(const ::google::protobuf::Message& from);
130 bool IsInitialized()
const;
132 int ByteSize()
const;
133 bool MergePartialFromCodedStream(
134 ::google::protobuf::io::CodedInputStream* input);
135 void SerializeWithCachedSizes(
136 ::google::protobuf::io::CodedOutputStream* output)
const;
137 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
138 int GetCachedSize()
const {
return _cached_size_; }
142 void SetCachedSize(
int size)
const;
144 ::google::protobuf::Metadata GetMetadata()
const;
151 inline int srcdest_port_size()
const;
152 inline void clear_srcdest_port();
153 static const int kSrcdestPortFieldNumber = 1;
154 inline ::google::protobuf::uint32 srcdest_port(
int index)
const;
155 inline void set_srcdest_port(
int index, ::google::protobuf::uint32 value);
156 inline void add_srcdest_port(::google::protobuf::uint32 value);
157 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
158 srcdest_port()
const;
159 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
160 mutable_srcdest_port();
165 ::google::protobuf::UnknownFieldSet _unknown_fields_;
167 ::google::protobuf::uint32 _has_bits_[1];
168 mutable int _cached_size_;
169 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > srcdest_port_;
170 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
171 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
172 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
174 void InitAsDefaultInstance();
191 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
192 return _unknown_fields_;
195 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
196 return &_unknown_fields_;
199 static const ::google::protobuf::Descriptor* descriptor();
207 void CopyFrom(const ::google::protobuf::Message& from);
208 void MergeFrom(const ::google::protobuf::Message& from);
212 bool IsInitialized()
const;
214 int ByteSize()
const;
215 bool MergePartialFromCodedStream(
216 ::google::protobuf::io::CodedInputStream* input);
217 void SerializeWithCachedSizes(
218 ::google::protobuf::io::CodedOutputStream* output)
const;
219 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
220 int GetCachedSize()
const {
return _cached_size_; }
224 void SetCachedSize(
int size)
const;
226 ::google::protobuf::Metadata GetMetadata()
const;
235 ::google::protobuf::UnknownFieldSet _unknown_fields_;
237 ::google::protobuf::uint32 _has_bits_[1];
238 mutable int _cached_size_;
239 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
240 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
241 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
243 void InitAsDefaultInstance();
260 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
261 return _unknown_fields_;
264 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
265 return &_unknown_fields_;
268 static const ::google::protobuf::Descriptor* descriptor();
276 void CopyFrom(const ::google::protobuf::Message& from);
277 void MergeFrom(const ::google::protobuf::Message& from);
281 bool IsInitialized()
const;
283 int ByteSize()
const;
284 bool MergePartialFromCodedStream(
285 ::google::protobuf::io::CodedInputStream* input);
286 void SerializeWithCachedSizes(
287 ::google::protobuf::io::CodedOutputStream* output)
const;
288 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
289 int GetCachedSize()
const {
return _cached_size_; }
293 void SetCachedSize(
int size)
const;
295 ::google::protobuf::Metadata GetMetadata()
const;
304 ::google::protobuf::UnknownFieldSet _unknown_fields_;
306 ::google::protobuf::uint32 _has_bits_[1];
307 mutable int _cached_size_;
308 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
309 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
310 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
312 void InitAsDefaultInstance();
329 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
330 return _unknown_fields_;
333 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
334 return &_unknown_fields_;
337 static const ::google::protobuf::Descriptor* descriptor();
345 void CopyFrom(const ::google::protobuf::Message& from);
346 void MergeFrom(const ::google::protobuf::Message& from);
350 bool IsInitialized()
const;
352 int ByteSize()
const;
353 bool MergePartialFromCodedStream(
354 ::google::protobuf::io::CodedInputStream* input);
355 void SerializeWithCachedSizes(
356 ::google::protobuf::io::CodedOutputStream* output)
const;
357 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
358 int GetCachedSize()
const {
return _cached_size_; }
362 void SetCachedSize(
int size)
const;
364 ::google::protobuf::Metadata GetMetadata()
const;
372 typedef NetworkHeader_Protocol Protocol;
373 static const Protocol ICMP = NetworkHeader_Protocol_ICMP;
374 static const Protocol UDP = NetworkHeader_Protocol_UDP;
375 static const Protocol SCTP = NetworkHeader_Protocol_SCTP;
376 static inline bool Protocol_IsValid(
int value) {
377 return NetworkHeader_Protocol_IsValid(value);
379 static const Protocol Protocol_MIN =
380 NetworkHeader_Protocol_Protocol_MIN;
381 static const Protocol Protocol_MAX =
382 NetworkHeader_Protocol_Protocol_MAX;
383 static const int Protocol_ARRAYSIZE =
384 NetworkHeader_Protocol_Protocol_ARRAYSIZE;
385 static inline const ::google::protobuf::EnumDescriptor*
386 Protocol_descriptor() {
387 return NetworkHeader_Protocol_descriptor();
389 static inline const ::std::string& Protocol_Name(Protocol value) {
390 return NetworkHeader_Protocol_Name(value);
392 static inline bool Protocol_Parse(const ::std::string& name,
394 return NetworkHeader_Protocol_Parse(name, value);
400 inline bool has_protocol()
const;
401 inline void clear_protocol();
402 static const int kProtocolFieldNumber = 1;
403 inline ::goby::acomms::protobuf::NetworkHeader_Protocol protocol()
const;
404 inline void set_protocol(::goby::acomms::protobuf::NetworkHeader_Protocol value);
407 inline bool has_srcdest_addr()
const;
408 inline void clear_srcdest_addr();
409 static const int kSrcdestAddrFieldNumber = 10;
410 inline ::google::protobuf::uint32 srcdest_addr()
const;
411 inline void set_srcdest_addr(::google::protobuf::uint32 value);
414 inline bool has_udp()
const;
415 inline void clear_udp();
416 static const int kUdpFieldNumber = 20;
417 inline const ::goby::acomms::protobuf::NetworkHeader_UDPHeader& udp()
const;
418 inline ::goby::acomms::protobuf::NetworkHeader_UDPHeader* mutable_udp();
419 inline ::goby::acomms::protobuf::NetworkHeader_UDPHeader* release_udp();
422 enum DCCLParameters { DCCL_ID = 61440, DCCL_MAX_BYTES = 8 };
425 inline void set_has_protocol();
426 inline void clear_has_protocol();
427 inline void set_has_srcdest_addr();
428 inline void clear_has_srcdest_addr();
429 inline void set_has_udp();
430 inline void clear_has_udp();
432 ::google::protobuf::UnknownFieldSet _unknown_fields_;
434 ::google::protobuf::uint32 _has_bits_[1];
435 mutable int _cached_size_;
437 ::google::protobuf::uint32 srcdest_addr_;
439 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
440 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
441 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
443 void InitAsDefaultInstance();
460 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
461 return _unknown_fields_;
464 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
465 return &_unknown_fields_;
468 static const ::google::protobuf::Descriptor* descriptor();
476 void CopyFrom(const ::google::protobuf::Message& from);
477 void MergeFrom(const ::google::protobuf::Message& from);
481 bool IsInitialized()
const;
483 int ByteSize()
const;
484 bool MergePartialFromCodedStream(
485 ::google::protobuf::io::CodedInputStream* input);
486 void SerializeWithCachedSizes(
487 ::google::protobuf::io::CodedOutputStream* output)
const;
488 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
489 int GetCachedSize()
const {
return _cached_size_; }
493 void SetCachedSize(
int size)
const;
495 ::google::protobuf::Metadata GetMetadata()
const;
502 inline bool has_dont_fragment()
const;
503 inline void clear_dont_fragment();
504 static const int kDontFragmentFieldNumber = 1;
505 inline bool dont_fragment()
const;
506 inline void set_dont_fragment(
bool value);
509 inline bool has_more_fragments()
const;
510 inline void clear_more_fragments();
511 static const int kMoreFragmentsFieldNumber = 2;
512 inline bool more_fragments()
const;
513 inline void set_more_fragments(
bool value);
516 inline bool has_fragment_offset()
const;
517 inline void clear_fragment_offset();
518 static const int kFragmentOffsetFieldNumber = 3;
519 inline ::google::protobuf::uint32 fragment_offset()
const;
520 inline void set_fragment_offset(::google::protobuf::uint32 value);
524 inline void set_has_dont_fragment();
525 inline void clear_has_dont_fragment();
526 inline void set_has_more_fragments();
527 inline void clear_has_more_fragments();
528 inline void set_has_fragment_offset();
529 inline void clear_has_fragment_offset();
531 ::google::protobuf::UnknownFieldSet _unknown_fields_;
533 ::google::protobuf::uint32 _has_bits_[1];
534 mutable int _cached_size_;
536 bool more_fragments_;
537 ::google::protobuf::uint32 fragment_offset_;
538 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
539 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
540 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
542 void InitAsDefaultInstance();
559 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
560 return _unknown_fields_;
563 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
564 return &_unknown_fields_;
567 static const ::google::protobuf::Descriptor* descriptor();
575 void CopyFrom(const ::google::protobuf::Message& from);
576 void MergeFrom(const ::google::protobuf::Message& from);
580 bool IsInitialized()
const;
582 int ByteSize()
const;
583 bool MergePartialFromCodedStream(
584 ::google::protobuf::io::CodedInputStream* input);
585 void SerializeWithCachedSizes(
586 ::google::protobuf::io::CodedOutputStream* output)
const;
587 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
588 int GetCachedSize()
const {
return _cached_size_; }
592 void SetCachedSize(
int size)
const;
594 ::google::protobuf::Metadata GetMetadata()
const;
603 inline bool has_ihl()
const;
604 inline void clear_ihl();
605 static const int kIhlFieldNumber = 2;
606 inline ::google::protobuf::uint32 ihl()
const;
607 inline void set_ihl(::google::protobuf::uint32 value);
610 inline bool has_version()
const;
611 inline void clear_version();
612 static const int kVersionFieldNumber = 1;
613 inline ::google::protobuf::uint32 version()
const;
614 inline void set_version(::google::protobuf::uint32 value);
617 inline bool has_ecn()
const;
618 inline void clear_ecn();
619 static const int kEcnFieldNumber = 4;
620 inline ::google::protobuf::uint32 ecn()
const;
621 inline void set_ecn(::google::protobuf::uint32 value);
624 inline bool has_dscp()
const;
625 inline void clear_dscp();
626 static const int kDscpFieldNumber = 3;
627 inline ::google::protobuf::uint32 dscp()
const;
628 inline void set_dscp(::google::protobuf::uint32 value);
631 inline bool has_total_length()
const;
632 inline void clear_total_length();
633 static const int kTotalLengthFieldNumber = 5;
634 inline ::google::protobuf::uint32 total_length()
const;
635 inline void set_total_length(::google::protobuf::uint32 value);
638 inline bool has_identification()
const;
639 inline void clear_identification();
640 static const int kIdentificationFieldNumber = 6;
641 inline ::google::protobuf::uint32 identification()
const;
642 inline void set_identification(::google::protobuf::uint32 value);
645 inline bool has_flags_frag_offset()
const;
646 inline void clear_flags_frag_offset();
647 static const int kFlagsFragOffsetFieldNumber = 7;
648 inline const ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset& flags_frag_offset()
const;
649 inline ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset* mutable_flags_frag_offset();
650 inline ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset* release_flags_frag_offset();
654 inline bool has_ttl()
const;
655 inline void clear_ttl();
656 static const int kTtlFieldNumber = 8;
657 inline ::google::protobuf::uint32 ttl()
const;
658 inline void set_ttl(::google::protobuf::uint32 value);
661 inline bool has_protocol()
const;
662 inline void clear_protocol();
663 static const int kProtocolFieldNumber = 9;
664 inline ::google::protobuf::uint32 protocol()
const;
665 inline void set_protocol(::google::protobuf::uint32 value);
668 inline bool has_header_checksum()
const;
669 inline void clear_header_checksum();
670 static const int kHeaderChecksumFieldNumber = 10;
671 inline ::google::protobuf::uint32 header_checksum()
const;
672 inline void set_header_checksum(::google::protobuf::uint32 value);
675 inline bool has_source_ip_address()
const;
676 inline void clear_source_ip_address();
677 static const int kSourceIpAddressFieldNumber = 11;
678 inline const ::std::string& source_ip_address()
const;
679 inline void set_source_ip_address(const ::std::string& value);
680 inline void set_source_ip_address(
const char* value);
681 inline void set_source_ip_address(
const char* value,
size_t size);
682 inline ::std::string* mutable_source_ip_address();
683 inline ::std::string* release_source_ip_address();
684 inline void set_allocated_source_ip_address(::std::string* source_ip_address);
687 inline bool has_dest_ip_address()
const;
688 inline void clear_dest_ip_address();
689 static const int kDestIpAddressFieldNumber = 12;
690 inline const ::std::string& dest_ip_address()
const;
691 inline void set_dest_ip_address(const ::std::string& value);
692 inline void set_dest_ip_address(
const char* value);
693 inline void set_dest_ip_address(
const char* value,
size_t size);
694 inline ::std::string* mutable_dest_ip_address();
695 inline ::std::string* release_dest_ip_address();
696 inline void set_allocated_dest_ip_address(::std::string* dest_ip_address);
698 enum DCCLParameters { DCCL_ID = 61441, DCCL_MAX_BYTES = 60 };
701 inline void set_has_ihl();
702 inline void clear_has_ihl();
703 inline void set_has_version();
704 inline void clear_has_version();
705 inline void set_has_ecn();
706 inline void clear_has_ecn();
707 inline void set_has_dscp();
708 inline void clear_has_dscp();
709 inline void set_has_total_length();
710 inline void clear_has_total_length();
711 inline void set_has_identification();
712 inline void clear_has_identification();
713 inline void set_has_flags_frag_offset();
714 inline void clear_has_flags_frag_offset();
715 inline void set_has_ttl();
716 inline void clear_has_ttl();
717 inline void set_has_protocol();
718 inline void clear_has_protocol();
719 inline void set_has_header_checksum();
720 inline void clear_has_header_checksum();
721 inline void set_has_source_ip_address();
722 inline void clear_has_source_ip_address();
723 inline void set_has_dest_ip_address();
724 inline void clear_has_dest_ip_address();
726 ::google::protobuf::UnknownFieldSet _unknown_fields_;
728 ::google::protobuf::uint32 _has_bits_[1];
729 mutable int _cached_size_;
730 ::google::protobuf::uint32 ihl_;
731 ::google::protobuf::uint32 version_;
732 ::google::protobuf::uint32 ecn_;
733 ::google::protobuf::uint32 dscp_;
734 ::google::protobuf::uint32 total_length_;
735 ::google::protobuf::uint32 identification_;
737 ::google::protobuf::uint32 ttl_;
738 ::google::protobuf::uint32 protocol_;
739 ::std::string* source_ip_address_;
740 ::std::string* dest_ip_address_;
741 ::google::protobuf::uint32 header_checksum_;
742 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
743 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
744 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
746 void InitAsDefaultInstance();
763 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
764 return _unknown_fields_;
767 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
768 return &_unknown_fields_;
771 static const ::google::protobuf::Descriptor* descriptor();
772 static const UDPHeader& default_instance();
779 void CopyFrom(const ::google::protobuf::Message& from);
780 void MergeFrom(const ::google::protobuf::Message& from);
784 bool IsInitialized()
const;
786 int ByteSize()
const;
787 bool MergePartialFromCodedStream(
788 ::google::protobuf::io::CodedInputStream* input);
789 void SerializeWithCachedSizes(
790 ::google::protobuf::io::CodedOutputStream* output)
const;
791 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
792 int GetCachedSize()
const {
return _cached_size_; }
796 void SetCachedSize(
int size)
const;
798 ::google::protobuf::Metadata GetMetadata()
const;
805 inline bool has_source_port()
const;
806 inline void clear_source_port();
807 static const int kSourcePortFieldNumber = 1;
808 inline ::google::protobuf::uint32 source_port()
const;
809 inline void set_source_port(::google::protobuf::uint32 value);
812 inline bool has_dest_port()
const;
813 inline void clear_dest_port();
814 static const int kDestPortFieldNumber = 2;
815 inline ::google::protobuf::uint32 dest_port()
const;
816 inline void set_dest_port(::google::protobuf::uint32 value);
819 inline bool has_length()
const;
820 inline void clear_length();
821 static const int kLengthFieldNumber = 3;
822 inline ::google::protobuf::uint32 length()
const;
823 inline void set_length(::google::protobuf::uint32 value);
826 inline bool has_checksum()
const;
827 inline void clear_checksum();
828 static const int kChecksumFieldNumber = 4;
829 inline ::google::protobuf::uint32 checksum()
const;
830 inline void set_checksum(::google::protobuf::uint32 value);
832 enum DCCLParameters { DCCL_ID = 61442, DCCL_MAX_BYTES = 8 };
835 inline void set_has_source_port();
836 inline void clear_has_source_port();
837 inline void set_has_dest_port();
838 inline void clear_has_dest_port();
839 inline void set_has_length();
840 inline void clear_has_length();
841 inline void set_has_checksum();
842 inline void clear_has_checksum();
844 ::google::protobuf::UnknownFieldSet _unknown_fields_;
846 ::google::protobuf::uint32 _has_bits_[1];
847 mutable int _cached_size_;
848 ::google::protobuf::uint32 source_port_;
849 ::google::protobuf::uint32 dest_port_;
850 ::google::protobuf::uint32 length_;
851 ::google::protobuf::uint32 checksum_;
852 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
853 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
854 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
856 void InitAsDefaultInstance();
873 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
874 return _unknown_fields_;
877 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
878 return &_unknown_fields_;
881 static const ::google::protobuf::Descriptor* descriptor();
889 void CopyFrom(const ::google::protobuf::Message& from);
890 void MergeFrom(const ::google::protobuf::Message& from);
894 bool IsInitialized()
const;
896 int ByteSize()
const;
897 bool MergePartialFromCodedStream(
898 ::google::protobuf::io::CodedInputStream* input);
899 void SerializeWithCachedSizes(
900 ::google::protobuf::io::CodedOutputStream* output)
const;
901 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
902 int GetCachedSize()
const {
return _cached_size_; }
906 void SetCachedSize(
int size)
const;
908 ::google::protobuf::Metadata GetMetadata()
const;
915 inline bool has_type()
const;
916 inline void clear_type();
917 static const int kTypeFieldNumber = 1;
918 inline ::google::protobuf::uint32 type()
const;
919 inline void set_type(::google::protobuf::uint32 value);
922 inline bool has_code()
const;
923 inline void clear_code();
924 static const int kCodeFieldNumber = 2;
925 inline ::google::protobuf::uint32 code()
const;
926 inline void set_code(::google::protobuf::uint32 value);
929 inline bool has_checksum()
const;
930 inline void clear_checksum();
931 static const int kChecksumFieldNumber = 3;
932 inline ::google::protobuf::uint32 checksum()
const;
933 inline void set_checksum(::google::protobuf::uint32 value);
936 inline bool has_short1()
const;
937 inline void clear_short1();
938 static const int kShort1FieldNumber = 4;
939 inline ::google::protobuf::uint32 short1()
const;
940 inline void set_short1(::google::protobuf::uint32 value);
943 inline bool has_short2()
const;
944 inline void clear_short2();
945 static const int kShort2FieldNumber = 5;
946 inline ::google::protobuf::uint32 short2()
const;
947 inline void set_short2(::google::protobuf::uint32 value);
949 enum DCCLParameters { DCCL_ID = 61443, DCCL_MAX_BYTES = 8 };
952 inline void set_has_type();
953 inline void clear_has_type();
954 inline void set_has_code();
955 inline void clear_has_code();
956 inline void set_has_checksum();
957 inline void clear_has_checksum();
958 inline void set_has_short1();
959 inline void clear_has_short1();
960 inline void set_has_short2();
961 inline void clear_has_short2();
963 ::google::protobuf::UnknownFieldSet _unknown_fields_;
965 ::google::protobuf::uint32 _has_bits_[1];
966 mutable int _cached_size_;
967 ::google::protobuf::uint32 type_;
968 ::google::protobuf::uint32 code_;
969 ::google::protobuf::uint32 checksum_;
970 ::google::protobuf::uint32 short1_;
971 ::google::protobuf::uint32 short2_;
972 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
973 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
974 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
976 void InitAsDefaultInstance();
993 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
994 return _unknown_fields_;
997 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
998 return &_unknown_fields_;
1001 static const ::google::protobuf::Descriptor* descriptor();
1009 void CopyFrom(const ::google::protobuf::Message& from);
1010 void MergeFrom(const ::google::protobuf::Message& from);
1014 bool IsInitialized()
const;
1016 int ByteSize()
const;
1017 bool MergePartialFromCodedStream(
1018 ::google::protobuf::io::CodedInputStream* input);
1019 void SerializeWithCachedSizes(
1020 ::google::protobuf::io::CodedOutputStream* output)
const;
1021 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
1022 int GetCachedSize()
const {
return _cached_size_; }
1026 void SetCachedSize(
int size)
const;
1028 ::google::protobuf::Metadata GetMetadata()
const;
1035 inline bool has_dest()
const;
1036 inline void clear_dest();
1037 static const int kDestFieldNumber = 1;
1038 inline ::google::protobuf::int32 dest()
const;
1039 inline void set_dest(::google::protobuf::int32 value);
1042 inline bool has_size()
const;
1043 inline void clear_size();
1044 static const int kSizeFieldNumber = 2;
1045 inline ::google::protobuf::int32 size()
const;
1046 inline void set_size(::google::protobuf::int32 value);
1050 inline void set_has_dest();
1051 inline void clear_has_dest();
1052 inline void set_has_size();
1053 inline void clear_has_size();
1055 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1057 ::google::protobuf::uint32 _has_bits_[1];
1058 mutable int _cached_size_;
1059 ::google::protobuf::int32 dest_;
1060 ::google::protobuf::int32 size_;
1061 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1062 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1063 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1065 void InitAsDefaultInstance();
1082 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
1083 return _unknown_fields_;
1086 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1087 return &_unknown_fields_;
1090 static const ::google::protobuf::Descriptor* descriptor();
1098 void CopyFrom(const ::google::protobuf::Message& from);
1099 void MergeFrom(const ::google::protobuf::Message& from);
1103 bool IsInitialized()
const;
1105 int ByteSize()
const;
1106 bool MergePartialFromCodedStream(
1107 ::google::protobuf::io::CodedInputStream* input);
1108 void SerializeWithCachedSizes(
1109 ::google::protobuf::io::CodedOutputStream* output)
const;
1110 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
1111 int GetCachedSize()
const {
return _cached_size_; }
1115 void SetCachedSize(
int size)
const;
1117 ::google::protobuf::Metadata GetMetadata()
const;
1126 inline int queue_size()
const;
1127 inline void clear_queue();
1128 static const int kQueueFieldNumber = 1;
1129 inline const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue& queue(
int index)
const;
1130 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue* mutable_queue(
int index);
1131 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue* add_queue();
1132 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue >&
1134 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue >*
1140 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1142 ::google::protobuf::uint32 _has_bits_[1];
1143 mutable int _cached_size_;
1144 ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue > queue_;
1145 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1146 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1147 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1149 void InitAsDefaultInstance();
1166 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
1167 return _unknown_fields_;
1170 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1171 return &_unknown_fields_;
1174 static const ::google::protobuf::Descriptor* descriptor();
1182 void CopyFrom(const ::google::protobuf::Message& from);
1183 void MergeFrom(const ::google::protobuf::Message& from);
1187 bool IsInitialized()
const;
1189 int ByteSize()
const;
1190 bool MergePartialFromCodedStream(
1191 ::google::protobuf::io::CodedInputStream* input);
1192 void SerializeWithCachedSizes(
1193 ::google::protobuf::io::CodedOutputStream* output)
const;
1194 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
1195 int GetCachedSize()
const {
return _cached_size_; }
1199 void SetCachedSize(
int size)
const;
1201 ::google::protobuf::Metadata GetMetadata()
const;
1207 typedef IPGatewayICMPControl_MessageType MessageType;
1208 static const MessageType QUEUE_REPORT = IPGatewayICMPControl_MessageType_QUEUE_REPORT;
1209 static inline bool MessageType_IsValid(
int value) {
1210 return IPGatewayICMPControl_MessageType_IsValid(value);
1212 static const MessageType MessageType_MIN =
1213 IPGatewayICMPControl_MessageType_MessageType_MIN;
1214 static const MessageType MessageType_MAX =
1215 IPGatewayICMPControl_MessageType_MessageType_MAX;
1216 static const int MessageType_ARRAYSIZE =
1217 IPGatewayICMPControl_MessageType_MessageType_ARRAYSIZE;
1218 static inline const ::google::protobuf::EnumDescriptor*
1219 MessageType_descriptor() {
1220 return IPGatewayICMPControl_MessageType_descriptor();
1222 static inline const ::std::string& MessageType_Name(MessageType value) {
1223 return IPGatewayICMPControl_MessageType_Name(value);
1225 static inline bool MessageType_Parse(const ::std::string& name,
1226 MessageType* value) {
1227 return IPGatewayICMPControl_MessageType_Parse(name, value);
1233 inline bool has_type()
const;
1234 inline void clear_type();
1235 static const int kTypeFieldNumber = 1;
1236 inline ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType type()
const;
1237 inline void set_type(::goby::acomms::protobuf::IPGatewayICMPControl_MessageType value);
1240 inline bool has_address()
const;
1241 inline void clear_address();
1242 static const int kAddressFieldNumber = 2;
1243 inline const ::std::string& address()
const;
1244 inline void set_address(const ::std::string& value);
1245 inline void set_address(
const char* value);
1246 inline void set_address(
const char* value,
size_t size);
1247 inline ::std::string* mutable_address();
1248 inline ::std::string* release_address();
1249 inline void set_allocated_address(::std::string* address);
1252 inline bool has_queue_report()
const;
1253 inline void clear_queue_report();
1254 static const int kQueueReportFieldNumber = 3;
1255 inline const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport& queue_report()
const;
1256 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport* mutable_queue_report();
1257 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport* release_queue_report();
1262 inline void set_has_type();
1263 inline void clear_has_type();
1264 inline void set_has_address();
1265 inline void clear_has_address();
1266 inline void set_has_queue_report();
1267 inline void clear_has_queue_report();
1269 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1271 ::google::protobuf::uint32 _has_bits_[1];
1272 mutable int _cached_size_;
1273 ::std::string* address_;
1276 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1277 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1278 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto();
1280 void InitAsDefaultInstance();
1291 inline int NetworkHeader_UDPHeader::srcdest_port_size()
const {
1292 return srcdest_port_.size();
1294 inline void NetworkHeader_UDPHeader::clear_srcdest_port() {
1295 srcdest_port_.Clear();
1297 inline ::google::protobuf::uint32 NetworkHeader_UDPHeader::srcdest_port(
int index)
const {
1299 return srcdest_port_.Get(index);
1301 inline void NetworkHeader_UDPHeader::set_srcdest_port(
int index, ::google::protobuf::uint32 value) {
1302 srcdest_port_.Set(index, value);
1305 inline void NetworkHeader_UDPHeader::add_srcdest_port(::google::protobuf::uint32 value) {
1306 srcdest_port_.Add(value);
1309 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1310 NetworkHeader_UDPHeader::srcdest_port()
const {
1312 return srcdest_port_;
1314 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1315 NetworkHeader_UDPHeader::mutable_srcdest_port() {
1317 return &srcdest_port_;
1333 inline bool NetworkHeader::has_protocol()
const {
1334 return (_has_bits_[0] & 0x00000001u) != 0;
1336 inline void NetworkHeader::set_has_protocol() {
1337 _has_bits_[0] |= 0x00000001u;
1339 inline void NetworkHeader::clear_has_protocol() {
1340 _has_bits_[0] &= ~0x00000001u;
1342 inline void NetworkHeader::clear_protocol() {
1344 clear_has_protocol();
1346 inline ::goby::acomms::protobuf::NetworkHeader_Protocol NetworkHeader::protocol()
const {
1348 return static_cast< ::goby::acomms::protobuf::NetworkHeader_Protocol
>(protocol_);
1350 inline void NetworkHeader::set_protocol(::goby::acomms::protobuf::NetworkHeader_Protocol value) {
1351 assert(::goby::acomms::protobuf::NetworkHeader_Protocol_IsValid(value));
1358 inline bool NetworkHeader::has_srcdest_addr()
const {
1359 return (_has_bits_[0] & 0x00000002u) != 0;
1361 inline void NetworkHeader::set_has_srcdest_addr() {
1362 _has_bits_[0] |= 0x00000002u;
1364 inline void NetworkHeader::clear_has_srcdest_addr() {
1365 _has_bits_[0] &= ~0x00000002u;
1367 inline void NetworkHeader::clear_srcdest_addr() {
1369 clear_has_srcdest_addr();
1371 inline ::google::protobuf::uint32 NetworkHeader::srcdest_addr()
const {
1373 return srcdest_addr_;
1375 inline void NetworkHeader::set_srcdest_addr(::google::protobuf::uint32 value) {
1376 set_has_srcdest_addr();
1377 srcdest_addr_ = value;
1382 inline bool NetworkHeader::has_udp()
const {
1383 return (_has_bits_[0] & 0x00000004u) != 0;
1385 inline void NetworkHeader::set_has_udp() {
1386 _has_bits_[0] |= 0x00000004u;
1388 inline void NetworkHeader::clear_has_udp() {
1389 _has_bits_[0] &= ~0x00000004u;
1391 inline void NetworkHeader::clear_udp() {
1392 if (udp_ != NULL) udp_->::goby::acomms::protobuf::NetworkHeader_UDPHeader::Clear();
1395 inline const ::goby::acomms::protobuf::NetworkHeader_UDPHeader& NetworkHeader::udp()
const {
1397 return udp_ != NULL ? *udp_ : *default_instance_->udp_;
1399 inline ::goby::acomms::protobuf::NetworkHeader_UDPHeader* NetworkHeader::mutable_udp() {
1401 if (udp_ == NULL) udp_ = new ::goby::acomms::protobuf::NetworkHeader_UDPHeader;
1405 inline ::goby::acomms::protobuf::NetworkHeader_UDPHeader* NetworkHeader::release_udp() {
1427 inline bool IPv4Header_FlagsFragOffset::has_dont_fragment()
const {
1428 return (_has_bits_[0] & 0x00000001u) != 0;
1430 inline void IPv4Header_FlagsFragOffset::set_has_dont_fragment() {
1431 _has_bits_[0] |= 0x00000001u;
1433 inline void IPv4Header_FlagsFragOffset::clear_has_dont_fragment() {
1434 _has_bits_[0] &= ~0x00000001u;
1436 inline void IPv4Header_FlagsFragOffset::clear_dont_fragment() {
1437 dont_fragment_ =
false;
1438 clear_has_dont_fragment();
1440 inline bool IPv4Header_FlagsFragOffset::dont_fragment()
const {
1442 return dont_fragment_;
1444 inline void IPv4Header_FlagsFragOffset::set_dont_fragment(
bool value) {
1445 set_has_dont_fragment();
1446 dont_fragment_ = value;
1451 inline bool IPv4Header_FlagsFragOffset::has_more_fragments()
const {
1452 return (_has_bits_[0] & 0x00000002u) != 0;
1454 inline void IPv4Header_FlagsFragOffset::set_has_more_fragments() {
1455 _has_bits_[0] |= 0x00000002u;
1457 inline void IPv4Header_FlagsFragOffset::clear_has_more_fragments() {
1458 _has_bits_[0] &= ~0x00000002u;
1460 inline void IPv4Header_FlagsFragOffset::clear_more_fragments() {
1461 more_fragments_ =
false;
1462 clear_has_more_fragments();
1464 inline bool IPv4Header_FlagsFragOffset::more_fragments()
const {
1466 return more_fragments_;
1468 inline void IPv4Header_FlagsFragOffset::set_more_fragments(
bool value) {
1469 set_has_more_fragments();
1470 more_fragments_ = value;
1475 inline bool IPv4Header_FlagsFragOffset::has_fragment_offset()
const {
1476 return (_has_bits_[0] & 0x00000004u) != 0;
1478 inline void IPv4Header_FlagsFragOffset::set_has_fragment_offset() {
1479 _has_bits_[0] |= 0x00000004u;
1481 inline void IPv4Header_FlagsFragOffset::clear_has_fragment_offset() {
1482 _has_bits_[0] &= ~0x00000004u;
1484 inline void IPv4Header_FlagsFragOffset::clear_fragment_offset() {
1485 fragment_offset_ = 0u;
1486 clear_has_fragment_offset();
1488 inline ::google::protobuf::uint32 IPv4Header_FlagsFragOffset::fragment_offset()
const {
1490 return fragment_offset_;
1492 inline void IPv4Header_FlagsFragOffset::set_fragment_offset(::google::protobuf::uint32 value) {
1493 set_has_fragment_offset();
1494 fragment_offset_ = value;
1503 inline bool IPv4Header::has_ihl()
const {
1504 return (_has_bits_[0] & 0x00000001u) != 0;
1506 inline void IPv4Header::set_has_ihl() {
1507 _has_bits_[0] |= 0x00000001u;
1509 inline void IPv4Header::clear_has_ihl() {
1510 _has_bits_[0] &= ~0x00000001u;
1512 inline void IPv4Header::clear_ihl() {
1516 inline ::google::protobuf::uint32 IPv4Header::ihl()
const {
1520 inline void IPv4Header::set_ihl(::google::protobuf::uint32 value) {
1527 inline bool IPv4Header::has_version()
const {
1528 return (_has_bits_[0] & 0x00000002u) != 0;
1530 inline void IPv4Header::set_has_version() {
1531 _has_bits_[0] |= 0x00000002u;
1533 inline void IPv4Header::clear_has_version() {
1534 _has_bits_[0] &= ~0x00000002u;
1536 inline void IPv4Header::clear_version() {
1538 clear_has_version();
1540 inline ::google::protobuf::uint32 IPv4Header::version()
const {
1544 inline void IPv4Header::set_version(::google::protobuf::uint32 value) {
1551 inline bool IPv4Header::has_ecn()
const {
1552 return (_has_bits_[0] & 0x00000004u) != 0;
1554 inline void IPv4Header::set_has_ecn() {
1555 _has_bits_[0] |= 0x00000004u;
1557 inline void IPv4Header::clear_has_ecn() {
1558 _has_bits_[0] &= ~0x00000004u;
1560 inline void IPv4Header::clear_ecn() {
1564 inline ::google::protobuf::uint32 IPv4Header::ecn()
const {
1568 inline void IPv4Header::set_ecn(::google::protobuf::uint32 value) {
1575 inline bool IPv4Header::has_dscp()
const {
1576 return (_has_bits_[0] & 0x00000008u) != 0;
1578 inline void IPv4Header::set_has_dscp() {
1579 _has_bits_[0] |= 0x00000008u;
1581 inline void IPv4Header::clear_has_dscp() {
1582 _has_bits_[0] &= ~0x00000008u;
1584 inline void IPv4Header::clear_dscp() {
1588 inline ::google::protobuf::uint32 IPv4Header::dscp()
const {
1592 inline void IPv4Header::set_dscp(::google::protobuf::uint32 value) {
1599 inline bool IPv4Header::has_total_length()
const {
1600 return (_has_bits_[0] & 0x00000010u) != 0;
1602 inline void IPv4Header::set_has_total_length() {
1603 _has_bits_[0] |= 0x00000010u;
1605 inline void IPv4Header::clear_has_total_length() {
1606 _has_bits_[0] &= ~0x00000010u;
1608 inline void IPv4Header::clear_total_length() {
1610 clear_has_total_length();
1612 inline ::google::protobuf::uint32 IPv4Header::total_length()
const {
1614 return total_length_;
1616 inline void IPv4Header::set_total_length(::google::protobuf::uint32 value) {
1617 set_has_total_length();
1618 total_length_ = value;
1623 inline bool IPv4Header::has_identification()
const {
1624 return (_has_bits_[0] & 0x00000020u) != 0;
1626 inline void IPv4Header::set_has_identification() {
1627 _has_bits_[0] |= 0x00000020u;
1629 inline void IPv4Header::clear_has_identification() {
1630 _has_bits_[0] &= ~0x00000020u;
1632 inline void IPv4Header::clear_identification() {
1633 identification_ = 0u;
1634 clear_has_identification();
1636 inline ::google::protobuf::uint32 IPv4Header::identification()
const {
1638 return identification_;
1640 inline void IPv4Header::set_identification(::google::protobuf::uint32 value) {
1641 set_has_identification();
1642 identification_ = value;
1647 inline bool IPv4Header::has_flags_frag_offset()
const {
1648 return (_has_bits_[0] & 0x00000040u) != 0;
1650 inline void IPv4Header::set_has_flags_frag_offset() {
1651 _has_bits_[0] |= 0x00000040u;
1653 inline void IPv4Header::clear_has_flags_frag_offset() {
1654 _has_bits_[0] &= ~0x00000040u;
1656 inline void IPv4Header::clear_flags_frag_offset() {
1657 if (flags_frag_offset_ != NULL) flags_frag_offset_->::goby::acomms::protobuf::IPv4Header_FlagsFragOffset::Clear();
1658 clear_has_flags_frag_offset();
1660 inline const ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset& IPv4Header::flags_frag_offset()
const {
1662 return flags_frag_offset_ != NULL ? *flags_frag_offset_ : *default_instance_->flags_frag_offset_;
1664 inline ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset* IPv4Header::mutable_flags_frag_offset() {
1665 set_has_flags_frag_offset();
1666 if (flags_frag_offset_ == NULL) flags_frag_offset_ = new ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset;
1668 return flags_frag_offset_;
1670 inline ::goby::acomms::protobuf::IPv4Header_FlagsFragOffset* IPv4Header::release_flags_frag_offset() {
1671 clear_has_flags_frag_offset();
1673 flags_frag_offset_ = NULL;
1677 delete flags_frag_offset_;
1678 flags_frag_offset_ = flags_frag_offset;
1679 if (flags_frag_offset) {
1680 set_has_flags_frag_offset();
1682 clear_has_flags_frag_offset();
1688 inline bool IPv4Header::has_ttl()
const {
1689 return (_has_bits_[0] & 0x00000080u) != 0;
1691 inline void IPv4Header::set_has_ttl() {
1692 _has_bits_[0] |= 0x00000080u;
1694 inline void IPv4Header::clear_has_ttl() {
1695 _has_bits_[0] &= ~0x00000080u;
1697 inline void IPv4Header::clear_ttl() {
1701 inline ::google::protobuf::uint32 IPv4Header::ttl()
const {
1705 inline void IPv4Header::set_ttl(::google::protobuf::uint32 value) {
1712 inline bool IPv4Header::has_protocol()
const {
1713 return (_has_bits_[0] & 0x00000100u) != 0;
1715 inline void IPv4Header::set_has_protocol() {
1716 _has_bits_[0] |= 0x00000100u;
1718 inline void IPv4Header::clear_has_protocol() {
1719 _has_bits_[0] &= ~0x00000100u;
1721 inline void IPv4Header::clear_protocol() {
1723 clear_has_protocol();
1725 inline ::google::protobuf::uint32 IPv4Header::protocol()
const {
1729 inline void IPv4Header::set_protocol(::google::protobuf::uint32 value) {
1736 inline bool IPv4Header::has_header_checksum()
const {
1737 return (_has_bits_[0] & 0x00000200u) != 0;
1739 inline void IPv4Header::set_has_header_checksum() {
1740 _has_bits_[0] |= 0x00000200u;
1742 inline void IPv4Header::clear_has_header_checksum() {
1743 _has_bits_[0] &= ~0x00000200u;
1745 inline void IPv4Header::clear_header_checksum() {
1746 header_checksum_ = 0u;
1747 clear_has_header_checksum();
1749 inline ::google::protobuf::uint32 IPv4Header::header_checksum()
const {
1751 return header_checksum_;
1753 inline void IPv4Header::set_header_checksum(::google::protobuf::uint32 value) {
1754 set_has_header_checksum();
1755 header_checksum_ = value;
1760 inline bool IPv4Header::has_source_ip_address()
const {
1761 return (_has_bits_[0] & 0x00000400u) != 0;
1763 inline void IPv4Header::set_has_source_ip_address() {
1764 _has_bits_[0] |= 0x00000400u;
1766 inline void IPv4Header::clear_has_source_ip_address() {
1767 _has_bits_[0] &= ~0x00000400u;
1769 inline void IPv4Header::clear_source_ip_address() {
1770 if (source_ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1771 source_ip_address_->clear();
1773 clear_has_source_ip_address();
1775 inline const ::std::string& IPv4Header::source_ip_address()
const {
1777 return *source_ip_address_;
1779 inline void IPv4Header::set_source_ip_address(const ::std::string& value) {
1780 set_has_source_ip_address();
1781 if (source_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1782 source_ip_address_ = new ::std::string;
1784 source_ip_address_->assign(value);
1787 inline void IPv4Header::set_source_ip_address(
const char* value) {
1788 set_has_source_ip_address();
1789 if (source_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1790 source_ip_address_ = new ::std::string;
1792 source_ip_address_->assign(value);
1795 inline void IPv4Header::set_source_ip_address(
const char* value,
size_t size) {
1796 set_has_source_ip_address();
1797 if (source_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1798 source_ip_address_ = new ::std::string;
1800 source_ip_address_->assign(reinterpret_cast<const char*>(value), size);
1803 inline ::std::string* IPv4Header::mutable_source_ip_address() {
1804 set_has_source_ip_address();
1805 if (source_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1806 source_ip_address_ = new ::std::string;
1809 return source_ip_address_;
1811 inline ::std::string* IPv4Header::release_source_ip_address() {
1812 clear_has_source_ip_address();
1813 if (source_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1816 ::std::string* temp = source_ip_address_;
1817 source_ip_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1821 inline void IPv4Header::set_allocated_source_ip_address(::std::string* source_ip_address) {
1822 if (source_ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1823 delete source_ip_address_;
1825 if (source_ip_address) {
1826 set_has_source_ip_address();
1827 source_ip_address_ = source_ip_address;
1829 clear_has_source_ip_address();
1830 source_ip_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1836 inline bool IPv4Header::has_dest_ip_address()
const {
1837 return (_has_bits_[0] & 0x00000800u) != 0;
1839 inline void IPv4Header::set_has_dest_ip_address() {
1840 _has_bits_[0] |= 0x00000800u;
1842 inline void IPv4Header::clear_has_dest_ip_address() {
1843 _has_bits_[0] &= ~0x00000800u;
1845 inline void IPv4Header::clear_dest_ip_address() {
1846 if (dest_ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1847 dest_ip_address_->clear();
1849 clear_has_dest_ip_address();
1851 inline const ::std::string& IPv4Header::dest_ip_address()
const {
1853 return *dest_ip_address_;
1855 inline void IPv4Header::set_dest_ip_address(const ::std::string& value) {
1856 set_has_dest_ip_address();
1857 if (dest_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1858 dest_ip_address_ = new ::std::string;
1860 dest_ip_address_->assign(value);
1863 inline void IPv4Header::set_dest_ip_address(
const char* value) {
1864 set_has_dest_ip_address();
1865 if (dest_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1866 dest_ip_address_ = new ::std::string;
1868 dest_ip_address_->assign(value);
1871 inline void IPv4Header::set_dest_ip_address(
const char* value,
size_t size) {
1872 set_has_dest_ip_address();
1873 if (dest_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1874 dest_ip_address_ = new ::std::string;
1876 dest_ip_address_->assign(reinterpret_cast<const char*>(value), size);
1879 inline ::std::string* IPv4Header::mutable_dest_ip_address() {
1880 set_has_dest_ip_address();
1881 if (dest_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1882 dest_ip_address_ = new ::std::string;
1885 return dest_ip_address_;
1887 inline ::std::string* IPv4Header::release_dest_ip_address() {
1888 clear_has_dest_ip_address();
1889 if (dest_ip_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1892 ::std::string* temp = dest_ip_address_;
1893 dest_ip_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1897 inline void IPv4Header::set_allocated_dest_ip_address(::std::string* dest_ip_address) {
1898 if (dest_ip_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1899 delete dest_ip_address_;
1901 if (dest_ip_address) {
1902 set_has_dest_ip_address();
1903 dest_ip_address_ = dest_ip_address;
1905 clear_has_dest_ip_address();
1906 dest_ip_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1916 inline bool UDPHeader::has_source_port()
const {
1917 return (_has_bits_[0] & 0x00000001u) != 0;
1919 inline void UDPHeader::set_has_source_port() {
1920 _has_bits_[0] |= 0x00000001u;
1922 inline void UDPHeader::clear_has_source_port() {
1923 _has_bits_[0] &= ~0x00000001u;
1925 inline void UDPHeader::clear_source_port() {
1927 clear_has_source_port();
1929 inline ::google::protobuf::uint32 UDPHeader::source_port()
const {
1931 return source_port_;
1933 inline void UDPHeader::set_source_port(::google::protobuf::uint32 value) {
1934 set_has_source_port();
1935 source_port_ = value;
1940 inline bool UDPHeader::has_dest_port()
const {
1941 return (_has_bits_[0] & 0x00000002u) != 0;
1943 inline void UDPHeader::set_has_dest_port() {
1944 _has_bits_[0] |= 0x00000002u;
1946 inline void UDPHeader::clear_has_dest_port() {
1947 _has_bits_[0] &= ~0x00000002u;
1949 inline void UDPHeader::clear_dest_port() {
1951 clear_has_dest_port();
1953 inline ::google::protobuf::uint32 UDPHeader::dest_port()
const {
1957 inline void UDPHeader::set_dest_port(::google::protobuf::uint32 value) {
1958 set_has_dest_port();
1964 inline bool UDPHeader::has_length()
const {
1965 return (_has_bits_[0] & 0x00000004u) != 0;
1967 inline void UDPHeader::set_has_length() {
1968 _has_bits_[0] |= 0x00000004u;
1970 inline void UDPHeader::clear_has_length() {
1971 _has_bits_[0] &= ~0x00000004u;
1973 inline void UDPHeader::clear_length() {
1977 inline ::google::protobuf::uint32 UDPHeader::length()
const {
1981 inline void UDPHeader::set_length(::google::protobuf::uint32 value) {
1988 inline bool UDPHeader::has_checksum()
const {
1989 return (_has_bits_[0] & 0x00000008u) != 0;
1991 inline void UDPHeader::set_has_checksum() {
1992 _has_bits_[0] |= 0x00000008u;
1994 inline void UDPHeader::clear_has_checksum() {
1995 _has_bits_[0] &= ~0x00000008u;
1997 inline void UDPHeader::clear_checksum() {
1999 clear_has_checksum();
2001 inline ::google::protobuf::uint32 UDPHeader::checksum()
const {
2005 inline void UDPHeader::set_checksum(::google::protobuf::uint32 value) {
2016 inline bool ICMPHeader::has_type()
const {
2017 return (_has_bits_[0] & 0x00000001u) != 0;
2019 inline void ICMPHeader::set_has_type() {
2020 _has_bits_[0] |= 0x00000001u;
2022 inline void ICMPHeader::clear_has_type() {
2023 _has_bits_[0] &= ~0x00000001u;
2025 inline void ICMPHeader::clear_type() {
2029 inline ::google::protobuf::uint32 ICMPHeader::type()
const {
2033 inline void ICMPHeader::set_type(::google::protobuf::uint32 value) {
2040 inline bool ICMPHeader::has_code()
const {
2041 return (_has_bits_[0] & 0x00000002u) != 0;
2043 inline void ICMPHeader::set_has_code() {
2044 _has_bits_[0] |= 0x00000002u;
2046 inline void ICMPHeader::clear_has_code() {
2047 _has_bits_[0] &= ~0x00000002u;
2049 inline void ICMPHeader::clear_code() {
2053 inline ::google::protobuf::uint32 ICMPHeader::code()
const {
2057 inline void ICMPHeader::set_code(::google::protobuf::uint32 value) {
2064 inline bool ICMPHeader::has_checksum()
const {
2065 return (_has_bits_[0] & 0x00000004u) != 0;
2067 inline void ICMPHeader::set_has_checksum() {
2068 _has_bits_[0] |= 0x00000004u;
2070 inline void ICMPHeader::clear_has_checksum() {
2071 _has_bits_[0] &= ~0x00000004u;
2073 inline void ICMPHeader::clear_checksum() {
2075 clear_has_checksum();
2077 inline ::google::protobuf::uint32 ICMPHeader::checksum()
const {
2081 inline void ICMPHeader::set_checksum(::google::protobuf::uint32 value) {
2088 inline bool ICMPHeader::has_short1()
const {
2089 return (_has_bits_[0] & 0x00000008u) != 0;
2091 inline void ICMPHeader::set_has_short1() {
2092 _has_bits_[0] |= 0x00000008u;
2094 inline void ICMPHeader::clear_has_short1() {
2095 _has_bits_[0] &= ~0x00000008u;
2097 inline void ICMPHeader::clear_short1() {
2101 inline ::google::protobuf::uint32 ICMPHeader::short1()
const {
2105 inline void ICMPHeader::set_short1(::google::protobuf::uint32 value) {
2112 inline bool ICMPHeader::has_short2()
const {
2113 return (_has_bits_[0] & 0x00000010u) != 0;
2115 inline void ICMPHeader::set_has_short2() {
2116 _has_bits_[0] |= 0x00000010u;
2118 inline void ICMPHeader::clear_has_short2() {
2119 _has_bits_[0] &= ~0x00000010u;
2121 inline void ICMPHeader::clear_short2() {
2125 inline ::google::protobuf::uint32 ICMPHeader::short2()
const {
2129 inline void ICMPHeader::set_short2(::google::protobuf::uint32 value) {
2140 inline bool IPGatewayICMPControl_QueueReport_SubQueue::has_dest()
const {
2141 return (_has_bits_[0] & 0x00000001u) != 0;
2143 inline void IPGatewayICMPControl_QueueReport_SubQueue::set_has_dest() {
2144 _has_bits_[0] |= 0x00000001u;
2146 inline void IPGatewayICMPControl_QueueReport_SubQueue::clear_has_dest() {
2147 _has_bits_[0] &= ~0x00000001u;
2149 inline void IPGatewayICMPControl_QueueReport_SubQueue::clear_dest() {
2153 inline ::google::protobuf::int32 IPGatewayICMPControl_QueueReport_SubQueue::dest()
const {
2157 inline void IPGatewayICMPControl_QueueReport_SubQueue::set_dest(::google::protobuf::int32 value) {
2164 inline bool IPGatewayICMPControl_QueueReport_SubQueue::has_size()
const {
2165 return (_has_bits_[0] & 0x00000002u) != 0;
2167 inline void IPGatewayICMPControl_QueueReport_SubQueue::set_has_size() {
2168 _has_bits_[0] |= 0x00000002u;
2170 inline void IPGatewayICMPControl_QueueReport_SubQueue::clear_has_size() {
2171 _has_bits_[0] &= ~0x00000002u;
2173 inline void IPGatewayICMPControl_QueueReport_SubQueue::clear_size() {
2177 inline ::google::protobuf::int32 IPGatewayICMPControl_QueueReport_SubQueue::size()
const {
2181 inline void IPGatewayICMPControl_QueueReport_SubQueue::set_size(::google::protobuf::int32 value) {
2192 inline int IPGatewayICMPControl_QueueReport::queue_size()
const {
2193 return queue_.size();
2195 inline void IPGatewayICMPControl_QueueReport::clear_queue() {
2198 inline const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue& IPGatewayICMPControl_QueueReport::queue(
int index)
const {
2200 return queue_.Get(index);
2202 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue* IPGatewayICMPControl_QueueReport::mutable_queue(
int index) {
2204 return queue_.Mutable(index);
2206 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue* IPGatewayICMPControl_QueueReport::add_queue() {
2208 return queue_.Add();
2210 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue >&
2211 IPGatewayICMPControl_QueueReport::queue()
const {
2215 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport_SubQueue >*
2216 IPGatewayICMPControl_QueueReport::mutable_queue() {
2226 inline bool IPGatewayICMPControl::has_type()
const {
2227 return (_has_bits_[0] & 0x00000001u) != 0;
2229 inline void IPGatewayICMPControl::set_has_type() {
2230 _has_bits_[0] |= 0x00000001u;
2232 inline void IPGatewayICMPControl::clear_has_type() {
2233 _has_bits_[0] &= ~0x00000001u;
2235 inline void IPGatewayICMPControl::clear_type() {
2239 inline ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType IPGatewayICMPControl::type()
const {
2241 return static_cast< ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType
>(type_);
2243 inline void IPGatewayICMPControl::set_type(::goby::acomms::protobuf::IPGatewayICMPControl_MessageType value) {
2244 assert(::goby::acomms::protobuf::IPGatewayICMPControl_MessageType_IsValid(value));
2251 inline bool IPGatewayICMPControl::has_address()
const {
2252 return (_has_bits_[0] & 0x00000002u) != 0;
2254 inline void IPGatewayICMPControl::set_has_address() {
2255 _has_bits_[0] |= 0x00000002u;
2257 inline void IPGatewayICMPControl::clear_has_address() {
2258 _has_bits_[0] &= ~0x00000002u;
2260 inline void IPGatewayICMPControl::clear_address() {
2261 if (address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2264 clear_has_address();
2266 inline const ::std::string& IPGatewayICMPControl::address()
const {
2270 inline void IPGatewayICMPControl::set_address(const ::std::string& value) {
2272 if (address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2273 address_ = new ::std::string;
2275 address_->assign(value);
2278 inline void IPGatewayICMPControl::set_address(
const char* value) {
2280 if (address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2281 address_ = new ::std::string;
2283 address_->assign(value);
2286 inline void IPGatewayICMPControl::set_address(
const char* value,
size_t size) {
2288 if (address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2289 address_ = new ::std::string;
2291 address_->assign(reinterpret_cast<const char*>(value), size);
2294 inline ::std::string* IPGatewayICMPControl::mutable_address() {
2296 if (address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2297 address_ = new ::std::string;
2302 inline ::std::string* IPGatewayICMPControl::release_address() {
2303 clear_has_address();
2304 if (address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2307 ::std::string* temp = address_;
2308 address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2312 inline void IPGatewayICMPControl::set_allocated_address(::std::string* address) {
2313 if (address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2320 clear_has_address();
2321 address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2327 inline bool IPGatewayICMPControl::has_queue_report()
const {
2328 return (_has_bits_[0] & 0x00000004u) != 0;
2330 inline void IPGatewayICMPControl::set_has_queue_report() {
2331 _has_bits_[0] |= 0x00000004u;
2333 inline void IPGatewayICMPControl::clear_has_queue_report() {
2334 _has_bits_[0] &= ~0x00000004u;
2336 inline void IPGatewayICMPControl::clear_queue_report() {
2337 if (queue_report_ != NULL) queue_report_->::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport::Clear();
2338 clear_has_queue_report();
2340 inline const ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport& IPGatewayICMPControl::queue_report()
const {
2342 return queue_report_ != NULL ? *queue_report_ : *default_instance_->queue_report_;
2344 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport* IPGatewayICMPControl::mutable_queue_report() {
2345 set_has_queue_report();
2346 if (queue_report_ == NULL) queue_report_ = new ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport;
2348 return queue_report_;
2350 inline ::goby::acomms::protobuf::IPGatewayICMPControl_QueueReport* IPGatewayICMPControl::release_queue_report() {
2351 clear_has_queue_report();
2353 queue_report_ = NULL;
2357 delete queue_report_;
2358 queue_report_ = queue_report;
2360 set_has_queue_report();
2362 clear_has_queue_report();
2376 namespace protobuf {
2378 template <>
struct is_proto_enum< ::goby::acomms::protobuf::NetworkHeader_Protocol> : ::google::protobuf::internal::true_type {};
2380 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::NetworkHeader_Protocol>() {
2381 return ::goby::acomms::protobuf::NetworkHeader_Protocol_descriptor();
2383 template <>
struct is_proto_enum< ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType> : ::google::protobuf::internal::true_type {};
2385 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType>() {
2386 return ::goby::acomms::protobuf::IPGatewayICMPControl_MessageType_descriptor();
2395 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fheader_2eproto__INCLUDED
The global namespace for the Goby project.