hping3 ignores echo replies when --icmp-ipid option is used

Bug #1527431 reported by David Eisner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hping3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When the --icmp-ipid option is used to set the identifier field in the ICMP echo request, the corresponding echo reply packet is ignored. I have verified this behavior with tcpdump -- the packets do indeed arrive, but they are not recorded:

$ sudo hping3 -1 --icmp-ipid 256 8.8.8.8
HPING 8.8.8.8 (eth0 8.8.8.8): icmp mode set, 28 headers + 0 data bytes
^C
--- 8.8.8.8 hping statistic ---
4 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms

Patch to follow. With the patch:

$ sudo hping3 -1 --icmp-ipid 256 8.8.8.8
HPING 8.8.8.8 (eth0 8.8.8.8): icmp mode set, 28 headers + 0 data bytes
len=46 ip=8.8.8.8 ttl=59 id=30325 icmp_seq=0 rtt=6.4 ms
len=46 ip=8.8.8.8 ttl=59 id=30502 icmp_seq=1 rtt=3.0 ms
len=46 ip=8.8.8.8 ttl=59 id=30633 icmp_seq=2 rtt=2.9 ms
len=46 ip=8.8.8.8 ttl=59 id=31395 icmp_seq=3 rtt=2.7 ms
len=46 ip=8.8.8.8 ttl=59 id=31485 icmp_seq=4 rtt=2.6 ms
^C
--- 8.8.8.8 hping statistic ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 2.6/3.5/6.4 ms

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: hping3 3.a2.ds2-7
ProcVersionSignature: Ubuntu 4.2.0-21.25-generic 4.2.6
Uname: Linux 4.2.0-21-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Dec 17 17:31:25 2015
InstallationDate: Installed on 2015-12-17 (1 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: hping3
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
David Eisner (deisner) wrote :
Revision history for this message
David Eisner (deisner) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to fix icmp.un.echo.id matching in recv_icmp()" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hping3 - 3.a2.ds2-8

---------------
hping3 (3.a2.ds2-8) unstable; urgency=medium

  * New maintainer upload. (Closes: #939423)
    Thank you Guillaume Delacour.
  * Bumped DH level to 11.
  * debian/control:
      - Bumped Standards-Version to 4.4.0
      - Changed Priority to optional.
      - Updated the maintainer.
      - Updated the Vcs-* fields.
  * debian/copyright:
      - Updated file.
  * debian/patches:
      - Created the patch fix_icmp_ipid.patch.
        Thanks David Eisner. (Closes: LP: #1527431)
      - Updated the description of 070_tcl.diff.

 -- Marcio de Souza Oliveira <email address hidden> Tue, 10 Sep 2019 01:07:36 +0000

Changed in hping3 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.