Send kea-dev mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/kea-dev
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of kea-dev digest..."


Today's Topics:

   1. Re:  fixing the hostname issue (alexis)
   2.  pushing change (alexis)


----------------------------------------------------------------------

Message: 1
Date: Sun, 16 Nov 2014 18:27:54 -0300
From: alexis <[email protected]>
To: [email protected]
Subject: Re: [kea-dev] fixing the hostname issue
Message-ID:
        <CADN=mdqt+fhu-qw4stmkxtdon0lhywwbf8kdy01fcfd0tnt...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

please completely disregard this last email.

i was coding on top of stable and waiting to see the changes on devel
binaries. Im starting from ground right now.

sorry

On Sat, Nov 15, 2014 at 9:11 PM, alexis <[email protected]> wrote:

> Guys, im working on this and i need your help. Please could you help me
> pointing me where im wrong on this
>
>
> on pkt4_receive in my hooks im setting a new hostname. So when dhcp4_srv
> call this hook receives this
>
> then on dhcp4_srv.cc in
>
> Dhcpv4Srv::processDiscover(Pkt4Ptr& discover) {
>
>
> there's a
>
>
>  processClientName(discover, offer);
>
>
> so
>
> Dhcpv4Srv::processClientName(const Pkt4Ptr& query, Pkt4Ptr& answer) {
>
> i've added
>
>  try {
>         LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL_DATA,
> DHCP4_CLIENT_NAME_PROC_FAIL).arg("++++++++++++++++++++++");
>         Option4ClientFqdnPtr fqdn =
> boost::dynamic_pointer_cast<Option4ClientFqdn>
>             (query->getOption(DHO_FQDN));
>         if (fqdn) {
>         LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL_DATA,
> DHCP4_CLIENT_NAME_PROC_FAIL).arg("detecta opcion de fqdn");
>             processClientFqdnOption(fqdn, answer);
>
>         } else {
>             OptionStringPtr hostname =
> boost::dynamic_pointer_cast<OptionString>
>                 (query->getOption(DHO_HOST_NAME));
>             if (hostname) {
>         LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL_DATA,
> DHCP4_CLIENT_NAME_PROC_FAIL).arg("detecta opcion de hostname");
>                 processHostnameOption(hostname, answer);
>             }
>         }
>     }
>
> nothing is logged at all (im able to see dhcp4 logger)
>
> Following this as i set option 12, this should match
>
>            if (hostname) {
>         LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL_DATA,
> DHCP4_CLIENT_NAME_PROC_FAIL).arg("detecta opcion de hostname");
>                 processHostnameOption(hostname, answer);
>             }
>
>
>
> Dhcpv4Srv::processHostnameOption(const OptionStringPtr& opt_hostname,
>                                  Pkt4Ptr& answer) {
>
>
>
> contains conditions based on label_count and calls
>
> d2_mgr.qualifyName(hostname)
>
> where
>
> std::string
>         D2ClientMgr::qualifyName(const std::string& partial_name) const {
>
>
> contains this
>
> // Tack on a trailing dot in case suffix doesn't have one.
>             //    std::string str = gen_name.str();
>             //    size_t len = str.length();
>             //    if ((len > 0) && (str[len - 1] != '.')) {
>             //        gen_name << ".";
>             //    }
>
> where i guess is the problem when the hostname is not a fqdn and gets the
> . appended.
>
>
> am i ok? after modify this im doing
>
> make clean
> make
> make install
>
> on dir src/
>
>
> by now, i have no luck, cant even see this line
>
>         LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL_DATA,
> DHCP4_CLIENT_NAME_PROC_FAIL).arg("++++++++++++++++++++++");
>
>
> thanks in advance
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/kea-dev/attachments/20141116/cdc56c85/attachment-0001.html>

------------------------------

Message: 2
Date: Sun, 16 Nov 2014 19:31:18 -0300
From: alexis <[email protected]>
To: [email protected]
Subject: [kea-dev] pushing change
Message-ID:
        <CADN=mdsy3_8u0w5xzwnjq4gaej3oxh8q93yemjk58eo561x...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Guys, fix for trac 3636 is done im trying to push but i get

administrator@mta-prov:~/temp/kea$ git push
fatal: remote error: access denied or repository not exported: /kea

im trying to push as anonymous since i have no user

regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/kea-dev/attachments/20141116/55acb013/attachment-0001.html>

------------------------------

_______________________________________________
kea-dev mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-dev

End of kea-dev Digest, Vol 8, Issue 6
*************************************

Reply via email to