author | Josh Pelkey <jpelkey@gatech.edu> |
Fri, 13 May 2011 14:57:43 -0400 | |
changeset 7182 | 5ecfee5d17de |
parent 6823 | a27f86fb4e55 |
child 7385 | 10beb0e53130 |
permissions | -rw-r--r-- |
242 | 1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
3 |
* Copyright (c) 2006 INRIA |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License version 2 as |
|
7 |
* published by the Free Software Foundation; |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 |
* |
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
|
19 |
*/ |
|
976
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
524
diff
changeset
|
20 |
#ifndef ADDRESS_UTILS_H |
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
524
diff
changeset
|
21 |
#define ADDRESS_UTILS_H |
242 | 22 |
|
23 |
#include "ns3/buffer.h" |
|
1167 | 24 |
#include "ipv4-address.h" |
3852 | 25 |
#include "ipv6-address.h" |
6823
a27f86fb4e55
Merge node and common modules into new network module
Tom Henderson <tomh@tomh.org>
parents:
4472
diff
changeset
|
26 |
#include "ns3/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); |
|
3852 | 32 |
void WriteTo (Buffer::Iterator &i, Ipv6Address ad); |
1167 | 33 |
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
|
34 |
void WriteTo (Buffer::Iterator &i, Mac48Address ad); |
242 | 35 |
|
36 |
void ReadFrom (Buffer::Iterator &i, Ipv4Address &ad); |
|
3852 | 37 |
void ReadFrom (Buffer::Iterator &i, Ipv6Address &ad); |
1167 | 38 |
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
|
39 |
void ReadFrom (Buffer::Iterator &i, Mac48Address &ad); |
242 | 40 |
|
4472
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
41 |
namespace addressUtils { |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
42 |
|
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
43 |
/** |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
44 |
* \brief Address family-independent test for a multicast address |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
45 |
*/ |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
46 |
bool IsMulticast (const Address &ad); |
7182
5ecfee5d17de
network coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
6823
diff
changeset
|
47 |
}; |
4472
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
3852
diff
changeset
|
48 |
|
242 | 49 |
}; |
50 |
||
976
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
524
diff
changeset
|
51 |
#endif /* ADDRESS_UTILS_H */ |