HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ping : Building IP Header using RAW Sockets
Operating System - HP-UX
1827295
Members
2970
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-11-2002 08:27 PM
04-11-2002 08:27 PM
Ping : Building IP Header using RAW Sockets
Hi,
Operating System : HP-UX 10.20
Compiler : gcc 3.0.4
Language : C
I am making a sample Ping Program (sending ICMP ECHO Packets) on HP-UX 10.20. I am trying to change the source address by using RAW Sockets with IP_HDRINCL socket option. (i.e. making own IP Header and sending ICMP ECHO Packets with source address changed.)
On HP-UX I get the error of IP_HDRINCL and hence sendto(): Invalid Argument.
My Question is :
1. Is IP_HDRINCL option supported on HP-UX 10.20 ? Because I am not able to find its defination on my machine. If not, then how to create & use RAW Sockets?
2. How to make own IP Header and Build ICMP ECHO Packets using RAW Sockets ??
Is there anything other ways /options on HP-UX for making own IP Header using RAW Sockets ?
I had gone through R.Stevens - Unix Network Programming. My code works fine on Linux. But it fails on HP-UX (10.20) due to above reason.
I can send the code if required.
Please Comment.
Thanks for ur help.
Regards
Rahul
Operating System : HP-UX 10.20
Compiler : gcc 3.0.4
Language : C
I am making a sample Ping Program (sending ICMP ECHO Packets) on HP-UX 10.20. I am trying to change the source address by using RAW Sockets with IP_HDRINCL socket option. (i.e. making own IP Header and sending ICMP ECHO Packets with source address changed.)
On HP-UX I get the error of IP_HDRINCL and hence sendto(): Invalid Argument.
My Question is :
1. Is IP_HDRINCL option supported on HP-UX 10.20 ? Because I am not able to find its defination on my machine. If not, then how to create & use RAW Sockets?
2. How to make own IP Header and Build ICMP ECHO Packets using RAW Sockets ??
Is there anything other ways /options on HP-UX for making own IP Header using RAW Sockets ?
I had gone through R.Stevens - Unix Network Programming. My code works fine on Linux. But it fails on HP-UX (10.20) due to above reason.
I can send the code if required.
Please Comment.
Thanks for ur help.
Regards
Rahul
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:38 PM
04-11-2002 08:38 PM
Re: Ping : Building IP Header using RAW Sockets
Please send the code. I think IP_HDRINCL is not supported in 10.2 but I think I may have a work around for you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP