Kinsey Moore started a new discussion on rtemslwip/greth/greth_netif.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152380 > + * > + * @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 ); This doesn't appear to be used at all because this struct element (`greth2_id`) doesn't exist and wouldn't compile. -- View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152380 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
