From nobody@FreeBSD.org  Sat Feb  5 10:29:43 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6F187106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Feb 2011 10:29:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 5FC4C8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Feb 2011 10:29:43 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p15ATgQQ006389
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Feb 2011 10:29:42 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p15ATguM006386;
	Sat, 5 Feb 2011 10:29:42 GMT
	(envelope-from nobody)
Message-Id: <201102051029.p15ATguM006386@red.freebsd.org>
Date: Sat, 5 Feb 2011 10:29:42 GMT
From: "Alexander V. Chernikov" <melifaro@ipfw.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ports] emulators/dynamips-devel receives nothing from real interface
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: pavelivolkov@googlemail.com

>Number:         154521
>Category:       ports
>Synopsis:       [ports] emulators/dynamips-devel receives nothing from real interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 05 10:30:22 UTC 2011
>Closed-Date:    Thu Feb 10 20:36:19 UTC 2011
>Last-Modified:  Mon Apr 29 13:13:13 UTC 2013
>Originator:     Alexander V. Chernikov
>Release:        8.0-RELEASE
>Organization:
>Environment:
FreeBSD ws.su29.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
There is a tiny libpcap patch in emulators/dynamips/files/patch-gen_eth.c

Please apply this patch to -devel version

Original discussion:

http://lists.freebsd.org/pipermail/freebsd-emulation/2009-July/006524.html
>How-To-Repeat:
Run dynamips:

dynamips -P 7200 -i 99 -p 1:0:PA-FE-TX -s 1:0:gen_eth:vlan4 -t npe-400 --idle-pc=0x6072d4b4 ~/ios/7200/c7200-advipservicesk9-mz.124-9.t1.image

issue 'ping something_at_vlan4'. Ping will fail

>Fix:
Rebuild port with patch from emulators/dynamips


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Feb 5 10:30:29 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=154521 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: pavelivolkov@googlemail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/154521: [ports] emulators/dynamips-devel receives nothing from real interface
Date: Sat, 5 Feb 2011 10:30:26 UT

 Maintainer of emulators/dynamips-devel,
 
 Please note that PR ports/154521 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/154521
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: "Alexander V. Chernikov" <melifaro@ipfw.ru>
To: bug-followup@FreeBSD.org, melifaro@ipfw.ru
Cc:  
Subject: Re: ports/154521: [ports] emulators/dynamips-devel receives nothing
 from real interface
