• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SOL_NDRVPROTO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOL_NDRVPROTO


  • Subject: SOL_NDRVPROTO
  • From: Brad Parker <email@hidden>
  • Date: Mon, 27 Oct 2008 16:10:58 -0400
  • Organization: Heeltoe Consulting

(just *full* of questions today :-)

I'm having trouble using ioctl(SOL_NDRVPROTO, NDRV_SETDMXSPE) on
an AF_NDRV socket.

I'm trying to filter for protocols 0x800 & 0x806, ip and arp.

I get an error when I do the NDRV_SETDMXSPE ioctl.  If I make the
protocol numbers something odd, like 0x801 and 0x802, the ioctl works
fine, repeatedly.

I set the address family in struct ndrv_protocol_desc to a unique value
(in this case 0x11223344).

Any idea why?

Since non-standard ethernet packet types work, I'd think I'm doing the
basics correctly.  Seems odd that 0x800 & 0x806 won't work, unless the
demux checks and requires them to be unique.

I'd rather not use BPF, but I'm wondering if that is the only good
solution.

I'm running 10.5.5, btw, on an x86.

-brad

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: setuid for priv sockets?
  • Next by Date: Re: setuid for priv sockets?
  • Previous by thread: Re: setuid for priv sockets?
  • Next by thread: Dynamic library in C++
  • Index(es):
    • Date
    • Thread