• 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
Packet injection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Packet injection


  • Subject: Packet injection
  • From: Luis Mineiro <email@hidden>
  • Date: Thu, 16 Dec 2004 10:03:30 +0000
  • Organization: ZBit Software, Lda.

Hi,

Maybe this one could be sent to unix-port but since it has to do with
networking, I'll give it a try here.

I am developing a cross-platform engine for online gaming. This engine tunnels
console traffic that works on consoles connected  in LAN. Currently it works
for Playstation, Xbox, Gamecube, PSP and we have ongoing investigation to
support DS too.

The supported platforms until now are Win32, Linux (x86, ppx & mips (runs
embedded inside routers)) and I can build successfuly under OSX, no problem
here.

The first issue I found, since I am using libpcap, was that under OSX pcap
links pcap-bpf.c and was opening (open(2)) the network device in READONLY and
I had do hack that line to open it with O_RDWR mode so that I could later
inject packets using write(2), using pcap_fileno() file descriptor.

After this points, I got it to sucessfuly inject packet tunneled from remote
hosts, but it seems that only BROADCAST frames (all this is done at the
datalink level), with ff:ff:ff:ff:ff:ff as dst ether addr are successfuly
injected. I know about the mac spoofing issue under OSX, but a kernel
recompile is not a solution.

I also know that this is possible under OSX (packet injection with foreign mac
addresses) but maybe not with libpcap. I've been reading about NKE and
dlil_if_inject_input() and friends and I probably could sort this problem
with that but... (theres always a but)... I'm not an experienced OSX
programmer and I really wanted to make sure this would be the right track.

SO, if someone could give me a small hand, point in the right direction,
assure this is the way... anything, I would me most thankful.

Thank you all.

Cheers.

--
Luis Mineiro (email@hidden)
ZBit Software, Lda. (http://www.zbit.pt)

Attachment: pgpjvZjUIywGD.pgp
Description: PGP signature

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

This email sent to email@hidden

References: 
 >Network routes for interfaces (From: "Jamie Wood" <email@hidden>)

  • Prev by Date: Network routes for interfaces
  • Next by Date: how to use: struct sockaddr
  • Previous by thread: Network routes for interfaces
  • Next by thread: how to use: struct sockaddr
  • Index(es):
    • Date
    • Thread