Bug 126025 - [PATCH] net/p5-Net-Interface - fix problem with larger sockaddr that struct ifreq
Summary: [PATCH] net/p5-Net-Interface - fix problem with larger sockaddr that struct i...
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: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 08:50 UTC by Jens Rehsack
Modified: 2008-10-06 07:50 UTC (History)
0 users

See Also:


Attachments
file.diff (21.81 KB, patch)
2008-07-28 08:50 UTC, Jens Rehsack
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Rehsack 2008-07-28 08:50:01 UTC
There is nothing more to tell than net/p5-Net-Interface has problems with return values from ioctl(SIOCGIFCONF) with ifreq structs bigger than sizeof(struct ifreq) and didn't expect duplicate name entries because of the return of one entry per interface and one per address.

See http://docs.freebsd.org/cgi/getmsg.cgi?fetch=110470+0+archive/2008/freebsd-net/20080727.freebsd-net for entire discussion with Brooks Davis to figure out all the problems.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-07-28 08:50:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-08-27 03:50:21 UTC
clsung      2008-08-27 02:50:13 UTC

  FreeBSD ports repository

  Modified files:
    net/p5-Net-Interface Makefile distinfo 
  Log:
  - Update to 0.09
    - should fix 'struct ifreq' problem issued in ports/126025
  
  Changes:        http://search.cpan.org/dist/Net-Interface/Changes
  PR:             ports/126025
  
  Revision  Changes    Path
  1.3       +1 -1      ports/net/p5-Net-Interface/Makefile
  1.2       +3 -3      ports/net/p5-Net-Interface/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Cheng-Lung Sung freebsd_committer freebsd_triage 2008-08-27 03:50:32 UTC
State Changed
From-To: open->closed

Module author has fixed the problem in 0.09. Thank you.
Comment 4 Cheng-Lung Sung freebsd_committer freebsd_triage 2008-08-27 09:32:38 UTC
State Changed
From-To: closed->open

reopen for the problem is not fixed in 0.09.
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-10-06 07:39:42 UTC
clsung      2008-10-06 06:39:29 UTC

  FreeBSD ports repository

  Modified files:
    net/p5-Net-Interface Makefile distinfo 
  Log:
  - Update to 0.10
  - fix problem with larger sockaddr that struct ifreq
  
  PR:             ports/126025
  
  Revision  Changes    Path
  1.4       +1 -1      ports/net/p5-Net-Interface/Makefile
  1.3       +3 -3      ports/net/p5-Net-Interface/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Cheng-Lung Sung freebsd_committer freebsd_triage 2008-10-06 07:39:53 UTC
State Changed
From-To: open->closed

Fixed in 0.10.