05-01-2008
Porting DHCP from Linux to VxWorks
Hello All,
I have a code of DHCP which is implemented on Linux. During porting this code from Linux to VxWorks, I come up with following errors:-
jects\freedom\ap\udhcp\socket.c
C:\projects\freedom\ap\udhcp\socket.c: In function `read_interface':
C:\projects\freedom\ap\udhcp\socket.c:79: `SIOCGIFINDEX' undeclared (first use in this fun
ction)
C:\projects\freedom\ap\udhcp\socket.c:79: (Each undeclared identifier is reported only onc
e
C:\projects\freedom\ap\udhcp\socket.c:79: for each function it appears in.)
C:\projects\freedom\ap\udhcp\socket.c:81: structure has no member named `ifr_ifindex'
C:\projects\freedom\ap\udhcp\socket.c:86: `SIOCGIFHWADDR' undeclared (first use in this fu
nction)
C:\projects\freedom\ap\udhcp\socket.c:87: union has no member named `ifru_hwaddr'
C:\projects\freedom\ap\udhcp\socket.c: In function `listen_socket':
C:\projects\freedom\ap\udhcp\socket.c:130: structure has no member named `ifr_ifrn'
C:\projects\freedom\ap\udhcp\socket.c:131: `SO_BINDTODEVICE' undeclared (first use in this
function)
make: *** [socket.o] Error 0x1
Done.
Can u people please suggest how to solve this as SO_BINDTODEVICE is not supported in Vxworks??
Waiting for your reply Frndz
Regards
Sunny
10 More Discussions You Might Find Interesting
1. Programming
I need port Win32 console application, which was developed with MS Visual Studio 6.0 (without MFC using) into Linux. What is the best way to port project? Are there any standard tools or decisions?
Thank you in advance,
Sergey (0 Replies)
Discussion started by: Sergeyy
0 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
i wanted to port some HP-UX code to linux. can anybody point to some documents or resources that would help me in doing the porting..
thanks in advance
Arun Prakash (0 Replies)
Discussion started by: arunprakash
0 Replies
3. Programming
Gents,
i'm a senior applications developer and need to port a Linux server application ( no additional / special libraries or unique header files ) to a HPUX enviroment.
Any chance to compile it on the Linux using flags to create an HPUX binary with gcc? (8 Replies)
Discussion started by: anak0nda
8 Replies
4. Linux
helo,
i m porting HP-UX socket application to Linux SSL-socket application.
I have use htonl() in HP-UX.
so when i use it in Linux, data transf is not done and application become soem time crashed.
now when i remove htonl() in linux, then i got data but it will not proper order or some data may... (1 Reply)
Discussion started by: amitpansuria
1 Replies
5. IP Networking
DHCP Porting (2 Replies)
Discussion started by: Sunny Shivam
2 Replies
6. Programming
I am new to Linux programming and my work involves changing an abstraction layer which made Nucleus calls, to Linux calls.
In Case of Events Nucleus has calls like
NU_Set_Events()
NU_Retrieve_Events()
Can I use the POSIX thread conditional variables for Linux?
Can I use the System V calls... (1 Reply)
Discussion started by: taklubaba
1 Replies
7. Filesystems, Disks and Memory
Hi,
I was trying to port efs_mount(OSE system call) to a LInux.The efs_mount function is used to mount a volume on the indicated device dev.Upon successful completion of this OSE sytem call a volume manager (VM) will be available through which files on this volume are accessed. The Syntax for... (4 Replies)
Discussion started by: roshantraj30
4 Replies
8. Linux
My name is Patrik Mark.S . i am using the Vxworks 653 OS with HPCNET Board with 8641D processor, Since there is no USB Host Stack in Vxworks 653 so i am tring to port UsbHost Stack onto vxworks 653. at the lowest layer(HCD Layer) of usb Host stack i need usbPciStub.c File related to my Board... (1 Reply)
Discussion started by: mark.S
1 Replies
9. Shell Programming and Scripting
Can any one please help the use of "cu command in Solaris" and as well as in Linux :confused: (1 Reply)
Discussion started by: sabee.prakash
1 Replies
10. IP Networking
Hi,
We currently operate a DHCP Server on Vxworks system.
It seems that the server is functioning only over the boot interface.
While trying to use it on a different interface the DHCP client messages seems to reach the interface but stay without response.
From a... (1 Reply)
Discussion started by: zohara
1 Replies
LEARN ABOUT NETBSD
elf_getarhdr
ELF_GETARHDR(3) BSD Library Functions Manual ELF_GETARHDR(3)
NAME
elf_getarhdr -- retrieve ar(1) header for an archive member
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h>
Elf_Arhdr *
elf_getarhdr(Elf *elf);
DESCRIPTION
The elf_getarhdr() function returns a pointer to an archive member header for a descriptor elf. This descriptor must have been returned by a
prior call to elf_begin(3), and must be a descriptor for a member inside an ar(1) archive.
Structure Elf_Arhdr includes the following members:
char * ar_name
A pointer to a null terminated string containing the translated name of the archive member.
char * ar_rawname
A pointer to a null terminated string containing the untranslated name for the archive member, including all ar(1) formatting charac-
ters and trailing white space.
time_t ar_date
The timestamp associated with the member.
uid_t ar_uid
The uid of the creator of the member.
gid_t ar_gid
The gid of the creator of the member.
mode_t ar_mode
The file mode of the member.
size_t ar_size
The size of the member in bytes.
RETURN VALUES
This function returns a valid pointer to an Elf_Arhdr structure if successful, or NULL if an error is encountered.
ERRORS
Function elf_getarhdr() may fail with the following errors:
[ELF_E_ARGUMENT] Argument elf was NULL.
[ELF_E_ARGUMENT] Argument elf was not a descriptor for a member of an ar(1) archive.
SEE ALSO
elf(3), elf_begin(3), elf_getarsym(3), elf_memory(3)
BSD
August 15, 2006 BSD