10-28-2003
If you're a mac programmer...
This is the site for you...
www.kochan-wood.com They are offering expert advice on topics in C programming, Unix Shell Programming, Objective C programming. They are authors of 5 hot selling books.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Simple Q here.
What GOOD telnet programs are out there for MAC.
I use this one that can't utilize the VI editor.
I don't know why.
Thankx for your help in advance.
/D (8 Replies)
Discussion started by: DIEZEL
8 Replies
2. UNIX Desktop Questions & Answers
Are the Terminal commands used in Mac OS 10.1.3 the same as those found on a real Unix system? if they are, what book would you recommend as a terminal refferance guide?
I already have 'The Missing Manual' by O'Reilly, but there ain't much in terms of managing the system via the terminal :(
... (9 Replies)
Discussion started by: LAdesign
9 Replies
3. OS X (Apple)
I'm quite interested in resusing an old bondi iMac i have as a unix box, and i was wondering what distro people would recomend.
I had thought of using BSD/FreeBSD cos thats what osx is based on. I'm doing this as a teaching excercise (for myself) so i'm looking for something achievable rather than... (9 Replies)
Discussion started by: ora
9 Replies
4. UNIX for Dummies Questions & Answers
hi,
i'm running mac 10.5, and i have a file eg. program after i compiled on the terminal using this command;
cc -o program program.c
however, i'm unable to see the process hierachy for that program.
i tried using "ps -C program -l --forest" and unable to see the tree structure.
need... (1 Reply)
Discussion started by: grotesque
1 Replies
5. OS X (Apple)
I just joined the Forum a few days ago! :) I have a mac book and decided to look under the hood. Low and behold, UNIX! To be honest, I know nothing about unix, but I want to learn. I have no real goals as of yet, other than to learn what I can. I do own a few domains hosted by a good company. ... (4 Replies)
Discussion started by: fellojello
4 Replies
6. OS X (Apple)
Hi. I'm using a Mac computer to perform all my Unix operations. At the moment, I'm employing osascript to interact between windows and don't know whether the same is possible to do it on a BASH shell without calling osascript. If so, I would like to see an example of how to do it.
Many thanks in... (0 Replies)
Discussion started by: hresquivelo
0 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I formated my hard disk and i recovered some videos, but the thing is the videos were in .MOV format and now there are just UNIX executable files, i tried to write at the end of the name the extension but quicktime didn't recognize me the videos, somebody can help me with this problem... (1 Reply)
Discussion started by: arielorc
1 Replies
LEARN ABOUT DEBIAN
net::arp
ARP(3pm) User Contributed Perl Documentation ARP(3pm)
NAME
ARP - Perl extension for creating ARP packets
SYNOPSIS
use Net::ARP;
Net::ARP::send_packet('lo', # Device
'127.0.0.1', # Source IP
'127.0.0.1', # Destination IP
'aa:bb:cc:aa:bb:cc', # Source MAC
'aa:bb:cc:aa:bb:cc', # Destinaton MAC
'reply'); # ARP operation
$mac = Net::ARP::get_mac("eth0");
print "$mac
";
$mac = Net::ARP::arp_lookup($dev,"192.168.1.1");
print "192.168.1.1 has got mac $mac
";
IMPORTANT
Version 1.0 will break with the API of PRE-1.0 versions, because the return value of arp_lookup() and get_mac() will no longer be passed as
parameter, but returned! I hope this decision is ok as long as we get a cleaner and more perlish API.
DESCRIPTION
This module can be used to create and send ARP packets and to get the mac address of an ethernet interface or ip address.
send_packet()
Net::ARP::send_packet('lo', # Device
'127.0.0.1', # Source IP
'127.0.0.1', # Destination IP
'aa:bb:cc:aa:bb:cc', # Source MAC
'aa:bb:cc:aa:bb:cc', # Destinaton MAC
'reply'); # ARP operation
I think this is self documentating.
ARP operation can be one of the following values:
request, reply, revrequest, revreply, invrequest, invreply.
The default ARP operation is reply.
get_mac()
$mac = Net::ARP::get_mac("eth0");
This gets the MAC address of the eth0 interface and stores
it in the variable $mac. The return value is "unknown" if
the mac cannot be looked up.
arp_lookup()
$mac = Net::ARP::arp_lookup($dev,"192.168.1.1");
This looks up the MAC address for the ip address 192.168.1.1
and stores it in the variable $mac. The return value is
"unknown" if the mac cannot be looked up.
SEE ALSO
man -a arp
AUTHOR
Bastian Ballmann [ Balle@chaostal.de ]
http://www.datenterrorist.de
COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Bastian Ballmann
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2009-04-24 ARP(3pm)