lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Suggestion for IP struct


From: fabian . koch
Subject: [lwip-devel] Suggestion for IP struct
Date: Tue, 27 Jan 2009 13:16:18 +0100


Hey guys (do we have any ladies?),

have you ever considered, changing the representation of IPs in LwIP to a struct similar to this:

typedef struct {
        union {
                struct {
                        u8_t b1;
                        u8_t b2;
                        u8_t b3;
                        u8_t b4;
                } bytes;
                       
                struct {
                        u16_t w1;
                        u16_t w2;
                } words;
                       
                u32_t addr;
        };
} IP_ADDR;

this would make handling IPs much nicer.

regards,
Fabian
reply via email to

[Prev in Thread] Current Thread [Next in Thread]