- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- socket programming in hpux platform by using AF_RO...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:12 AM
11-03-2009 03:12 AM
socket programming in hpux platform by using AF_ROUTE family.
In hpux I am unable to use AF_ROUTE family yo create socket.
i.e.
cc -I. -I../mDNSCore -I../mDNSShared -DPID_FILE=mdnsPosixOracleGetPidFile\(\"/tmp/.oracle/mdnsd.pid
\"\) -DMDNS_UDS_SERVERPATH=mdnsPosixOracleGetUDSServerPath\(\"/tmp/.oracle/mdnsd\"\) -DNOT_HAVE_DAEM
ON -DNOT_HAVE_SA_LEN -DNOT_HAVE_IF_NAMETOINDEX -DLOG_PERROR=0 -D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROK
EN_RECVIF_NAME -DMDNS_DEBUGMSGS=0 -c -o objects/prod/mDNSPosix.c.o mDNSPosix.c
cc: "mDNSPosix.c", line 1283: error 1588: "AF_ROUTE" undefined.
cc: "mDNSPosix.c", line 1283: warning 563: Argument #1 is not the correct type.
cc: "mDNSPosix.c", line 1317: error 1594: The sizeof operator cannot be applied to types with unknow
n size.
cc: "mDNSPosix.c", line 1325: error 1530: Undefined struct or union.
cc: "mDNSPosix.c", line 1325: error 1588: "RTM_NEWADDR" undefined.
cc: "mDNSPosix.c", line 1325: error 1530: Undefined struct or union.
cc: "mDNSPosix.c", line 1325: error 1588: "RTM_DELADDR" undefined.
cc: "mDNSPosix.c", line 1326: error 1530: Undefined struct or union.
cc: "mDNSPosix.c", line 1326: error 1588: "RTM_IFINFO" undefined.
cc: "mDNSPosix.c", line 1325: error 1563: Expression in if must be scalar.
cc: "mDNSPosix.c", line 1328: error 1530: Undefined struct or union.
cc: "mDNSPosix.c", line 1328: error 1563: Expression in if must be scalar.
cc: "mDNSPosix.c", line 1329: error 1530: Undefined struct or union.
cc: "mDNSPosix.c", line 1331: error 1530: Undefined struct or union.
gmake: *** [objects/prod/mDNSPosix.c.o] Error 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:14 AM
11-03-2009 03:14 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
i.e.
*pFD = socket( AF_ROUTE, SOCK_RAW, 0);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:20 AM
11-03-2009 03:20 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:38 AM
11-03-2009 03:38 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
// Open a socket that will receive interface change notifications
1281 mDNSlocal mStatus OpenIfNotifySocket( int *pFD)
1282 {
1283 *pFD = socket( AF_ROUTE, SOCK_RAW, 0);
1284
1285 if ( *pFD < 0)
1286 return mStatus_UnknownErr;
1287
1288 // Configure read to be non-blocking because inbound msg size is not known in advanc
e
1289 (void) fcntl( *pFD, F_SETFL, O_NONBLOCK);
1290
1291 return mStatus_NoError;
1292 }
But in /usr/include/sys/socket.h header file we don't AF_ROUTE family in hpux machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:41 AM
11-03-2009 03:41 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
328 #include
329 #include
330 #include
331 #include
332 #include
333 #include
334 #include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:50 AM
11-03-2009 03:50 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
and according to man 7p route:
#include
#include
#include
#include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 03:51 AM
11-03-2009 03:51 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 04:04 AM
11-03-2009 04:04 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 04:30 AM
11-03-2009 04:30 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
you can only poll the routing table periodically
using ioctl over AF_INET/SOCK_RAW sockets
or popen("netstat -nr") or popen("ndd -get /dev/ip ip_ire_status")
or using the private api libnm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 01:01 AM
11-05-2009 01:01 AM
Re: socket programming in hpux platform by using AF_ROUTE family.
SIOCADDRT
SIOCDELRT
SIOCADDRTEX
SIOCDELRTEX
SIOCFLUSHRT
SIOCGRTENTRY
over a AF_INET/SOCK_RAW socket,