07-22-2010
As soon as you have to copy something over a network, you have to use a protocol, unless you want to code something up yourself. And even then you'll probably define some protocol yourself.
8 More Discussions You Might Find Interesting
1. Where do I download LINUX & UNIX?
where can i get a free copy of unix? any kind... (5 Replies)
Discussion started by: gregtampa
5 Replies
2. UNIX for Dummies Questions & Answers
hi, i am on linux 8. i wanted to copy a file from my a:\filename to my linux 8 /tmp directroy. how do i do this or any directions as in how to accompilsh. thanks (6 Replies)
Discussion started by: yls177
6 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I have simple question as i am beginner , I have to copy one file from cd(compact disc) to my linux box on some directory. With which command and how can i do that?
Thanks
sam71 (2 Replies)
Discussion started by: sam70
2 Replies
4. UNIX for Dummies Questions & Answers
Dear All,
I am working with windoes OS but remote a linux machine. I wonder the way to copy an paste some part of a huge file in linux machine.
the contain of file like as follow:
...
dump annealling all custom 10 anneal_*.dat id type x y z q
timestep 0.02
run 200000
Memory... (2 Replies)
Discussion started by: ariesto
2 Replies
5. Shell Programming and Scripting
Hi Experts,
I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive.
I mean to say..
cp filename //hostname/shareddrive.
I don't want to mount. Is there any way we can do it.
Regards
Naree
Double post. Replies here moved to... (0 Replies)
Discussion started by: naree
0 Replies
6. SuSE
Hi Experts,
I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive.
I mean to say..
cp filename //hostname/shareddrive.
I don't want to mount. Is there any way we can do it.
Regards
Naree (1 Reply)
Discussion started by: naree
1 Replies
7. IP Networking
I have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected with a 9 pins serial cable.
I need to copy some files from the Linux box to the DOS box.
I tried UUCP but it's too difficult and i didn't found a working client for DOS.
Can you help me? Thanks for any reply! (10 Replies)
Discussion started by: mghis
10 Replies
8. Shell Programming and Scripting
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies
LEARN ABOUT OPENSOLARIS
net_phygetnext
net_phygetnext(9F) Kernel Functions for Drivers net_phygetnext(9F)
NAME
net_phygetnext - search through the current list of network interfaces
SYNOPSIS
#include <sys/neti.h>
phy_if_t net_phygetnext(const net_data_t net, const phy_if_t ifp);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
net value returned from a successful call to net_protocol_lookup(9F).
ifp value returned from a successful call to this function or net_phylookup(9F).
DESCRIPTION
The net_phygetnext() function searches through all of the network interfaces that a network protocol "owns". To start searching through all
of the interfaces owned by a protocol, a value of 0 should be passed through as the value of ifp. When 0 is returned by this function, the
last of the interfaces owned by this protocol has been reached.
When called successfully, the value returned represents a network interface that exists, at the time of the call, within the scope of the
network interface. This value is only guaranteed to be unique for a name within the scope of the network protocol.
EXAMPLES
net_data_t net;
phy_if_t ifp;
char buffer[32];
net = net_protocol_lookup("inet");
if (net != NULL) {
for (ifp = net_phygetnext(net, 0); ifp != 0;
ifp = net_phygetnext(net, ifp)) {
/* Do something with ifp */
if (net_getifname(net, ifp, buffer,
sizeof(buffer) >= 0)
printf("Interface %s0, buffer);
}
}
RETURN VALUES
The net_phygetnext() function returns -1 if it is not supported by the network protocol or 0 if an attempt to go beyond the last network
interface is made. Otherwise, it returns a value representing a network interface.
CONTEXT
The net_phygetnext() function may be called from user, kernel, or interrupt context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
net_phylookup(9F), net_protocol_lookup(9F), attributes(5)
SunOS 5.11 1 May 2008 net_phygetnext(9F)