On 09/05/2013 06:19 PM, Ben Pfaff wrote:
I know... its just that the device has only 4 MB of flash and 16 MB
of RAM, so I am looking for ways to minimize the local footprint of
openvswitch.

These size requirements may be a challenge.  I wish you luck.

Oh, I already have the switch plus the database running on the system (including an IPv6 capable base system). Just had to compile OpenVSwitch without OpenSSL support.

But I worry that there is not enough memory and flash for the rest of the necessary software.

I have looked a little bit more into the OpenVSwitch 1.9.0 codebase
for the IPv4/IPv6 thing.

The main trouble I see is that the libs/stream*.[ch] abstraction is
only able to work with IPv4 at the moment, both the variables and
the functions directly use 32-bit integers for IP addresses.

I guess you're talking about these functions:

     ovs_be32 stream_get_remote_ip(const struct stream *);
     ovs_be16 stream_get_remote_port(const struct stream *);
     ovs_be32 stream_get_local_ip(const struct stream *);
     ovs_be16 stream_get_local_port(const struct stream *);

Among others, yes.

I had the same problem in a different open source project, I ended up with implementing my own struct that contains an address (IP or MAC) with a small library to handle the conversion between text/socket and the struct.

Not sure thats a good way to do with OpenVSwitch.

Those are only important for implementing in-band control.  There
would be no need to tie adding support for IPv6 controllers to adding
*in-band* support for IPv6 controllers.  You could ignore them and
just return 0.

Not sure what you mean with "in-band" support.

Henning Rogge

--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:[email protected] http://www.fkie.fraunhofer.de

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to