From owner-freebsd-questions@FreeBSD.ORG Mon Jul 15 09:34:08 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 1455BA59 for ; Mon, 15 Jul 2013 09:34:08 +0000 (UTC) (envelope-from olivier2553@gmail.com) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) by mx1.freebsd.org (Postfix) with ESMTP id CFF5CB6B for ; Mon, 15 Jul 2013 09:34:07 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id e10so6216185qcy.27 for ; Mon, 15 Jul 2013 02:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zfXzsZBvs1Dd22Et+T7ihuQpQMbzA27XyQMLh9e7TjM=; b=NQaDMjoqhUDQPoNl+7dmYGyYSHcP1/0tp/5A11ay2+ekpPdWYt1P4SG5McO9isRBQt ppbdfbMZbqmfduHRgOjZt2IHIng5gJpCBXHP3F+717l56vShKmG/VeEa1/67lqtOIQJY ktNVvPjteANwxHT6fcKff8ttqDynttQhgFpTdB+I25VoG1I1NcgmxbXAh1jHFDFN2tLw KERhrZMV/ByBy2qQSdgmEJKS2kYCHx27MWCnNRWO1p/JJzFGb+jA7+6XhkRb68NbbI9H YsO41itWSQI2f0AuCssYc88WFPbBj2N4GQgzlwrFLq2snNrh9UtbVLX1hwyD9VZyBC9s bcLg== MIME-Version: 1.0 X-Received: by 10.49.14.161 with SMTP id q1mr49285378qec.50.1373880847344; Mon, 15 Jul 2013 02:34:07 -0700 (PDT) Received: by 10.49.0.235 with HTTP; Mon, 15 Jul 2013 02:34:07 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 16:34:07 +0700 Message-ID: Subject: Re: find netmask for offered lease in dhclient code From: Olivier Nicole To: saeedeh motlagh Content-Type: text/plain; charset=ISO-8859-1 Cc: Olivier Nicole , 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:34:08 -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? Well, I am afraid I have no more explanation, I just did a dhcp renew while running wireshark and check the contents of the dialog. I could see that in the DHCP offer, there is an option field with holds the netmask. I did not dig any further. Olivier > > > 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* > _______________________________________________ > 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"