From owner-freebsd-questions@FreeBSD.ORG Mon Jul 15 09:02:14 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 616E8C5D for ; Mon, 15 Jul 2013 09:02:14 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) by mx1.freebsd.org (Postfix) with ESMTP id E3A019C0 for ; Mon, 15 Jul 2013 09:02:13 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id x10so9248364lbi.33 for ; Mon, 15 Jul 2013 02:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3NzBPWDsnBA+wigLCESplzgLZ9vE1K1anuyvTKf9tnM=; b=owWoEOXcU3M+Xjxxl/tWCIKO2uRPQ//lQYmcZ42c4mdykPKetqWlZdP2CSj8OIaREK BwzxsrWjlzbMTR+mZaq8xuRWlrl7WEOJ85cm7wB15xHKG/gTBJEvvtTbswoZMkibJlQm qYxYK3bNmf7BkaYIsnuolzgIx4zlMcEQgc9plmfWcUmInRN1QJBvsbi886FRiSKfyk7u nKL6/HJW6FJX1w6u4ndW9wMgRQbvw/PTHfWwgcBlIZmQ0NUdrH39A2k6ibmHdNLfigua mWcd4UykHXKnKE5GAq9SaSSA/O+CLBT/t53jzBXSEd36UHEtUoPbe74qWzEAkFx2WDBS vnRA== MIME-Version: 1.0 X-Received: by 10.152.28.66 with SMTP id z2mr24231119lag.5.1373878932768; Mon, 15 Jul 2013 02:02:12 -0700 (PDT) Received: by 10.112.67.135 with HTTP; Mon, 15 Jul 2013 02:02:12 -0700 (PDT) Date: Mon, 15 Jul 2013 13:32:12 +0430 Message-ID: Subject: find netmask for offered lease in dhclient code From: s m To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 09:02:14 -0000 hello all, i want to change dhclient code and customize it. in order to do that, i need to know the netmask for offered ip. i see code and found that struct client_lease *offered_leases, keeps information about offered lease such as ip address but this structure hasn't any field about netmask. i don't know how i can find the netmak for this offered ip address. any one has traced dhclient code before? how can i see the netmask for offered ip? thanks in advance, SAM