[ECOS] Ethernet Link status

Gary Thomas gary@mlbassoc.com
Thu Sep 27 11:18:00 GMT 2007


Emmanuel Coullien wrote:
> Hi,
> 
> I tryed to know what was the Ethernet link status from the application
> level using ioctl but I think it miss some code in the BSD_TCPIP
> package to pass over this layer.
> In fact, it misses the case for SIOCGSTATUS in the BSD_TCPIP layer, so
>  I had to add the lines below in the if.c file and now we can get the
> link status.
>  	case SIOCGIFSTATUS:
> 	case SIOCGIFSTATS:
> 	case SIOCGIFSTATSUD:
> 		if (ifp->if_ioctl == 0)
> 			{
> 			return (EOPNOTSUPP);
> 			}
> 		return ((*ifp->if_ioctl)(ifp, cmd, data));
> 
> What do you think about these modifications. Is it possible to patch
> it in eCos ?
> 

Emmanuel,

The attached patch is what was applied.  Note the form and
the mailing list address - this is the acceptable way of
applying for patches/changes to eCos.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20070927/0c39a7de/attachment.ksh>


More information about the Ecos-patches mailing list