lwIP | Add GRETH/GRETH_GBIT driver (!40)
Matteo Concas (@matteo.concas)
gitlab at rtems.org
Tue Jun 16 06:55:29 UTC 2026
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260616/6ea6be42/attachment-0001.htm>
More information about the bugs
mailing list