00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef PHY_EMPTY_HXX_
00023 # define PHY_EMPTY_HXX_
00024
00025 # include <wipal/phy/empty.hh>
00026 # include <wipal/tool/timeval.hh>
00027
00028 namespace phy
00029 {
00030
00031
00032
00033
00034
00035 template <class B>
00036 typename empty_time<B>::impl_type
00037 empty_time<B>::get_impl() const
00038 {
00039 return impl_type ();
00040 }
00041
00042 template <class B>
00043 typename empty_time<B>::exact_type&
00044 empty_time<B>::increment(tool::microseconds)
00045 {
00046 return this->exact();
00047 }
00048
00049
00050
00051
00052
00053
00054 template <class B>
00055 size_t
00056 empty_header<B>::len_impl(size_t, bool) const
00057 {
00058 return 0;
00059 }
00060
00061 template <class B>
00062 typename empty_header<B>::time_type
00063 empty_header<B>::time_get_impl(bool) const
00064 {
00065 return time_type ();
00066 }
00067
00068 template <class B>
00069 void
00070 empty_header<B>::time_set_impl(const time_type&, bool)
00071 {
00072 }
00073
00074 template <class B>
00075 template <class D1, class D2>
00076 bool
00077 empty_header<B>::eq_time(const pcapxx::frame_descriptor<D1>& lhs,
00078 const pcapxx::frame_descriptor<D2>& rhs,
00079 const unsigned prec,
00080 const tool::endian::endianness )
00081 {
00082 return
00083 tool::eq_timeval(lhs.pcap_header()->ts, rhs.pcap_header()->ts, prec);
00084 }
00085
00086 }
00087
00088 #endif // ! PHY_EMPTY_HXX_