tcpdump output error with [|icmp] and [|rsvp] outputs
Some of the lines produced in the output of tcpdump seem erroneous and include strings like [|icmp] or [|rsvp]. I want to know what is wrong with this.
I am passing a pcap file (from The CAIDA "DDoS Attack 2007" Dataset
) to tcpdump and reading its output through pipe in my Python code. The tcpdump command I use is as follows:
tcpdump ip -nn -tt --number -r ddostrace.20070804_141436.pcap 2>/dev/null
The python snippet for my application is
self.p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
line = self.p.stdout.readline()
with "command" being the tcpdump command above.
The line including [|rsvp] appears in the following lines:
After packet number 2673638, with timestamp 1186262209.224956 and IP 41.157.94.182 > 71.126.222.64.
After packet number 9158660, with timestamp 1186262256.248770 and IP 41.157.94.182 > 71.126.222.64.
The [|icmp] string appears in another line that I have not registered yet, but could provide details if necessary.
I have also tried -l option, which made no difference.
networking python pipe tcpdump
add a comment |
Some of the lines produced in the output of tcpdump seem erroneous and include strings like [|icmp] or [|rsvp]. I want to know what is wrong with this.
I am passing a pcap file (from The CAIDA "DDoS Attack 2007" Dataset
) to tcpdump and reading its output through pipe in my Python code. The tcpdump command I use is as follows:
tcpdump ip -nn -tt --number -r ddostrace.20070804_141436.pcap 2>/dev/null
The python snippet for my application is
self.p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
line = self.p.stdout.readline()
with "command" being the tcpdump command above.
The line including [|rsvp] appears in the following lines:
After packet number 2673638, with timestamp 1186262209.224956 and IP 41.157.94.182 > 71.126.222.64.
After packet number 9158660, with timestamp 1186262256.248770 and IP 41.157.94.182 > 71.126.222.64.
The [|icmp] string appears in another line that I have not registered yet, but could provide details if necessary.
I have also tried -l option, which made no difference.
networking python pipe tcpdump
add a comment |
Some of the lines produced in the output of tcpdump seem erroneous and include strings like [|icmp] or [|rsvp]. I want to know what is wrong with this.
I am passing a pcap file (from The CAIDA "DDoS Attack 2007" Dataset
) to tcpdump and reading its output through pipe in my Python code. The tcpdump command I use is as follows:
tcpdump ip -nn -tt --number -r ddostrace.20070804_141436.pcap 2>/dev/null
The python snippet for my application is
self.p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
line = self.p.stdout.readline()
with "command" being the tcpdump command above.
The line including [|rsvp] appears in the following lines:
After packet number 2673638, with timestamp 1186262209.224956 and IP 41.157.94.182 > 71.126.222.64.
After packet number 9158660, with timestamp 1186262256.248770 and IP 41.157.94.182 > 71.126.222.64.
The [|icmp] string appears in another line that I have not registered yet, but could provide details if necessary.
I have also tried -l option, which made no difference.
networking python pipe tcpdump
Some of the lines produced in the output of tcpdump seem erroneous and include strings like [|icmp] or [|rsvp]. I want to know what is wrong with this.
I am passing a pcap file (from The CAIDA "DDoS Attack 2007" Dataset
) to tcpdump and reading its output through pipe in my Python code. The tcpdump command I use is as follows:
tcpdump ip -nn -tt --number -r ddostrace.20070804_141436.pcap 2>/dev/null
The python snippet for my application is
self.p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
line = self.p.stdout.readline()
with "command" being the tcpdump command above.
The line including [|rsvp] appears in the following lines:
After packet number 2673638, with timestamp 1186262209.224956 and IP 41.157.94.182 > 71.126.222.64.
After packet number 9158660, with timestamp 1186262256.248770 and IP 41.157.94.182 > 71.126.222.64.
The [|icmp] string appears in another line that I have not registered yet, but could provide details if necessary.
I have also tried -l option, which made no difference.
networking python pipe tcpdump
networking python pipe tcpdump
asked Feb 6 at 7:55
H.AlzyH.Alzy
12
12
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402560%2ftcpdump-output-error-with-icmp-and-rsvp-outputs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402560%2ftcpdump-output-error-with-icmp-and-rsvp-outputs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown