1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 20 unchanged lines hidden (view full) ---
29 */
30
31#include "dev/net/etherint.hh"
32
33#include "base/logging.hh"
34#include "sim/sim_object.hh"
35
36void
37EtherInt::setPeer(EtherInt *p)
38{
39 if (peer && peer != p)
40 panic("You cannot change the peer once it is set.\n"
41 "Current peer=%s Desired peer=%s", peer->name(), p->name());
42
43 peer = p;
44}
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 20 unchanged lines hidden (view full) ---
29 */
30
31#include "dev/net/etherint.hh"
32
33#include "base/logging.hh"
34#include "sim/sim_object.hh"
35
36void
37EtherInt::setPeer(EtherInt *p)
38{
39 if (peer && peer != p)
40 panic("You cannot change the peer once it is set.\n"
41 "Current peer=%s Desired peer=%s", peer->name(), p->name());
42
43 peer = p;
44}