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 CENTOS
clusvcadm
clusvcadm(8) Red Hat Cluster Suite clusvcadm(8)
NAME
clusvcadm - Cluster User Service Administration Utility
SYNOPSIS
clusvcadm [-d <service> ] [-e <service> ] [-l] [-u] [-S] [-m <member> ] [-r <service> ] [-R <service> ] [-M <service> ] [-Z <service> ] [-U
<service> ] [-s <service> ] [-v]
DESCRIPTION
The clusvcadm command allows an administrator to enable, disable, relocate, and restart user services in a cluster. In order to perform
cluster service operations, the cluster daemons must be running (and have quorum) on the member system on which the command is invoked.
OPTIONS
-d <service>
Stops and disables the user service named service
-e <service>
Enables and starts the user service named service
-l Lock services in preparation for cluster shutdown. This should only be used if the administrator intends to perform a global, clus-
ter wide shutdown. This prevents services from starting (but not stopping, like -Z does). Once the cluster quorum is dissolved,
this state is reset. If a new instance of rgmanager boots while others are locked, the behavior is undefined.
-u Unlock resource group managers. This allows services to start again.
-S Display whether the resource group managers are locked or not. This can be used to verify the correct operation of the -l and -u
options, but is only useful for debugging.
-m <member>
When used in conjunction with either the -e or -r options, this specifies the preferred target member on which to start the service.
-r <service>
Relocates the user service named service to another cluster member.
-R <service>
Restarts the user service named service on the cluster member on which it is currently running.
-M <service>
Use a special "migration" operation to move the user service named service to another cluster member. Currently, this is only use-
ful for virtual machines. Use of migration usually requires special configuration of the local virtual machine manager in order to
work correctly.
-Z <service>
Freezes the service named service on the cluster member on which it is currently running. This will prevent status checks of the
service as well as failover in the event the node fails or rgmanager is stopped.
-U <service>
Unfreezes the user service named service on the cluster member on which it is currently running. This will re-enable status checks.
-s <service>
Stops the service named service until a member transition or until it is enabled again.
-v Display version information and exit.
NOTES
Executing -U (unfreeze) on a service which was frozen in the started state while the service owner is offline results in an undefined (and
possibly dangerous) condition. Manually ensure all resources are clear before doing this.
SEE ALSO
clustat(8)
Jan 2005 clusvcadm(8)