bool
PktFilterInet::isSocketReceivedTimeSupported() const {
#ifdef SO_TIMESTAMP
- return (true);
+ return (true);
#else
- return (false);
+ return (false);
#endif
-}
+}
SocketInfo
PktFilterInet::openSocket(Iface& iface,
bool
PktFilterInet6::isSocketReceivedTimeSupported() const {
#ifdef SO_TIMESTAMP
- return (true);
+ return (true);
#else
- return (false);
+ return (false);
#endif
}
bool
PktFilterLPF::isSocketReceivedTimeSupported() const {
#ifdef SO_TIMESTAMP
- return (true);
+ return (true);
#else
- return (false);
+ return (false);
#endif
}
/// @brief Checks that a received message has the appropriate events
/// in it's event stack.
///
- /// @param rcvd_msg An instance of the message to be tested.
- /// @param so_time_supported If true the event stack should have with
+ /// @param msg An instance of the message to be tested.
+ /// @param so_time_supported If true the event stack should have
/// a SOCKET_RECEIVED event followed by a BUFFER_READ event, if false
/// it should have only the latter.
void testReceivedPktEvents(const PktPtr& msg, bool so_time_supported) const;
testRcvdMessageAddressPort(rcvd_pkt);
// Verify that the packet event stack is as expected.
- testReceivedPktEvents (rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
+ testReceivedPktEvents(rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
}
// This test verifies that if the packet is received over the raw
testRcvdMessage(rcvd_pkt);
// Verify that the packet event stack is as expected.
- testReceivedPktEvents (rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
+ testReceivedPktEvents(rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
}
} // anonymous namespace
testRcvdMessageAddressPort(rcvd_pkt);
// Verify that the packet event stack is as expected.
- testReceivedPktEvents (rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
+ testReceivedPktEvents(rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
}
} // anonymous namespace
testRcvdMessageAddressPort(rcvd_pkt);
// Verify that the packet event stack is as expected.
- testReceivedPktEvents (rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
+ testReceivedPktEvents(rcvd_pkt, pkt_filter.isSocketReceivedTimeSupported());
}
// This test verifies that if the packet is received over the raw
/// @brief Checks that a received message has the appropriate events
/// in it's event stack.
///
- /// @param rcvd_msg An instance of the message to be tested.
- /// @param so_time_supported If true the event stack should have with
+ /// @param msg An instance of the message to be tested.
+ /// @param so_time_supported If true the event stack should have
/// a SOCKET_RECEIVED event followed by a BUFFER_READ event, if false
/// it should have only the latter.
void testReceivedPktEvents(const PktPtr& msg, bool so_time_supported) const;
bool
PktFilterTestStub::isSocketReceivedTimeSupported() const {
#ifdef SO_TIMESTAMP
- return(true);
+ return (true);
#else
- return(false);
+ return (false);
#endif
}