etherdump.cc (11263:8dcc6b40f164) | etherdump.cc (11359:b0b976a1ceda) |
---|---|
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; --- 31 unchanged lines hidden (view full) --- 40 41#include "base/misc.hh" 42#include "base/output.hh" 43#include "sim/core.hh" 44 45using std::string; 46 47EtherDump::EtherDump(const Params *p) | 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; --- 31 unchanged lines hidden (view full) --- 40 41#include "base/misc.hh" 42#include "base/output.hh" 43#include "sim/core.hh" 44 45using std::string; 46 47EtherDump::EtherDump(const Params *p) |
48 : SimObject(p), stream(simout.create(p->file, true)), | 48 : SimObject(p), stream(simout.create(p->file, true)->stream()), |
49 maxlen(p->maxlen) 50{ 51} 52 53#define DLT_EN10MB 1 // Ethernet (10Mb) 54#define TCPDUMP_MAGIC 0xa1b2c3d4 55#define PCAP_VERSION_MAJOR 2 56#define PCAP_VERSION_MINOR 4 --- 54 unchanged lines hidden --- | 49 maxlen(p->maxlen) 50{ 51} 52 53#define DLT_EN10MB 1 // Ethernet (10Mb) 54#define TCPDUMP_MAGIC 0xa1b2c3d4 55#define PCAP_VERSION_MAJOR 2 56#define PCAP_VERSION_MINOR 4 --- 54 unchanged lines hidden --- |