Porting DHCP from Linux to VxWorks


 
Thread Tools Search this Thread
Operating Systems Linux Porting DHCP from Linux to VxWorks
# 1  
Old 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
# 2  
Old 05-01-2008
No crossposting... Thread closed!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

DHCP Server on Vxworks multi interface question

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

2. Shell Programming and Scripting

Porting from Solaris to Linux

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

3. Linux

Help with Porting USB Host Stack to VXWORKS 653 OS+HPCNET8641D

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

4. Filesystems, Disks and Memory

Porting OSE to Linux

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

5. Programming

Nucleus to Linux porting

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

6. IP Networking

Porting DHCP from Linux to VxWorks

DHCP Porting (2 Replies)
Discussion started by: Sunny Shivam
2 Replies

7. Linux

when porting from HP-UX to 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

8. Programming

Porting From Linux To Hpux

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

9. UNIX for Dummies Questions & Answers

HP-UX to linux porting

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

10. Programming

Porting Win32 application into Linux

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
Login or Register to Ask a Question