Date: Mon, 15 Jul 2013 13:57:55 +0430 From: saeedeh motlagh <saeedeh.motlagh@gmail.com> To: Olivier Nicole <olivier.nicole@cs.ait.ac.th> Cc: s m <sam.gh1986@gmail.com>, freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: find netmask for offered lease in dhclient code Message-ID: <CAN%2BS=WA9je6gPEswFo%2B47mkHX-b68pUxjFL8zho-wWpjaR3gOA@mail.gmail.com> In-Reply-To: <CA%2Bg%2BBviw_OVcb8S=RPSzhy_JjCgXHMH7kcRNz8OvtNLEBBqomg@mail.gmail.com> References: <CAA_1SgFfZGn06kL_m8fvOA67TszjU5A8F55X_xuiSL8-xtmnng@mail.gmail.com> <CA%2Bg%2BBviw_OVcb8S=RPSzhy_JjCgXHMH7kcRNz8OvtNLEBBqomg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN%2BS=WA9je6gPEswFo%2B47mkHX-b68pUxjFL8zho-wWpjaR3gOA>