covert_tcp.c
unsigned int host_convert(char *hostname)
{
   static struct in_addr i;
   struct hostent *h;
   i.s_addr = inet_addr(hostname);
   if(i.s_addr == -1)
   {
      h = gethostbyname(hostname);
      if(h == NULL)
      {
         fprintf(stderr, "cannot resolve %s\n", hostname);
         exit(0);
      }
      bcopy(h->h_addr, (char *)&i.s_addr, h->h_length);
   }
   return i.s_addr;
}
/* end in_cksm()
/* Generic resolver from unknown source */
end in_cksm()
Generic resolver from unknown source
end in_cksm () Generic resolver from unknown source
unsigned int host_convert(char *hostname)
{
   static struct in_addr i;
   struct hostent *h;
   i.s_addr = inet_addr(hostname);
   if(i.s_addr == -1)
   {
      h = gethostbyname(hostname);
      if(h == NULL)
      {
         fprintf(stderr, "cannot resolve %s\n", hostname);
         exit(0);
      }
      bcopy(h->h_addr, (char *)&i.s_addr, h->h_length);
   }
   return i.s_addr;
}
unsigned int host_convert ( char * hostname ) { static struct in_addr i ; struct hostent * h ; i . s_addr = inet_addr ( hostname ) ; if ( i . s_addr == -1 ) { h = gethostbyname ( hostname ) ; if ( h == NULL ) { fprintf ( stderr , " \n " , hostname ) ; exit ( 0 ) ; } bcopy ( h -> h_addr , ( char * ) & i . s_addr , h -> h_length ) ; } return i . s_addr ; }
end in_cksm()
Generic resolver from unknown source
end in_cksm () Generic resolver from unknown source