find netmask for offered lease in dhclient code
hello all, 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. 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-unsubscr...@freebsd.org
Re: find netmask for offered lease in dhclient code
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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find netmask for offered lease in dhclient code
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.nic...@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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@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-unsubscr...@freebsd.org
Re: find netmask for offered lease in dhclient code
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.nic...@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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find netmask for offered lease in dhclient code
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 olivier2...@gmail.comwrote: 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.nic...@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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org