Commit-ID: 354c0556eae978961ef8d5fe6874f3e44631dced Gitweb: http://git.kernel.org/tip/354c0556eae978961ef8d5fe6874f3e44631dced Author: Asias He <asias.hejun@xxxxxxxxx> AuthorDate: Sun, 17 Jul 2011 16:56:59 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Mon, 18 Jul 2011 13:17:16 +0300 kvm tools: Handle DHCP package in gernal UDP processing path DHCP packages are handled by the hypervisor, they are not sent to remote servers. In contrast, all other non-DHCP UDP packages are sent to remote servers. Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/net/uip/udp.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tools/kvm/net/uip/udp.c b/tools/kvm/net/uip/udp.c index fcd5018..39c2b57 100644 --- a/tools/kvm/net/uip/udp.c +++ b/tools/kvm/net/uip/udp.c @@ -210,6 +210,11 @@ int uip_tx_do_ipv4_udp(struct uip_tx_arg *arg) ip = (struct uip_ip *)(arg->eth); info = arg->info; + if (uip_udp_is_dhcp(udp)) { + uip_tx_do_ipv4_udp_dhcp(arg); + return 0; + } + /* * Find socket we have allocated before, otherwise allocate one */ -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |