The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 04:08 AM
log send, sendrec, recv and notify system calls pedrosacosta UNIX for Dummies Questions & Answers 0 02-04-2008 05:45 PM
Use Send command of Expect package neha123 Shell Programming and Scripting 6 12-23-2007 02:39 PM
UDP socket - can both client and server recv and send rvan High Level Programming 1 05-09-2007 02:36 AM
recv() problems using AIX 4.33 hazard0007 High Level Programming 1 04-16-2004 01:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-21-2005
lameryang lameryang is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 1
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, 84 views)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting 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




All times are GMT -4. The time now is 02:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0