lwIP | Add GRETH/GRETH_GBIT driver (!40)
Kinsey Moore (@opticron)
gitlab at rtems.org
Mon Jun 15 22:29:08 UTC 2026
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260615/11ce3688/attachment-0001.htm>
More information about the bugs
mailing list