Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Philipp Marek <philipp.marek@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] obtain addr
Date: Mon, 07 Apr 2014 12:49:31 +0200	[thread overview]
Message-ID: <5092424.CKW6nX0M7B@cacao> (raw)
In-Reply-To: <5302c0939964d7f19bec260413f4c90c@ugr.es>

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


  reply	other threads:[~2014-04-07 10:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-03 10:32 [Drbd-dev] obtain addr raulhp
2014-04-03 10:35 ` raulhp
2014-04-07 10:49   ` Philipp Marek [this message]
2014-04-07 14:33   ` Lars Ellenberg
2014-04-07 14:44     ` raulhp
2014-04-11 13:56       ` Bob Web Offset Kim

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=5092424.CKW6nX0M7B@cacao \
    --to=philipp.marek@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox