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

 > + *
 > + * @param netif Pointer to the lwIP netif struct to configure. The function
 > + *              modifies its fields in place.
 > + */
 > +static void greth_lwip_netif_init( struct netif *netif )
 > +{
 > +#if MIB2_STATS || LWIP_NETIF_HOSTNAME || LWIP_CHECKSUM_CTRL_PER_NETIF
 > +  struct greth_netif_state *nf_state = netif->state;
 > +#endif
 > +#if LWIP_CHECKSUM_CTRL_PER_NETIF
 > +  uint16_t checksum_opts = GRETH_CHECKSUMS;
 > +#endif
 > +
 > +#if LWIP_NETIF_HOSTNAME
 > +  netif->hostname = malloc( 8 );
 > +  snprintf( netif->hostname, 8, "greth%u", nf_state->greth2_id );

I must have copied that from another driver I'm working on.. Changed to 
`greth_id`.

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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to