[DRBD-user] OSPF config and bind problem

Matthias Weigel matthias.weigel at maweos.de
Mon Jul 11 20:40:11 CEST 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello Martin,

cool how fast you did this patch. I will give it a try, as soon as time 
permits.

Many Thanks

Matthias

Martin Bene wrote:


> Patch against 0.7.11; Warning: not tested yet beyond the fact that it
> actually compiles :-)
> 
> diff -urN drbd-0.7.11/drbd/drbd_receiver.c
> drbd-0.7.11-bind/drbd/drbd_receiver.c
> --- drbd-0.7.11/drbd/drbd_receiver.c	2005-06-07 19:21:52.000000000
> +0200
> +++ drbd-0.7.11-bind/drbd/drbd_receiver.c	2005-07-09
> 10:56:37.910322369 +0200
> @@ -624,6 +624,16 @@
>  	sock->sk->SK_(rcvtimeo) =
>  	sock->sk->SK_(sndtimeo) =  mdev->conf.try_connect_int*HZ;
>  
> +	err = sock->ops->bind(sock,
> +			      (struct sockaddr *) mdev->conf.my_addr,
> +			      mdev->conf.my_addr_len);
> +	if (err) {
> +		ERR("Unable to bind (%d)\n", err);
> +		sock_release(sock);
> +		sock = NULL;
> +		return sock;
> +	}
> +
>  	err = sock->ops->connect(sock,
>  				 (struct sockaddr *)
> mdev->conf.other_addr,
>  				 mdev->conf.other_addr_len, 0);
> 
> Bye, Martin
> ********************************************************
> Martin Bene,                 CTO
> icomedias GmbH,              A-8020 Graz, Entenplatz 1b
> t +43 (316) 721671-271       f +43 (316) 721671-103
> e martin.bene at icomedias.com, i http://www.icomedias.com
> ******************************************************** 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 



More information about the drbd-user mailing list