<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ping : Building IP Header using RAW Sockets in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-building-ip-header-using-raw-sockets/m-p/2702097#M587018</link>
    <description>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.</description>
    <pubDate>Fri, 12 Apr 2002 03:38:03 GMT</pubDate>
    <dc:creator>Jeremy_7</dc:creator>
    <dc:date>2002-04-12T03:38:03Z</dc:date>
    <item>
      <title>Ping : Building IP Header using RAW Sockets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-building-ip-header-using-raw-sockets/m-p/2702096#M587017</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Operating System : HP-UX 10.20&lt;BR /&gt;Compiler : gcc 3.0.4&lt;BR /&gt;Language : C&lt;BR /&gt;&lt;BR /&gt;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.)&lt;BR /&gt;&lt;BR /&gt;On HP-UX I get the error of IP_HDRINCL and hence sendto(): Invalid Argument.&lt;BR /&gt;&lt;BR /&gt;My Question is :&lt;BR /&gt;&lt;BR /&gt;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 &amp;amp; use RAW Sockets?&lt;BR /&gt;&lt;BR /&gt;2. How to make own IP Header and Build ICMP ECHO Packets using RAW Sockets ??&lt;BR /&gt;&lt;BR /&gt;   Is there anything other ways /options on HP-UX for making own IP Header using RAW Sockets ?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I can send the code if required.&lt;BR /&gt;Please Comment.&lt;BR /&gt;&lt;BR /&gt;Thanks for ur help.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Rahul&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Apr 2002 03:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-building-ip-header-using-raw-sockets/m-p/2702096#M587017</guid>
      <dc:creator>rahul_5</dc:creator>
      <dc:date>2002-04-12T03:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ping : Building IP Header using RAW Sockets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-building-ip-header-using-raw-sockets/m-p/2702097#M587018</link>
      <description>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.</description>
      <pubDate>Fri, 12 Apr 2002 03:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-building-ip-header-using-raw-sockets/m-p/2702097#M587018</guid>
      <dc:creator>Jeremy_7</dc:creator>
      <dc:date>2002-04-12T03:38:03Z</dc:date>
    </item>
  </channel>
</rss>

