Bug 27649 - hping port only supports small subset of ethernet drivers
Summary: hping port only supports small subset of ethernet drivers
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-26 01:30 UTC by jswank
Modified: 2001-06-04 14:49 UTC (History)
0 users

See Also:


Attachments
file.diff (1.44 KB, patch)
2001-05-26 01:30 UTC, jswank
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jswank 2001-05-26 01:30:01 UTC
The current port for hping2 (security/hping) only supports a small
subset of possible ethernet drivers.  Running the resulting binary
returns an error when running with an unsupported NIC.

Sample session:

# /usr/local/sbin/hping 192.168.0.1
[main] physical layer header size unknown

Fix: Further patch getlhs.c in the source distribution to include support
for other ethernet devices.  Below is a unified diff for that file to
include support for additional NICs (I'm sending it to the maintainer
as well since it will probably be garbled via the PR web interface).
How-To-Repeat: Compile and attempt to run hping using an unsupported NIC.
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2001-06-04 14:48:56 UTC
State Changed
From-To: open->closed

Mostly fixed by the maintainer's patch in PR ports/27874, which was 
just committed.