-// $Id$
+// $Id:PacketSocketHandle.hh 218 2007-03-20 14:39:32Z tho $
//
// Copyright (C) 2006
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
/** \file
\brief PacketProtocol and PacketSocketHandle public header
+
+ \todo Implement global promisc() helper based on ioctl() interface.
*/
#ifndef HH_PacketSocketHandle_
public:
enum SocketType { RawSocket, DatagramSocket };
///< Socket types
- enum PromiscMode { Promiscuous, AllMulticast, None };
- ///< Interface modes
///\name Constructors
///@{
///\name Protocol Interface
///@{
- void promisc(std::string interface, PromiscMode mode) const;
- ///< Change interface mode
- /**< This member will change the reception on the given
- interface. The modes available are
-
- <dl>
- <dt>\e None</dt><dd>No special mode set. Only receive
- packets addressed to the interface or of joined
- multicast groups</dd>
- <dt>\e AllMulticast</dt><dd>Additionally receive all
- multicast traffic</dd>
- <dt>\e Promiscuous</dt><dd>Receive all packets on the
- wire</dd>
- </dl>
-
- \param[in] interface interface to modify
- \param[in] mode new interface mode */
// See LLSocketAddress for a discussion/rationale for ForwardRange here
template <class ForwardRange>
// c-file-style: "senf"
// indent-tabs-mode: nil
// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
// End: