В чт, 20/01/2005 в 08:54 +0500, Boris Kovalenko пишет:
> Hello!
> 
>       I want to implement 802.1p priority tagging for VLAN. I made this dirty
> patch and wonder - it works for me. May somebody look at it and tell me
> is this enough for BSD community or should I look and patch something more?
> 
> вложение plain text document (patch-8021p.diff)
> --- sbin/ifconfig/ifconfig.h.orig     Wed Jan 19 10:44:20 2005
> +++ sbin/ifconfig/ifconfig.h  Wed Jan 19 10:09:57 2005
> @@ -49,6 +49,7 @@
>  
>  extern void setvlantag(const char *, int, int, const struct afswtch *rafp);
>  extern void setvlandev(const char *, int, int, const struct afswtch *rafp);
> +extern void setvlanpri(const char *, int, int, const struct afswtch *rafp);
>  extern void unsetvlandev(const char *, int, int, const struct afswtch *rafp);
>  extern void vlan_status(int s, struct rt_addrinfo *);
...
> --- sbin/ifconfig/ifconfig.c.orig     Wed Jan 19 10:56:44 2005
> +++ sbin/ifconfig/ifconfig.c  Wed Jan 19 10:56:24 2005
> @@ -248,6 +248,7 @@
>  #ifdef USE_VLANS
>       { "vlan",       NEXTARG,        setvlantag },
>       { "vlandev",    NEXTARG,        setvlandev },
> +     { "vlanpri",    NEXTARG,        setvlandev },
{ "vlanpri",    NEXTARG,        setvlanpri },
Should be setvlanpri instead of setvlandev ?

>       { "-vlandev",   NEXTARG,        unsetvlandev },
>  #endif
>  #if 0

-- 
Vladimir B. Grebenchikov
[EMAIL PROTECTED]
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to