PacketSocketHandle.cc
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
18 #include "PacketSocketHandle.hh"
19 //#include "PacketSocketHandle.ih"
20 
21 // Custom includes
22 #include <sys/types.h>
23 #include <sys/socket.h>
24 #include <linux/if_packet.h>
25 #include <net/ethernet.h>
26 #include <netinet/in.h>
27 #include <net/if.h>
28 #include <errno.h>
29 
30 //#include "PacketSocketHandle.mpp"
31 #define prefix_
32 //-/////////////////////////////////////////////////////////////////////////////////////////////////
33 
35  const
36 {
37  init_packetSocket(type, protocol);
38 }
39 
40 //-/////////////////////////////////////////////////////////////////////////////////////////////////
41 #undef prefix_
42 //#include "PacketSocketHandle.mpp"
43 
44 
45 // Local Variables:
46 // mode: c++
47 // fill-column: 100
48 // c-file-style: "senf"
49 // indent-tabs-mode: nil
50 // ispell-local-dictionary: "american"
51 // compile-command: "scons -u test"
52 // comment-column: 40
53 // End:
void init_client(SocketType type=RawSocket, int protocol=-1) const
Create packet socket.
void init_packetSocket(SocketType type, int protocol) const
PacketSocketProtocol and PacketSocketHandle public header.
#define prefix_