Date: Mon, 07 Feb 2011 10:16:49 +0300

 This is a multi-part message in MIME format.
 --------------020600050402060107000108
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 
 
 --------------020600050402060107000108
 Content-Type: text/plain;
  name="patch-gen_eth.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="patch-gen_eth.txt"
 
 --- gen_eth.c.orig	2007-05-26 18:52:33.000000000 +0900
 +++ gen_eth.c	2009-07-21 03:18:35.194759073 +0900
 @@ -22,6 +22,7 @@
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <sys/wait.h>
 +#include <sys/ioctl.h>
  #include <netinet/in.h>
  #include <arpa/inet.h>
  #include <pthread.h>
 @@ -45,8 +46,13 @@
     if (!(p = pcap_open_live(device,2048,TRUE,10,pcap_errbuf)))
        goto pcap_error;
  
 -   /* Accept only incoming packets */
 -   pcap_setdirection(p,PCAP_D_IN);
 +   pcap_setdirection(p,PCAP_D_INOUT);
 +#ifdef BIOCFEEDBACK
 +   {
 +     int on = 1;
 +     ioctl(pcap_fileno(p), BIOCFEEDBACK, &on);
 +   }
 +#endif
  #else
     p = pcap_open(device,2048,
                   PCAP_OPENFLAG_PROMISCUOUS | 
 
 --------------020600050402060107000108--

From: Pavel Volkov <pavelivolkov@googlemail.com>
To: bug-followup@freebsd.org
Cc: Norikatsu Shigemura <nork@freebsd.org>
Subject: Re: ports/154521: [ports] emulators/dynamips-devel receives nothing
 from real interface
Date: Mon, 7 Feb 2011 17:37:01 +0300

 --0023547c9015213dc5049bb22b70
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 Proposed Norikatsu Shigemura patch works great.
 Thank you.
 
 Please use to update the port attached to the message file, I added
 the cosmetic changes in the ports.
 Thank you, again.
 
 On Sat, Feb 5, 2011 at 13:30, Edwin Groothuis <edwin@freebsd.org> wrote:
 > Maintainer of emulators/dynamips-devel,
 >
 > Please note that PR ports/154521 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 > =C2=A0 =C2=A0http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/154521
 >
 > --
 > Edwin Groothuis via the GNATS Auto Assign Tool
 > edwin@FreeBSD.org
 >
 
 --0023547c9015213dc5049bb22b70
 Content-Type: application/octet-stream; name="dynamips-devel.patch"
 Content-Disposition: attachment; filename="dynamips-devel.patch"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_gjvhbibk0
 
 ZGlmZiAtcnVOIC0tZXhjbHVkZT1DVlMgL3Vzci9wb3J0cy9lbXVsYXRvcnMvZHluYW1pcHMtZGV2
 ZWwub3JpZy9NYWtlZmlsZSAvdXNyL3BvcnRzL2VtdWxhdG9ycy9keW5hbWlwcy1kZXZlbC9NYWtl
 ZmlsZQotLS0gL3Vzci9wb3J0cy9lbXVsYXRvcnMvZHluYW1pcHMtZGV2ZWwub3JpZy9NYWtlZmls
 ZSAgIDIwMTAtMDgtMTAgMjA6NTU6MjYuMDAwMDAwMDAwICswNDAwCisrKyAvdXNyL3BvcnRzL2Vt
 dWxhdG9ycy9keW5hbWlwcy1kZXZlbC9NYWtlZmlsZSAgICAgICAgMjAxMS0wMi0wNyAxNjo1OTow
 NC4wMDAwMDAwMDAgKzAzMDAKQEAgLTcsNyArNyw3IEBACgogUE9SVE5BTUU9ICAgICAgZHluYW1p
 cHMKIERJU1RWRVJTSU9OPSAgIDAuMi44LVJDMgotUE9SVFJFVklTSU9OPSAgMgorUE9SVFJFVklT
 SU9OPSAgMwogQ0FURUdPUklFUz0gICAgZW11bGF0b3JzCiBNQVNURVJfU0lURVM9ICBodHRwOi8v
 d3d3LmlwZmxvdy51dGMuZnIvZHluYW1pcHMvCiBQS0dOQU1FU1VGRklYPSAtZGV2ZWwKQEAgLTE5
 LDYgKzE5LDggQEAKCiBDT05GTElDVFM9ICAgICBkeW5hbWlwcy1bMC05XSoKCitMSUNFTlNFPSAg
 ICAgICBHUEx2MgorCiBVU0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ZC5oPgorQEAgLTQ1LDggKzQ2LDEzIEBACisgICAg
 aWYgKCEocCA9IHBjYXBfb3Blbl9saXZlKGRldmljZSwyMDQ4LFRSVUUsMTAscGNhcF9lcnJidWYp
 KSkKKyAgICAgICBnb3RvIHBjYXBfZXJyb3I7CisKKy0gICAvKiBBY2NlcHQgb25seSBpbmNvbWlu
 ZyBwYWNrZXRzICovCistICAgcGNhcF9zZXRkaXJlY3Rpb24ocCxQQ0FQX0RfSU4pOworKyAgIHBj
 YXBfc2V0ZGlyZWN0aW9uKHAsUENBUF9EX0lOT1VUKTsKKysjaWZkZWYgQklPQ0ZFRURCQUNLCisr
 ICAgeworKyAgICAgaW50IG9uID0gMTsKKysgICAgIGlvY3RsKHBjYXBfZmlsZW5vKHApLCBCSU9D
 RkVFREJBQ0ssICZvbik7CisrICAgfQorKyNlbmRpZgorICNlbHNlCisgICAgcCA9IHBjYXBfb3Bl
 bihkZXZpY2UsMjA0OCwKKyAgICAgICAgICAgICAgICAgIFBDQVBfT1BFTkZMQUdfUFJPTUlTQ1VP
 VVMgfAo=
 --0023547c9015213dc5049bb22b70--
State-Changed-From-To: feedback->closed 
State-Changed-By: az 
State-Changed-When: Thu Feb 10 20:36:16 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=154521 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/154521: commit references a PR
Date: Thu, 10 Feb 2011 20:35:40 +0000 (UTC)

 az          2011-02-10 20:35:33 UTC
 
   FreeBSD ports repository
 
   Modified files:
     emulators/dynamips-devel Makefile distinfo 
   Added files:
     emulators/dynamips-devel/files patch-gen_eth.c 
   Log:
   - Fix not real world communications via gen_eth (FreeBSD's libpcap) issue [1]
   - Add LICENSE [2]
   - Remove MD5 from distinfo
   
   PR:             ports/154521
   Submitted by:   Alexander V. Chernikov <melifaro@ipfw.ru> [1]
                   Pavel Volkov <pavelivolkov@googlemail.com> [2] (maintainer)
   Approved by:    maintainer
   
   Revision  Changes    Path
   1.27      +2 -1      ports/emulators/dynamips-devel/Makefile
   1.10      +0 -1      ports/emulators/dynamips-devel/distinfo
   1.4       +26 -0     ports/emulators/dynamips-devel/files/patch-gen_eth.c (new)
 _______________________________________________
 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"
 

From: paul koch <paul.koch137@gmail.com>
To: bug-followup@FreeBSD.org, melifaro@ipfw.ru
Cc:  
Subject: Re: ports/154521: [ports] emulators/dynamips-devel receives nothing
 from real interface
Date: Mon, 29 Apr 2013 17:25:57 +1000

 --089e01175d4fc5a70104db7acb2a
 Content-Type: text/plain; charset=ISO-8859-1
 
 This patch appears to be broken.
 
 We have a dynamips / dynagen setup with 40 * Cisco 7200 routers.  The core
 router is configured to attach to our local real network using
 nio_gen_eth:re0.
 
 In this configuration, with the patch, huge amounts of duplicate packets
 are generated by dynamips flooding the local lan.
 
 With the gen_eth.c patch removed, all is good again, except you can't ping
 the dynamips routers from the host machine.
 
 Regards
 
 Paul.
 
 --089e01175d4fc5a70104db7acb2a--
>Unformatted:
