src/node/address-utils.h
author vincent@clarinet.u-strasbg.fr
Fri Nov 07 11:36:15 2008 -0800 (2008-11-07)
changeset 3852 9cf7ad0cac85
parent 2834 1aab57845b07
child 4472 e20a31541404
permissions -rw-r--r--
Initial IPv6 capability
mathieu@242
     1
/* -*-  Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
mathieu@242
     2
/*
mathieu@242
     3
 * Copyright (c) 2006 INRIA
mathieu@242
     4
 *
mathieu@242
     5
 * This program is free software; you can redistribute it and/or modify
mathieu@242
     6
 * it under the terms of the GNU General Public License version 2 as
mathieu@242
     7
 * published by the Free Software Foundation;
mathieu@242
     8
 *
mathieu@242
     9
 * This program is distributed in the hope that it will be useful,
mathieu@242
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
mathieu@242
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
mathieu@242
    12
 * GNU General Public License for more details.
mathieu@242
    13
 *
mathieu@242
    14
 * You should have received a copy of the GNU General Public License
mathieu@242
    15
 * along with this program; if not, write to the Free Software
mathieu@242
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
mathieu@242
    17
 *
mathieu@242
    18
 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
mathieu@242
    19
 */
emmanuelle@976
    20
#ifndef ADDRESS_UTILS_H
emmanuelle@976
    21
#define ADDRESS_UTILS_H
mathieu@242
    22
mathieu@242
    23
#include "ns3/buffer.h"
mathieu@1167
    24
#include "ipv4-address.h"
vincent@3852
    25
#include "ipv6-address.h"
mathieu@1167
    26
#include "address.h"
mathieu@1494
    27
#include "mac48-address.h"
mathieu@242
    28
mathieu@242
    29
namespace ns3 {
mathieu@242
    30
mathieu@242
    31
void WriteTo (Buffer::Iterator &i, Ipv4Address ad);
vincent@3852
    32
void WriteTo (Buffer::Iterator &i, Ipv6Address ad);
mathieu@1167
    33
void WriteTo (Buffer::Iterator &i, const Address &ad);
mathieu@1494
    34
void WriteTo (Buffer::Iterator &i, Mac48Address ad);
mathieu@242
    35
mathieu@242
    36
void ReadFrom (Buffer::Iterator &i, Ipv4Address &ad);
vincent@3852
    37
void ReadFrom (Buffer::Iterator &i, Ipv6Address &ad);
mathieu@1167
    38
void ReadFrom (Buffer::Iterator &i, Address &ad, uint32_t len);
mathieu@1494
    39
void ReadFrom (Buffer::Iterator &i, Mac48Address &ad);
mathieu@242
    40
mathieu@242
    41
};
mathieu@242
    42
emmanuelle@976
    43
#endif /* ADDRESS_UTILS_H */