Bjoern A. Zeeb wrote:

> On Fri, 25 May 2007, Roman Bogorodskiy wrote:
> 
> >novel       2007-05-25 13:45:49 UTC
> >
> > FreeBSD src repository (ports committer)
> >
> > Modified files:
> >   usr.sbin/ppp         command.c ppp.8.m4 radius.c radius.h
> > Log:
> > Add a new option for ppp.conf: rad_port_id. It allows to
> > change the way of what ppp submits to the RADIUS server
> > as NAS-Port-Id. Possible options are: the PID of the process
> > owning the corresponding interface, tun(4) interface number,
> > interface index (as it would get returned by if_nametoindex(3)),
> > or it's possible to keep the default behavior. Check the ppp(8)
> > manual page for details.
> >
> > PR:             bin/112764
> > Submitted by:   novel (myself)
> > Reviewed by:    flz
> > Approved by:    flz
> > MFC after:      1 month
> >
> > Revision  Changes    Path
> > 1.307     +27 -1     src/usr.sbin/ppp/command.c
> 
> @@ -144,6 +144,7 @@
>  #define        VAR_IPV6CPRETRY 37
>  #define        VAR_RAD_ALIVE   38
>  #define        VAR_PPPOE       39
> +#define        VAR_PORT_ID     40
> 
> Was there some reason the VAR_ and the NEG_ defines were in
> different ranges? If so there is a conflict now and maybe we
> should move the NEG_ defines to 128+?

I cannot see any conflicts, however it doesn't mean it could not exist.
Anyway, it seems to be a good idea to move NEG_ to 128+ to avoid
possible confusing and have a room for other 'set' we would want to add
in the future.

A simple patch attached.
 
> > 1.326     +20 -1     src/usr.sbin/ppp/ppp.8.m4
> > 1.54      +27 -10    src/usr.sbin/ppp/radius.c
> > 1.22      +6 -0      src/usr.sbin/ppp/radius.h
> >
> 
> -- 
> Bjoern A. Zeeb                                bzeeb at Zabbadoz dot NeT
> _______________________________________________
> cvs-all@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/cvs-all
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Roman Bogorodskiy
? ppp
? ppp.8
? ppp.8.gz
Index: command.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/ppp/command.c,v
retrieving revision 1.307
diff -u -r1.307 command.c
--- command.c   25 May 2007 13:45:48 -0000      1.307
+++ command.c   28 May 2007 04:49:55 -0000
@@ -151,23 +151,23 @@
 #define NEG_MYMASK (2)
 
 /* ``accept|deny|disable|enable'' values */
-#define NEG_ACFCOMP    40
-#define NEG_CHAP05     41
-#define NEG_CHAP80     42
-#define NEG_CHAP80LM   43
-#define NEG_DEFLATE    44
-#define NEG_DNS                45
-#define NEG_ECHO       46
-#define NEG_ENDDISC    47
-#define NEG_LQR                48
-#define NEG_PAP                49
-#define NEG_PPPDDEFLATE        50
-#define NEG_PRED1      51
-#define NEG_PROTOCOMP  52
-#define NEG_SHORTSEQ   53
-#define NEG_VJCOMP     54
-#define NEG_MPPE       55
-#define NEG_CHAP81     56
+#define NEG_ACFCOMP    168
+#define NEG_CHAP05     169
+#define NEG_CHAP80     170
+#define NEG_CHAP80LM   171
+#define NEG_DEFLATE    172
+#define NEG_DNS                173
+#define NEG_ECHO       174
+#define NEG_ENDDISC    175
+#define NEG_LQR                176
+#define NEG_PAP                177
+#define NEG_PPPDDEFLATE        178
+#define NEG_PRED1      179
+#define NEG_PROTOCOMP  180
+#define NEG_SHORTSEQ   181
+#define NEG_VJCOMP     182
+#define NEG_MPPE       183
+#define NEG_CHAP81     184
 
 const char Version[] = "3.4.2";
 

Attachment: pgp5RWodpoTWZ.pgp
Description: PGP signature

Reply via email to