Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Networking before TCP/IP

Networking before TCP/IP
Thread Tools
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Mar 4, 2002, 04:59 PM
 
I am starting work on an idea, but my idea requires that I be able to do some simple networking on an interface (an ethernet port) without TCP/IP. I know that this is possible using MAC addresses, but need some pointers to that sort of information. If anyone has experience in this sort of thing I would love to hear from you on it.

What I need is the following:
  • Send and receive simple broadcast packets
  • Send and receive simple point-to-point packets

These can easily be UDP sort of packets (as in no delivery notifications), and can be very small. I do need to be able to send them from both interfaces that have TCP fully setup, and to ones that have no assigned IP address. I probably need to do this in C, possibly C++ (for later portability), but if I actually make it out of the concept phase and into code, I will be happy to start out MacOS X proprietary, so the pointers can be specific to MacOS X.
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Mar 5, 2002, 08:09 PM
 
You'd likely have to write your own network driver. I don't think any of the standard protocol stacks give you direct access to layer 2 functions.

See the "Writing Network Kernel Extensions" (or something to that effect) on developer.apple.com

Wade
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2