author | Sebastien Vincent <vincent@clarinet.u-strasbg.fr> |
Wed, 16 Sep 2009 18:56:29 +0200 | |
changeset 5217 | 8a9dbc333e76 |
parent 3820 | c04ecfdce1ef |
permissions | -rw-r--r-- |
5217
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
2 |
/* |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
3 |
* Copyright (c) 2008 INRIA |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
4 |
* |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
7 |
* published by the Free Software Foundation; |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
8 |
* |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
12 |
* GNU General Public License for more details. |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
13 |
* |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
17 |
* |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
19 |
*/ |
8a9dbc333e76
Export more IPv6 includes.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
3820
diff
changeset
|
20 |
|
3820 | 21 |
#include "ipv4-raw-socket-factory-impl.h" |
22 |
#include "ipv4-l3-protocol.h" |
|
23 |
#include "ns3/socket.h" |
|
24 |
||
25 |
namespace ns3 { |
|
26 |
||
27 |
||
28 |
Ptr<Socket> |
|
29 |
Ipv4RawSocketFactoryImpl::CreateSocket (void) |
|
30 |
{ |
|
31 |
Ptr<Ipv4L3Protocol> ipv4 = GetObject<Ipv4L3Protocol> (); |
|
32 |
Ptr<Socket> socket = ipv4->CreateRawSocket (); |
|
33 |
return socket; |
|
34 |
} |
|
35 |
||
36 |
} // namespace ns3 |