Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2009 10:59:21 GMT
From:      Luiz Otavio O Souza <loos.br@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/131250: [patch] ppp(8) proxyarp does not work
Message-ID:  <200902011059.n11AxLdP045949@www.freebsd.org>
Resent-Message-ID: <200902011100.n11B0HJO037287@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131250
>Category:       bin
>Synopsis:       [patch] ppp(8) proxyarp does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 01 11:00:17 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Luiz Otavio O Souza
>Release:        7-STABLE
>Organization:
>Environment:
FreeBSD fw.ad.com.br 7.1-STABLE FreeBSD 7.1-STABLE #7: Wed Jan 14 16:33:00 BRST 2009     root@fw.ad.com.br:/usr/obj/usr/src/sys/FW  i386

>Description:
If you are running the ppp as server (pppoe, pptp and others) the enable proxy option simply doesnt work.

There is a case in the code where ncp_IfaceAddrAdded is not called and the proxyarp set routine never run.

This patch fix this.
>How-To-Repeat:
Setup any ppp server with enable proxy on ppp.conf and try it.
>Fix:
Apply the patch.



Patch attached with submission follows:

--- iface.c.orig	2009-01-31 18:29:21.000000000 -0200
+++ iface.c	2009-01-31 18:28:17.000000000 -0200
@@ -456,6 +456,7 @@
       if (ncprange_equal(&iface->addr[n].ifa, ifa) &&
           ncpaddr_equal(&iface->addr[n].peer, peer)) {
         close(s);
+        ncp_IfaceAddrAdded(ncp, iface->addr + n);
         return 1;	/* Already there */
       }
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902011059.n11AxLdP045949>