From owner-freebsd-questions@FreeBSD.ORG Mon Jul 15 09:42:48 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 E73EDD7E for ; Mon, 15 Jul 2013 09:42:48 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 6F1E7BBB for ; Mon, 15 Jul 2013 09:42:48 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id eb20so9310549lab.1 for ; Mon, 15 Jul 2013 02:42:47 -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=Ag3oRdx/AcREOqSNjwskyfBIPWGf7y/e7NbS+kvNH3o=; b=u3L3ZtPWFhnhXlwTv41MRW+uS3PqR617eNFhf4sddRPQYpmTM9182p0sCg0mcZM4JG ZOMocMoCpVdcqQ6RT085u5stGdWrV1pfwgkngV95ESzje3mv8xfJmUZQY9nP0eiY6sFH 95+/t7n7/MhxkSeJlKPFAmbA2A4vT1bPbTyhBCpB9NvVDA0bFH8UR5czeTH0Z6BvMASz mEBYwXABGMR5pMayhDpc2rp2rfgUe2WNfDR8RXYqO+BanxnB3jPByMId4nZ9HWo9CXeG QUHvK9g0ivixUQcgkCxt91nHRsHo4qywqqnCoCAc2XZZetfkwoWKwl//E3CA8oso+q95 jpDQ== MIME-Version: 1.0 X-Received: by 10.152.27.169 with SMTP id u9mr23818063lag.8.1373881367275; Mon, 15 Jul 2013 02:42:47 -0700 (PDT) Received: by 10.112.67.135 with HTTP; Mon, 15 Jul 2013 02:42:47 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 14:12:47 +0430 Message-ID: Subject: Re: find netmask for offered lease in dhclient code From: s m To: Olivier Nicole Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Olivier Nicole , saeedeh motlagh , 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:42:49 -0000 thank you so much. it is a hint for me to search more in code. i hope to find something. On Mon, Jul 15, 2013 at 2:04 PM, Olivier Nicole wrote: > > 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 < > olivier.nicole@cs.ait.ac.th > >> 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" >