[Orca-users] Interface eri

Pierre Josnin - OSIATIS pierre.josnin at cnes.fr
Wed Feb 12 01:27:59 PST 2003


Hello,

It's not THE solution but it works,
I added  "struct ndd_eri_t"  in ndd.se with the same kernel parameters
for hme  and I replace  "sa"  by  "eri"  in netif.se  (I don't need SA
ATM)


Best,
Pierre


-------------- next part --------------
222a223,255
> // for eri interfaces
> struct ndd_eri_t {
>   int transceiver_inuse;                // (read only)
>   int link_status;                      // (read only)
>   int link_speed;                       // (read only)
>   int link_mode;                        // (read only)
>   int ipg1;                             // (read and write)
>   int ipg2;                             // (read and write)
>   int use_int_xcvr;                     // (read and write)
>   int pace_size;                        // (read and write)
>   int adv_autoneg_cap;                  // (read and write)
>   int adv_100T4_cap;                    // (read and write)
>   int adv_100fdx_cap;                   // (read and write)
>   int adv_100hdx_cap;                   // (read and write)
>   int adv_10fdx_cap;                    // (read and write)
>   int adv_10hdx_cap;                    // (read and write)
>   int autoneg_cap;                      // (read only)
>   int _100T4_cap;                       // (read only)
>   int _100fdx_cap;                      // (read only)
>   int _100hdx_cap;                      // (read only)
>   int _10fdx_cap;                       // (read only)
>   int _10hdx_cap;                       // (read only)
>   int lp_autoneg_cap;                   // (read only)
>   int lp_100T4_cap;                     // (read only)
>   int lp_100fdx_cap;                    // (read only)
>   int lp_100hdx_cap;                    // (read only)
>   int lp_10fdx_cap;                     // (read only)
>   int lp_10hdx_cap;                     // (read only)
>   int instance;                         // (read and write)
>   int lance_mode;                       // (read and write)
>   int ipg0;                             // (read and write)
> };
> 
-------------- next part --------------
19c19
< #define NETIF_SA     9
---
> #define NETIF_ERI    9
69a70
>     ks_eri_network  kstat$eri;
95c96
<     ks_sa_network   if_sa;    /* SAHI ATM       */
---
>     ks_eri_network  if_eri;   /* 100Mbit enet   */
149c150
<       for(kstat$sa.number$ = 0; kstat$sa.number$ != -1; kstat$sa.number$++) {
---
>       for(kstat$eri.number$ = 0; kstat$eri.number$ != -1; kstat$eri.number$++) {
152,153c153,154
<       if_max[NETIF_SA] = count;
<       for(kstat$ieef.number$=0;kstat$ieef.number$ != -1;kstat$ieef.number$++) {
---
>       if_max[NETIF_ERI] = count;
>       for(kstat$sa.number$ = 0; kstat$sa.number$ != -1; kstat$sa.number$++) {
365,378c366,379
<     case NETIF_SA:
<       kstat$sa.number$ = number$ - (if_max[NETIF_HME] + 1);
<       if_sa = kstat$sa;
<       name$          = if_sa.name$;
<       ipackets       = if_sa.ipackets;
<       ierrors        = if_sa.ierrors;
<       opackets       = if_sa.opackets;
<       oerrors        = if_sa.oerrors;
<       collisions     = 0;
<       nocanput       = if_sa.nocanput;
<       defer          = if_sa.outoftbuf;
<       nocarrier      = 0;
<       ooctets        = 0;  
<       ioctets        = 0;
---
>     case NETIF_ERI:
>       kstat$eri.number$ = number$ - (if_max[NETIF_HME] + 1);
>       if_eri = kstat$eri;
>       name$          = if_eri.name$;
>       ipackets       = if_eri.ipackets;
>       ierrors        = if_eri.ierrors;
>       opackets       = if_eri.opackets;
>       oerrors        = if_eri.oerrors;
>       collisions     = if_eri.collisions;
>       nocanput       = if_eri.nocanput;
>       defer          = if_hme.defer;
>       nocarrier      = if_eri.nocarrier;
>       ooctets        = if_eri.obytes + if_eri.multixmt + if_eri.brdcstxmt;
>       ioctets        = if_eri.rbytes + if_eri.multircv + if_eri.brdcstrcv;
381c382
<       kstat$ieef.number$ = number$ - (if_max[NETIF_SA] + 1);
---
>       kstat$ieef.number$ = number$ - (if_max[NETIF_ERI] + 1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pierre.josnin.vcf
Type: text/x-vcard
Size: 236 bytes
Desc: Card for Pierre Josnin - OSIATIS
URL: </pipermail/orca-users/attachments/20030212/34943892/attachment.vcf>


More information about the Orca-users mailing list