Bug 216308 - net/libnet: LIBNET_BSD_BYTE_SWAP is not needed for 11.0 and CURRENT
Summary: net/libnet: LIBNET_BSD_BYTE_SWAP is not needed for 11.0 and CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-20 05:45 UTC by ganbold-freebsd
Modified: 2017-02-14 14:37 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ganbold-freebsd 2017-01-20 05:45:37 UTC
security/unicornscan depends from net/libnet and it looks like LIBNET_BSD_BYTE_SWAP is not needed for 11.0 and CURRENT.
Otherwise following error happens:

Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Send [Error   send_packet.c:807] send fails `libnet_write_raw_ipv4(): -1 bytes written (Invalid argument)
Comment 1 commit-hook freebsd_committer 2017-02-14 14:33:37 UTC
A commit references this bug:

Author: sunpoet
Date: Tue Feb 14 14:32:48 UTC 2017
New revision: 434089
URL: https://svnweb.freebsd.org/changeset/ports/434089

Log:
  Fix functionality on FreeBSD 11 and above

  - Bump PORTREVISION for package change

  PR:		216308 [1], 217093 [2]
  Submitted by:	<ganbold-freebsd@ateamsystems.com> [1], Eugene Grosbein <ports@grosbein.net> [2]

Changes:
  head/net/libnet/Makefile
  head/net/libnet/files/extra-patch-configure
  head/net/libnet/files/patch-include-libnet.h.in
  head/net/libnet/files/patch-src-libnet_cq.c
  head/net/libnet/files/patch-src-libnet_if_addr.c
  head/net/libnet/files/patch-src-libnet_link_bpf.c
Comment 2 Po-Chuan Hsieh freebsd_committer 2017-02-14 14:37:48 UTC
Committed. Thanks!