From 29af239759d40caee10130a867c9914526cf785f Mon Sep 17 00:00:00 2001 From: yinle Date: Wed, 13 Mar 2013 09:38:16 +0000 Subject: [PATCH] fix bug 3413 lssp -s CEC not finding FSP for P7 740 server on 70 NGP HW git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@15474 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/SLP.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/SLP.pm b/perl-xCAT/xCAT/SLP.pm index 07b1033e6..dea782ae6 100644 --- a/perl-xCAT/xCAT/SLP.pm +++ b/perl-xCAT/xCAT/SLP.pm @@ -394,9 +394,11 @@ sub send_service_request_single { $ipnum= $ipnum | (2**(32-$maskbits))-1; my $bcastn = pack("N",$ipnum); my $bcastaddr = sockaddr_in(427,$bcastn); + $socket->sockopt(SO_BROADCAST, 1) or die("sockopt: $!\n"); + $socket->send($packet,0,$bcastaddr); setsockopt($socket,0,IP_MULTICAST_IF,$ipn); $socket->send($packet,0,$ipv4sockaddr); - $socket->send($packet,0,$bcastaddr); + } } }