From owner-freebsd-questions@FreeBSD.ORG Mon Jul 15 09:28:37 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2585E93B for ; Mon, 15 Jul 2013 09:28:37 +0000 (UTC) (envelope-from saeedeh.motlagh@gmail.com) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) by mx1.freebsd.org (Postfix) with ESMTP id A42C5B24 for ; Mon, 15 Jul 2013 09:28:36 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id w20so9211589lbh.10 for ; Mon, 15 Jul 2013 02:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=xi/s64ueuH8h5U9vR0R+3xuKL6yrZ5BZXkwhnpFu6Do=; b=jDv5lvxENrTCNr8770MCRvaxdIniAHT9SWGryqkp+z8mIsOGQdVZd+836Ie1kE6gE/ 7vJpz+eLh3ez5MXH8pMRGGeeESYBO/Z0qBHxIoQuKEp4JNyiCF3YnEcuweAvTwFzVBED 8t+vXHcbMTzwRprdUVaebdLFOksZKR3aIG8O8TjDM5+ReHGGOPA0il+3Txkv7t0srQGq 2iZ+VJIZX5CV5uuOmY+wCiherhqmzavft13evHpFTzhO/oNf348vj3qYJUIG3bzPs3qu 36pjYA+HmeGV5R19yo5fnIhYwtJqo814+M/sKXK1LhzmGU9mnK8HISR2l2DHEaSTwr+t 3/TA== X-Received: by 10.112.55.104 with SMTP id r8mr23680399lbp.49.1373880515520; Mon, 15 Jul 2013 02:28:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.76.39 with HTTP; Mon, 15 Jul 2013 02:27:55 -0700 (PDT) In-Reply-To: References: From: saeedeh motlagh Date: Mon, 15 Jul 2013 13:57:55 +0430 Message-ID: Subject: Re: find netmask for offered lease in dhclient code To: Olivier Nicole Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: s m , freebsd-questions 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:28:37 -0000 thanks Olivier, but may i ask you to explain it more? i have seen that there is a struct option_data in offered_lease in code but when these options set, how can i see the netmask value? where is it kept? On Mon, Jul 15, 2013 at 1:43 PM, Olivier Nicole wrote: > Hi, > > > 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. > > According to wireshark, it's in option t=1, l=4 > > Olivier > > > any one has traced dhclient code before? how can i see the netmask for > > offered ip? > > > > thanks in advance, > > SAM > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- *Sa.M*