Definition at line 812 of file dis.c.
References ALL, COMMAND, Debug_on, serv::def, dim_print_date_time(), DIS_DNS_HEADER, dis_dns_ent::dis_dns_packet, dis_hash_service_get_next(), dis_hash_service_registered(), dna_write(), dis_dns_ent::dns_dis_conn_id, serv::dnsp, DIS_DNS_PACKET::format, get_node_addr(), get_node_name(), serv::id, MAX_REGISTRATION_UNIT, MAX_SERVICE_UNIT, MAX_TASK_NAME, MORE, DIS_DNS_PACKET::n_services, serv::name, DIS_DNS_PACKET::node_addr, DIS_DNS_PACKET::node_name, NONE, DIS_DNS_PACKET::pid, DIS_DNS_PACKET::port, Port_number, Protocol, DIS_DNS_PACKET::protocol, serv::registered, release_conn(), send_dns_update_packet(), SERVICE_REG::service_def, SERVICE_REG::service_id, SERVICE_REG::service_name, DIS_DNS_PACKET::services, DIS_DNS_PACKET::size, SRC_DIS, DIS_DNS_PACKET::src_type, dis_dns_ent::task_name, DIS_DNS_PACKET::task_name, and serv::type.
Referenced by dis_start_serving_dns(), do_register_services(), and recv_dns_dis_rout().
815 register int n_services, tot_n_services;
818 int hash_index, new_entries;
835 dis_dns_p->
pid = htovl(getpid());
838 dis_dns_p->
format = htovl(MY_FORMAT);
842 printf(
"Registering as %d %s@%s\n",
861 printf(
"Sending NONE to dns %d as %s@%s, %d services\n",
879 if(servp->
dnsp == dnsp)
898 if(servp->
dnsp != dnsp)
904 printf(
"Registering %s\n",
927 printf(
"Sending MAX_SERVICE_UNIT to dns %d as %s@%s, %d services\n",
955 printf(
"Sending to dns %d as %s@%s, %d services\n",
966 tot_n_services += n_services;
#define MAX_REGISTRATION_UNIT
int dna_write(int conn_id, void *buffer, int size)
SERVICE * dis_hash_service_get_next(int *curr_index, SERVICE *prevp, int new_entries)
int dis_hash_service_registered(int index, SERVICE *servp)
int send_dns_update_packet(DIS_DNS_CONN *dnsp)
char task_name[MAX_TASK_NAME-4]
static int release_conn(int conn_id, int print_flg, int dns_flag)
int get_node_addr(char *node_addr)
char service_name[MAX_NAME]
char node_name[MAX_NODE_NAME]
char service_def[MAX_NAME]
Removed all warnings from DIM sources so that it can be compiled with Wall Wextra on Linux Changed the makefiles so that the default on Linux is now bits The flag
void dim_print_date_time()
SERVICE_REG services[MAX_SERVICE_UNIT]
int get_node_name(char *node_name)
DIS_DNS_PACKET dis_dns_packet