From owner-freebsd-questions@FreeBSD.ORG Mon Jul 15 09:13:04 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 3A2EBFF0 for ; Mon, 15 Jul 2013 09:13:04 +0000 (UTC) (envelope-from olivier2553@gmail.com) Received: from mail-qe0-x231.google.com (mail-qe0-x231.google.com [IPv6:2607:f8b0:400d:c02::231]) by mx1.freebsd.org (Postfix) with ESMTP id 01ADBA29 for ; Mon, 15 Jul 2013 09:13:03 +0000 (UTC) Received: by mail-qe0-f49.google.com with SMTP id cz11so6181444qeb.8 for ; Mon, 15 Jul 2013 02:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=IKYVdNHNzRlTO96lg9Gi5kWxu/AhEtJvaU0oVshSzgg=; b=rsZcKLj3Gt3p+0CddOKWrgd478lMn0aTNOqAyQ40m9SJE8sf6V9n2PX8kh/OCTnyGS fvnHGUJf0eReajNHALADM7Zfhzrx3wbIMBQsCAj3J9jLdWS7BG52fLmY1iEh0MgGhvcK vwNKFgninB7qdyBYCRhYxPWDKLSW67CmHKxPg0VTh7OHLRxslmNo7MB+eFxQENsfVW4Z fEZvTdFevmAQs6xaD0H8UnC5Zn6NF7jiOXzXeyYVg/QnEEnYjfkMQACxxCHAyJVDdxcj 5JXyUkkLYJcGfRHcrdlYlKDJNnPBL1DwyRyi0ANpUTy/GxM/iT9Anw2xrzN63oF+/y2R czHA== MIME-Version: 1.0 X-Received: by 10.224.188.74 with SMTP id cz10mr52232016qab.31.1373879583557; Mon, 15 Jul 2013 02:13:03 -0700 (PDT) Sender: olivier2553@gmail.com Received: by 10.49.0.235 with HTTP; Mon, 15 Jul 2013 02:13:03 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 16:13:03 +0700 X-Google-Sender-Auth: ip4N0cYP1ll-RqKNszqQHejy8H4 Message-ID: Subject: Re: find netmask for offered lease in dhclient code From: Olivier Nicole To: s m Content-Type: text/plain; charset=ISO-8859-1 Cc: 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:13:04 -0000 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"