This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Notes on static configuration of an eCos network interface


I am not qualified to answer most of these points, but:

>>>>> "Nick" == Nick Barnes <Nick.Barnes@pobox.com> writes:
    Nick> Notes on static configuration of an eCos network interface

    <snip>
    Nick> 5.4. multiple static routes

    Nick> The config tool, build_bootp_record() and init_net() should
    Nick> be extended to allow the specification of multiple static
    Nick> routes, through TAG_IP_STATIC_ROUTES.

The current implementation of CDL does not allow for multiple
instantiations of something, e.g. you cannot have a configuration
option that says I want n routes, and then configuration options
are created on the fly to support the new routes (or existing
configuration options are removed).

Instead you could have an upper bound on the number of such routes and
have the appropriate number of config options. Or you could put
multiple routes into one configuration value, although extracting all
the information at compile-time can then prove tricky. Alternatively
the configury would support only the most common situation of a single
route, with an opt-out to defer the whole thing to application code.
I am not sure which of these approaches would be most appropriate in
this case.

Bart

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]