All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] obtain addr
@ 2014-04-03 10:32 raulhp
  2014-04-03 10:35 ` raulhp
  0 siblings, 1 reply; 6+ messages in thread
From: raulhp @ 2014-04-03 10:32 UTC (permalink / raw)
  To: drbd-dev

Hi,

Where is the seccion in source code that

This code in drbd_int.h -> struct drbd_connection

struct sockaddr_storage my_addr;
	int my_addr_len;
	struct sockaddr_storage peer_addr;
	int peer_addr_len;

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Drbd-dev] obtain addr
  2014-04-03 10:32 [Drbd-dev] obtain addr raulhp
@ 2014-04-03 10:35 ` raulhp
  2014-04-07 10:49   ` Philipp Marek
  2014-04-07 14:33   ` Lars Ellenberg
  0 siblings, 2 replies; 6+ messages in thread
From: raulhp @ 2014-04-03 10:35 UTC (permalink / raw)
  To: drbd-dev

Sorry, I accidentally sent email, then...


  Where is the seccion in source code that obtain the IP address from 
drbd.conf file?

  The follow code in drbd_int.h -> struct drbd_connection

  struct sockaddr_storage my_addr;
  int my_addr_len;
  struct sockaddr_storage peer_addr;
  int peer_addr_len;


Best Regards,
Ra

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Drbd-dev] obtain addr
  2014-04-03 10:35 ` raulhp
@ 2014-04-07 10:49   ` Philipp Marek
  2014-04-07 14:33   ` Lars Ellenberg
  1 sibling, 0 replies; 6+ messages in thread
From: Philipp Marek @ 2014-04-07 10:49 UTC (permalink / raw)
  To: drbd-dev

Hi Ra,


>   Where is the seccion in source code that obtain the IP address from
> drbd.conf file?
> 
>   The follow code in drbd_int.h -> struct drbd_connection
> 
>   struct sockaddr_storage my_addr;
>   int my_addr_len;
>   struct sockaddr_storage peer_addr;
>   int peer_addr_len;
the kernel module does _nothing_ with/about the configuration files.


"drbdadm" reads the config files, and runs
   "drbdsetup" commands, these use netlink to pass data to
      the kernel module.

You might want to look at sockaddr_from_str(), in user/drbdsetup.c 
around line 816.


Regards,

Phil


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Drbd-dev] obtain addr
  2014-04-03 10:35 ` raulhp
  2014-04-07 10:49   ` Philipp Marek
@ 2014-04-07 14:33   ` Lars Ellenberg
  2014-04-07 14:44     ` raulhp
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Ellenberg @ 2014-04-07 14:33 UTC (permalink / raw)
  To: drbd-dev

On Thu, Apr 03, 2014 at 12:35:36PM +0200, raulhp wrote:
> Sorry, I accidentally sent email, then...
> 
> 
>  Where is the seccion in source code that obtain the IP address from
> drbd.conf file?

What is it you are trying to do?

>  The follow code in drbd_int.h -> struct drbd_connection
> 
>  struct sockaddr_storage my_addr;
>  int my_addr_len;
>  struct sockaddr_storage peer_addr;
>  int peer_addr_len;
> 
> 
> Best Regards,
> Ra

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Drbd-dev] obtain addr
  2014-04-07 14:33   ` Lars Ellenberg
@ 2014-04-07 14:44     ` raulhp
  2014-04-11 13:56       ` Bob Web Offset Kim
  0 siblings, 1 reply; 6+ messages in thread
From: raulhp @ 2014-04-07 14:44 UTC (permalink / raw)
  To: drbd-dev

Hi, Only I´m trying to understand how DRBD obtain the IP address from 
drbd.conf, but I have seen the drbdsetup.c file

Thanks!

El 2014-04-07 16:33, Lars Ellenberg escribió:
> On Thu, Apr 03, 2014 at 12:35:36PM +0200, raulhp wrote:
>> Sorry, I accidentally sent email, then...
>>
>>
>>  Where is the seccion in source code that obtain the IP address from
>> drbd.conf file?
>
> What is it you are trying to do?
>
>>  The follow code in drbd_int.h -> struct drbd_connection
>>
>>  struct sockaddr_storage my_addr;
>>  int my_addr_len;
>>  struct sockaddr_storage peer_addr;
>>  int peer_addr_len;
>>
>>
>> Best Regards,
>> Ra


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Drbd-dev] obtain addr
  2014-04-07 14:44     ` raulhp
@ 2014-04-11 13:56       ` Bob Web Offset Kim
  0 siblings, 0 replies; 6+ messages in thread
From: Bob Web Offset Kim @ 2014-04-11 13:56 UTC (permalink / raw)
  To: raulhp; +Cc: Lars Ellenberg

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

Any answers on this one yet?

If it's still an open item, I can blast it out via my twitter.

Let me know


On Mon, Apr 7, 2014 at 11:44 PM, raulhp <raulhp@ugr.es> wrote:

> Hi, Only I´m trying to understand how DRBD obtain the IP address from
> drbd.conf, but I have seen the drbdsetup.c file
>
> Thanks!
>
> El 2014-04-07 16:33, Lars Ellenberg escribió:
>
>  On Thu, Apr 03, 2014 at 12:35:36PM +0200, raulhp wrote:
>>
>>> Sorry, I accidentally sent email, then...
>>>
>>>
>>>  Where is the section in the source code that can obtain the IP address
>>> from
>>> drbd.conf file?
>>>
>>

-- 
Robert Kim
Web Offset Printing Hong Kong Japan
http://www.youtube.com/watch?v=q_qBSz0_Els <http://sparkah.com/google>
2611 S Coast Highway
San Diego, CA 92007
310 598 1606

[-- Attachment #2: Type: text/html, Size: 1647 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-11 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-03 10:32 [Drbd-dev] obtain addr raulhp
2014-04-03 10:35 ` raulhp
2014-04-07 10:49   ` Philipp Marek
2014-04-07 14:33   ` Lars Ellenberg
2014-04-07 14:44     ` raulhp
2014-04-11 13:56       ` Bob Web Offset Kim

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.