login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
May
»
8
Re: [PATCH] lguest: two net bugfixes
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: James Morris
Subject:
Re: [PATCH] lguest: two net bugfixes
Date: Tuesday, May 8, 2007 - 6:17 am
On Tue, 8 May 2007, Rusty Russell wrote:
quoted text
> 1) Bridging via host is broken: we need to set "promisc" bit in MAC > address published by the host so the guest sends us everything. > Thanks James Morris for the report (I don't use bridging). > > 2) Lguest network device uses 0 to mean "noone at this slot". It used to > use 0xFF, and one spot was missed. Minor: it just means we'll have a > useless extra transmit for broadcast packets. > > Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: James Morris <jmorris@namei.org>
quoted text
> --- > Documentation/lguest/lguest.c | 2 ++ > drivers/net/lguest_net.c | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff -r 999a9058a151 Documentation/lguest/lguest.c > --- a/Documentation/lguest/lguest.c Tue May 08 19:49:33 2007 +1000 > +++ b/Documentation/lguest/lguest.c Tue May 08 21:04:51 2007 +1000 > @@ -860,6 +860,10 @@ static void setup_tun_net(const char *ar > > /* We are peer 0, ie. first slot. */ > configure_device(ipfd, ifr.ifr_name, ip, dev->mem); > + > + /* Set "promisc" bit: we want every single packet. */ > + *((u8 *)dev->mem) |= 0x1; > + > close(ipfd); > > verbose("device %p: tun net %u.%u.%u.%u\n", > diff -r 999a9058a151 drivers/net/lguest_net.c > --- a/drivers/net/lguest_net.c Tue May 08 19:49:33 2007 +1000 > +++ b/drivers/net/lguest_net.c Tue May 08 21:03:47 2007 +1000 > @@ -249,7 +249,7 @@ static int lguestnet_close(struct net_de > struct lguestnet_info *info = dev->priv; > > /* Clear all trace: others might deliver packets, we'll ignore it. */ > - memset(&info->peer[info->me], 0xFF, sizeof(info->peer[info->me])); > + memset(&info->peer[info->me], 0, sizeof(info->peer[info->me])); > > /* Deregister sg lists. */ > hcall(LHCALL_BIND_DMA, peer_key(info, info->me), __pa(info->dma), 0); > > >
-- James Morris <jmorris@namei.org> -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] lguest: two net bugfixes
, Rusty Russell
, (Tue May 8, 4:22 am)
Re: [PATCH] lguest: two net bugfixes
, James Morris
, (Tue May 8, 6:17 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jan Engelhardt
Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Frederic Weisbecker
Re: [PATCH v4 5/5] perf:add a script shows a process of packet
git
:
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Eli Zaretskii
Re: Switching from CVS to GIT
Matthieu Moy
Re: git pull (Your local changes to ... would be overwritten by merge)
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
git-commits-head
:
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
openbsd-misc
:
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
ropers
Re: Real men don't attack straw men
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate