The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to restore original package after uninstalling the upgraded package using rpm amitpansuria Linux 0 05-27-2008 01:08 AM
log send, sendrec, recv and notify system calls pedrosacosta UNIX for Dummies Questions & Answers 0 02-04-2008 01:45 PM
Use Send command of Expect package neha123 Shell Programming and Scripting 6 12-23-2007 10:39 AM
UDP socket - can both client and server recv and send rvan High Level Programming 1 05-08-2007 11:36 PM
recv() problems using AIX 4.33 hazard0007 High Level Programming 1 04-16-2004 10:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2005
Registered User
 

Join Date: Sep 2005
Posts: 1
Stumble this Post!
Question send and recv ARP package in AS3.0

In attachment, is the code to test IP by ARP proxy. I always use it to test a IP already existing in my cluster.

Usage:
arp_func eth0 192.168.1.1

Enviroment:
IA64, RedHat AS3.0, 2.4.21-15.EL, gcc-3.2.3-34,
"gcc -o arp_func arp_func.c"

When the code below added before test_ip() in main(), program could receive ARP reply correctly:
fprintf(stdout, "anything");
or fprintf(stderr, "anything");
or getchar();
or fopen("anyfile", "anymode");

But, if the code above removed, recvfrom() fails and error is "Invalid argument".

I don't understand why the operations on other fds could affect the socket.

any dude can explain it? thanks in advance:-)
Attached Files
File Type: txt arp_func.txt (4.8 KB, 13 views)
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0