AnsweredAssumed Answered

Information on RTCShost.c anything related to hostname configuration

Question asked by vallinath s on Nov 4, 2014
Latest reply on Nov 21, 2014 by Radek Sestak

Hi

 

   There is a file in RTCS library called RTCShosts.c which has

const HOST_ENTRY_STRUCT RTCS_Hosts_list[] =

{

/* IP Address   Host Name     Aliases          */

  { 0x7F000001, "localhost",    0       },

  { 0xC0A80001, "www.arc.com", {"www"}  },

  { 0xFFFFFFFF, "broadcast",    0       },

  { 0, 0, 0 },

};

is this the file similar to /etc/hosts which we have in Linux based system , so entry here will make us the hostname to IP conversion .

I checked the RTCS document nothing mentioned on this file and also on the structure HOST_ENTRY_STRUCT;

typedef struct host_entry_struct

{

   uint_32        ip_address;

   char_ptr       host_name;

   char_ptr       aliases[MAX_HOST_ALIASES+1];

} HOST_ENTRY_STRUCT;

Is this needed so we put a entry if we try to access from the http using the hostname or telent using the hostname it makes the necessary NAT .

 

Please put your limelight on the matter .

 

regards

vallinath

Outcomes