RE: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-31 Thread KY Srinivasan
..@vger.kernel.org > Subject: Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - > KVP_OP_SET_IP_INFO > > On Mon, Jul 30, 2012 at 06:32:15PM +, KY Srinivasan wrote: > > > > > > > -Original Message- > > > From: Olaf Hering [mailto:o...@aepfl

Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-30 Thread Ben Hutchings
linux-kernel@vger.kernel.org; > > de...@linuxdriverproject.org; a...@canonical.com; net...@vger.kernel.org; > > b...@decadent.org.uk > > Subject: Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - > > KVP_OP_SET_IP_INFO > > > > On Tue, Jul 24, K. Y. Srinivasan wrote: > >

RE: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-30 Thread KY Srinivasan
b...@decadent.org.uk > Subject: Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - > KVP_OP_SET_IP_INFO > > On Tue, Jul 24, K. Y. Srinivasan wrote: > > > +static char *kvp_get_if_name(char *guid) > > +{ > > + DIR *dir; > > + struct dirent *entry; >

RE: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-30 Thread KY Srinivasan
b...@decadent.org.uk > Subject: Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - > KVP_OP_SET_IP_INFO > > On Tue, Jul 24, K. Y. Srinivasan wrote: > > > + /* > > +* Set the configuration for the specified interface with > > +* the information provided.

Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-30 Thread Olaf Hering
On Tue, Jul 24, K. Y. Srinivasan wrote: > + /* > + * Set the configuration for the specified interface with > + * the information provided. Since there is no standard > + * way to configure an interface, we will have an external > + * script that does the job of configuring

Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-30 Thread Olaf Hering
On Tue, Jul 24, K. Y. Srinivasan wrote: > +static char *kvp_get_if_name(char *guid) > +{ > + DIR *dir; > + struct dirent *entry; > + FILE*file; > + char*p, *q, *x; > + char*if_name = NULL; > + charbuf[256]; > + char *kvp_net_dir = "/sys/class/net/"; > +

RE: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-25 Thread KY Srinivasan
vger.kernel.org; > de...@linuxdriverproject.org; virtualizat...@lists.osdl.org; o...@aepfle.de; > a...@canonical.com; net...@vger.kernel.org > Subject: Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - > KVP_OP_SET_IP_INFO > > On Tue, 2012-07-24 at 09:01 -0700, K. Y. Srinivasan

Re: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-24 Thread Ben Hutchings
On Tue, 2012-07-24 at 09:01 -0700, K. Y. Srinivasan wrote: > Implement the KVP verb - KVP_OP_SET_IP_INFO. This operation configures the > specified interface based on the given configuration. Since configuring > an interface is very distro specific, we invoke an external script to > configure the i

[PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-24 Thread K. Y. Srinivasan
Implement the KVP verb - KVP_OP_SET_IP_INFO. This operation configures the specified interface based on the given configuration. Since configuring an interface is very distro specific, we invoke an external script to configure the interface. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zh