qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jung-uk Kim <jkim@FreeBSD.org>
To: Sebastian Herbszt <herbszt@gmx.de>
Cc: Juergen Lock <nox@jelal.kn-bremen.de>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] networking using libpcap
Date: Fri, 18 Jul 2008 19:07:26 -0400	[thread overview]
Message-ID: <200807181907.28909.jkim@FreeBSD.org> (raw)
In-Reply-To: <200807181639.49136.jkim@FreeBSD.org>

On Friday 18 July 2008 04:39 pm, Jung-uk Kim wrote:
> On Friday 18 July 2008 12:12 pm, Sebastian Herbszt wrote:
> > Using pcap_setfilter helps and colinux (conet-bridged-daemon)
> > does use one too. Currently your filter is
> > "ether dst 52:54:00:12:34:56 or ((broadcast or multicast) and not
> > ether src 52:54:00:12:34:56)". The filter used by colinux is
> > "(ether dst 00:ff:81:24:00:00) or (ether broadcast or multicast)
> > or (ip broadcast or multicast)".
> >
> > The "and not ether src 52:54:00:12:34:56" part in your filter
> > prevents the VM from seeing own packets. It doesn't reply to own
> > "ping broadcast" where it does in colinux and VMware Server.
>
> I knew that I might have missed some edge cases. ;-P Corrected and
> enabled by default.

I simplified the filter as:

"ether dst <MAC_ADDR> or multicast"

because we are only interested in Ethernet packets and broadcast 
address is a special multicast address.  Any upper layer protocols 
must be encapsulated in one of these forms.  For example:

http://www-uxsup.csx.cam.ac.uk/courses/ipv6_basics/x84.html

Jung-uk Kim

  reply	other threads:[~2008-07-18 23:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17 22:12 [Qemu-devel] Re: [PATCH] networking using libpcap Jung-uk Kim
2008-07-18 16:12 ` Sebastian Herbszt
2008-07-18 20:39   ` Jung-uk Kim
2008-07-18 23:07     ` Jung-uk Kim [this message]
2008-07-21 15:35     ` Sebastian Herbszt
2008-07-25 20:51     ` Anthony Liguori
2008-07-26 17:30       ` Sebastian Herbszt
2008-07-27  0:28         ` Anthony Liguori
2008-07-27 12:55       ` Paul Brook
2008-07-23  1:55 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2008-07-02 15:02 [Qemu-devel] " Ulrich Hecht
2008-07-02 23:39 ` [Qemu-devel] " Sebastian Herbszt

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=200807181907.28909.jkim@FreeBSD.org \
    --to=jkim@freebsd.org \
    --cc=herbszt@gmx.de \
    --cc=nox@jelal.kn-bremen.de \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).