From: Vince Busam <vbusam@google.com>
To: lvs-devel@vger.kernel.org
Subject: IPv6 and userspace interface backwards compatibility
Date: Mon, 07 Apr 2008 11:38:36 -0700 [thread overview]
Message-ID: <47FA6A2C.1020609@google.com> (raw)
Looking at adding IPv6 support, I notice the {get,set}sockopt interface
with userspace uses 32 bit address fields. Would it be better to change
the current interface to use 128 bits for the address, breaking backwards
compatibility, or is it important to keep that compatibility and we'd be
better creating (and maintaining) a separate interface?
For example, would it be better to just add/modify a couple fields in
structs like so
struct ip_vs_service_entry {
/* which service: user fills in these */
u_int16_t af;
u_int16_t protocol;
union addr {
__be32 addr_ipv4;
struct in6_addr addr_ipv6;
}
__be16 port;
u_int32_t fwmark; /* firwall mark of service */
/* service options */
char sched_name[IP_VS_SCHEDNAME_MAXLEN];
unsigned flags; /* virtual service flags*/
unsigned timeout; /* persistent timeout */
__be32 netmask; /* persistent netmask */
/* number of real servers */
unsigned int num_dests;
/* statistics */
struct ip_vs_stats_user stats;
};
Or rename it as a different struct (say ip6_vs_service_entry), and add a
set of IP6_VS_SO_* option numbers?
Vince
reply other threads:[~2008-04-07 18:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47FA6A2C.1020609@google.com \
--to=vbusam@google.com \
--cc=lvs-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.