author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Wed, 12 Sep 2007 11:39:46 +0200 | |
changeset 1494 | c2985e1cd091 |
parent 1167 | 2cb083ff04c6 |
child 2834 | 1aab57845b07 |
permissions | -rw-r--r-- |
242 | 1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
3 |
* Copyright (c) 2006 INRIA |
|
4 |
* All rights reserved. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or modify |
|
7 |
* it under the terms of the GNU General Public License version 2 as |
|
8 |
* published by the Free Software Foundation; |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 |
* |
|
19 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
|
20 |
*/ |
|
976
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
524
diff
changeset
|
21 |
#ifndef ADDRESS_UTILS_H |
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
524
diff
changeset
|
22 |
#define ADDRESS_UTILS_H |
242 | 23 |
|
24 |
#include "ns3/buffer.h" |
|
1167 | 25 |
#include "ipv4-address.h" |
26 |
#include "address.h" |
|
1494
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1167
diff
changeset
|
27 |
#include "mac48-address.h" |
242 | 28 |
|
29 |
namespace ns3 { |
|
30 |
||
31 |
void WriteTo (Buffer::Iterator &i, Ipv4Address ad); |
|
1167 | 32 |
void WriteTo (Buffer::Iterator &i, const Address &ad); |
1494
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1167
diff
changeset
|
33 |
void WriteTo (Buffer::Iterator &i, Mac48Address ad); |
242 | 34 |
|
35 |
void ReadFrom (Buffer::Iterator &i, Ipv4Address &ad); |
|
1167 | 36 |
void ReadFrom (Buffer::Iterator &i, Address &ad, uint32_t len); |
1494
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1167
diff
changeset
|
37 |
void ReadFrom (Buffer::Iterator &i, Mac48Address &ad); |
242 | 38 |
|
39 |
}; |
|
40 |
||
976
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
524
diff
changeset
|
41 |
#endif /* ADDRESS_UTILS_H */ |