From: zhuyj <zyjzyj2000@gmail.com>
To: Vlad Yasevich <vyasevich@gmail.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
zhuyj <zyjzyj2000@gmail.com>
Subject: Re: question: Any way to trigger DHCP renewal from kernel code?
Date: Fri, 23 May 2014 17:20:47 +0800 [thread overview]
Message-ID: <537F12EF.4010302@gmail.com> (raw)
In-Reply-To: <537E9B27.8050800@gmail.com>
On 05/23/2014 08:49 AM, Vlad Yasevich wrote:
> On 05/22/2014 06:24 PM, Haiyang Zhang wrote:
>> Hi,
>>
>> Our synthetic network driver is notified when the Hyper-V host
>> resume from sleep/hibernation. We need to renew DHCP in this case.
>> I'm looking for a way to trigger DHCP renewal from kernel mode
>> code.
>>
>> Can anyone help me?
> One idea:
>
> Generate a udev event and a udev rule that triggers a renew when
> event is received.
>
> -vlad
Another idea:
crontab, Periodically trigger a renew.
Zhu Yanjun
>
>> Thanks,
>> - Haiyang
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe netdev" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2014-05-23 9:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 22:24 question: Any way to trigger DHCP renewal from kernel code? Haiyang Zhang
2014-05-23 0:49 ` Vlad Yasevich
2014-05-23 9:20 ` zhuyj [this message]
2014-05-23 15:06 ` Dan Williams
2014-05-23 15:19 ` Haiyang Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537F12EF.4010302@gmail.com \
--to=zyjzyj2000@gmail.com \
--cc=haiyangz@microsoft.com \
--cc=netdev@vger.kernel.org \
--cc=vyasevich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.