From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4372 invoked by alias); 20 Nov 2003 17:43:44 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 4364 invoked from network); 20 Nov 2003 17:43:43 -0000 Received: from unknown (HELO msgbas2x.cos.agilent.com) (192.25.240.37) by sources.redhat.com with SMTP; 20 Nov 2003 17:43:43 -0000 Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 7C71A625E; Thu, 20 Nov 2003 10:43:42 -0700 (MST) Received: from axcsbh3.cos.agilent.com (axcsbh3.cos.agilent.com [130.29.152.190]) by relcos1.cos.agilent.com (Postfix) with SMTP id 3B902B7; Thu, 20 Nov 2003 10:43:42 -0700 (MST) Received: from 130.29.152.190 by axcsbh3.cos.agilent.com (InterScan E-Mail VirusWall NT); Thu, 20 Nov 2003 10:43:41 -0700 Received: by axcsbh3.cos.agilent.com with Internet Mail Service (5.5.2653.19) id ; Thu, 20 Nov 2003 10:43:41 -0700 Message-ID: <1BEBA5E8600DD4119A50009027AF54A010FAE47A@axcs04.cos.agilent.com> From: kevin_lemay@agilent.com To: sebastien.couret@elios-informatique.fr Cc: ecos-discuss@sources.redhat.com Date: Thu, 20 Nov 2003 17:43:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: [ECOS] Sending Raw Ethernet packets (ether_output, ether_out put_frame, __enet_send ?) X-SW-Source: 2003-11/txt/msg00279.txt.bz2 Why not use the current DHCP implementation that is available via anonymous CVS? It appears to be using the standard socket calls. Kevin -----Original Message----- From: ecos-discuss-owner@sources.redhat.com [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Sebastien Couret Sent: Wednesday, November 19, 2003 12:14 PM To: ecos-discuss@sources.redhat.com Subject: [ECOS] Sending Raw Ethernet packets (ether_output, ether_output_frame, __enet_send ?) Hello, I.m on my way to write a DHCP server for eCOS, but right now i.m stuck while trying to send an ethernet packet directly to an host (my DHCP client) which has, at first, only ethernet connectivity and is only reachable through network via its MAC address(Let.s call it 0xde:0xad:0x00:0xbe:0xef:0x00) because IP adressing is not set. I have choosed to use the FreeBSD TCP/IP stack port for eCOS. And when trying to send such a packet with socket API and parameters PF_INET,SOCK_RAW, i.m not able to act on the ethernet header so , I cannot make ethernet destination adress point to 0xde:0xad:0x00:0xbe:0xef:0x00 and sendto() seems to only accept sockaddr_in targets. So i have seek a another raw API to write ethernet packets directly . (Of course this API should be generic and not driver dependent ) I have found ether_output, ether_output_frame, __enet_send but I cannot use them from my application because they are not compiled into the eCOS library , I have generated, and the linkage fails ... May be , I don.t take the right approach... It should be simple ... So to resume, my question is : Could someone tell me how (a code example would be perfect !) , I could act , from my eCOS application , onto the ethernet header of a packet I.m going to send ? (In my case, I just which to change the destination MAC address) Thanks a lot for your help. Have a nice day. -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss