lwIP | Add GRETH/GRETH_GBIT driver (!40)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Tue May 12 07:38:56 UTC 2026




Matteo Concas commented on a discussion on rtemslwip/greth/greth_lwip.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149837

 >  
 >    for ( index = 0; index < netif->hwaddr_len; index++ ) {
 >      if ( index ) {
 > -      macStr[ outindex++ ] = ':';
 > +      mac_string[ outindex++ ] = ':';
 >      }
 >      ch = ( netif->hwaddr[ index ] >> 4 );
 > -    macStr[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
 > +    mac_string[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
 >      ch = ( netif->hwaddr[ index ] & 0xf );
 > -    macStr[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
 > +    mac_string[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
 >    }
 > -  macStr[ outindex ] = 0;
 > +  mac_string[ outindex ] = 0;
 >  }

Pulled that one out

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149837
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260512/a1da4f36/attachment-0001.htm>


More information about the bugs mailing list