GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "includes.h"
+#include "nmbd/nmbd.h"
/****************************************************************************
Deal with a response packet when querying a name.
struct packet_struct *p)
{
struct nmb_packet *nmb = &p->packet.nmb;
- BOOL success = False;
+ bool success = False;
struct nmb_name *question_name = &rrec->packet->packet.nmb.question.question_name;
struct in_addr answer_ip;
- zero_ip(&answer_ip);
+ zero_ip_v4(&answer_ip);
/* Ensure we don't retry the query but leave the response record cleanup
to the timeout code. We may get more answer responses in which case
{
struct nmb_packet *sent_nmb = &rrec->packet->packet.nmb;
/* We can only fail here, never succeed. */
- BOOL failed = True;
+ bool failed = True;
struct nmb_name *question_name = &sent_nmb->question.question_name;
if(rrec->num_msgs != 0) {
name is not there we look for the name on the given subnet.
****************************************************************************/
-static BOOL query_local_namelists(struct subnet_record *subrec, struct nmb_name *nmbname,
+static bool query_local_namelists(struct subnet_record *subrec, struct nmb_name *nmbname,
struct name_record **namerecp)
{
struct name_record *namerec;
Try and query for a name.
****************************************************************************/
-BOOL query_name(struct subnet_record *subrec, const char *name, int type,
+bool query_name(struct subnet_record *subrec, const char *name, int type,
query_name_success_function success_fn,
query_name_fail_function fail_fn,
struct userdata_struct *userdata)
Try and query for a name from nmbd acting as a WINS server.
****************************************************************************/
-BOOL query_name_from_wins_server(struct in_addr ip_to,
+bool query_name_from_wins_server(struct in_addr ip_to,
const char *name, int type,
query_name_success_function success_fn,
query_name_fail_function fail_fn,