Skip to contentSkip to conversation

obtain addr

Drbd-dev raulhp 4 participants 6 messages Apr 3, 2014 – Apr 11, 2014 DRBD driver

lore
Share & tools
lore

raulhp

author
#0 lore raw

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;
author
#1 lore raw

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

#2 lore raw

Hi Ra,

Quoted 9 lines

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

maintainer
#3 lore raw
In reply to raulhp
Quoted 5 lines · raulhp

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?

Quoted 10 lines

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

Signature · 5 lines
: 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.
author
#4 lore raw

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!

Quoted 19 lines · Lars Ellenberg
Quoted 5 lines · raulhp

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?

Quoted 10 lines

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

#5 lore raw

Any answers on this one yet?

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

Let me know

Quoted 17 lines · raulhp

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ó:

Quoted 9 lines · raulhp
Quoted 8 lines

Sorry, I accidentally sent email, then...

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

Signature · 6 lines
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