C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 01-20-2004, 02:17 AM   #1
& the hat of GPL slaying
 
Thantos's Avatar
 
Join Date: Sep 2001
Posts: 5,732
MAC addresses

Ok bare with me, I'm having an idea that came to me while I was trying to fall asleep.

My router displays the mac addresses for all the computers that it provides DHCP services to. I would like to know how it does that.

Reason: A lot of messageboards I go to are limited to banning people by username and then IP address. Since IP address banning will likely result in someone else getting affected also its a not so nice approach. But if we could ban the MAC address then all would be good (until they got a new card).

This of course requires that each device has a completly unquie mac address which IIRC is the case.

Quick search of this forum and google didn't come up with anything. I'll try again once I wake up.

But if any of you know a way please let me know. Thanks
Thantos is offline   Reply With Quote
Old 01-20-2004, 02:37 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,703
As far as I know, the MAC addresses are only obtainable at both ends of the same piece of wire.
If you have 192.168.1.1 and 192.168.1.2 on the same LAN, then it's the MAC addresses of those two machines which tells them apart.

Once you go through any kind of hub or switch to a different network segment, the routing of messages is done by IP.

> A lot of messageboards I go to are limited to banning people by username and then IP address
So use authenticated email addresses.
You can only post if you give a valid address and return the cookie back to the website to complete your registration.
Then you exclude all the free hotmail / yahoo's of the world as being valid.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 01-20-2004, 02:26 PM   #3
Yes, my avatar is stolen
 
anonytmouse's Avatar
 
Join Date: Dec 2002
Posts: 2,544
Consider the internet as a series of ethernet networks for a second.

I want to send a packet to 66.139.79.229 [cprogramming.com]

My computer sees the address is not on its subnet.

So it sends it to the gateway.
-->The from mac address is my computer.
-->The to mac address is the gateway.

The gateway(typically a home router or a router at the ISP) sees that the packet is not on its subnet so routes it (sends it to a node closer to 66.139.79.229).
-->The from mac address is the gateway.
-->The to mac address is the destination node mac address.

and so on until we reach cprogramming.com.

Of course the internet is not all ethernet networks. It can run on many underlying communication infrastructures. The internet routers must understand IP addresses and therefore do not need a mac address equivalent.

Imagine if tracking of mac addresses by internet sites was possible. An web ad company can track wherever you go over a period of several years!

>>Then you exclude all the free hotmail / yahoo's of the world as being valid.<<

What if you don't have anything else?
anonytmouse is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Send Mac Address From Client to Server Lieyza197 C Programming 2 05-27-2009 09:58 AM
Mac backup software brewbuck Tech Board 2 08-12-2008 08:21 PM
Newbie Question - fflush(stdin) & fpurge(stdin) on Mac and PC tvsinesperanto C Programming 34 03-11-2006 12:13 PM
Mac OS X Users/C programmers? petermichaux C Programming 15 12-01-2003 10:35 PM
Numeric addresses for computers great C Programming 2 04-23-2002 09:32 AM


All times are GMT -6. The time now is 09:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22