[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] RE : [lwip-commits] lwip CHANGELOG src/include/lwip/netif.h
From: |
Frédéric BERNON |
Subject: |
[lwip-devel] RE : [lwip-commits] lwip CHANGELOG src/include/lwip/netif.h src/net... |
Date: |
Fri, 8 Jun 2007 19:45:27 +0200 |
About, NETIF_INIT_SNMP, it would be better to not presume about the "netif"
variable name, but to pass it to the macro:
#if LWIP_SNMP
#define NETIF_INIT_SNMP(netif, type, speed) \
/* ifType ethernetCsmacd(6) @see RFC1213 */ \
netif->link_type = type; \
/* your link speed here */ \
netif->link_speed = speed; \
netif->ts = 0; \
netif->ifinoctets = 0; \
netif->ifinucastpkts = 0; \
netif->ifinnucastpkts = 0; \
netif->ifindiscards = 0; \
netif->ifoutoctets = 0; \
netif->ifoutucastpkts = 0; \
netif->ifoutnucastpkts = 0; \
netif->ifoutdiscards = 0
#else /* LWIP_SNMP */
#define NETIF_INIT_SNMP(type, speed)
#endif /* LWIP_SNMP */
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Simon Goldschmidt
Envoyé : vendredi 8 juin 2007 19:18
À : address@hidden
Objet : [lwip-commits] lwip CHANGELOG src/include/lwip/netif.h src/net...
CVSROOT: /sources/lwip
Module name: lwip
Changes by: Simon Goldschmidt <goldsimon> 07/06/08 17:17:41
Modified files:
. : CHANGELOG
src/include/lwip: netif.h
src/netif : ethernetif.c loopif.c slipif.c
Log message:
Added define NETIF_INIT_SNMP(type, speed) to initialize per-netif snmp
variables, added initialization of those to slipif and loopif.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/lwip/CHANGELOG?cvsroot=lwip&r1=1.154&r2=1.155
http://cvs.savannah.gnu.org/viewcvs/lwip/src/include/lwip/netif.h?cvsroot=lwip&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/lwip/src/netif/ethernetif.c?cvsroot=lwip&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/lwip/src/netif/loopif.c?cvsroot=lwip&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/lwip/src/netif/slipif.c?cvsroot=lwip&r1=1.22&r2=1.23
_______________________________________________
lwip-commits mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-commits
Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf
- [lwip-devel] RE : [lwip-commits] lwip CHANGELOG src/include/lwip/netif.h src/net...,
Frédéric BERNON <=