"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.c" between
mrouted-4.3.tar.gz and mrouted-4.4.tar.gz

About: mrouted is an implementation of the DVMRP multicast routing protocol.

main.c  (mrouted-4.3):main.c  (mrouted-4.4)
skipping to change at line 432 skipping to change at line 432
k_stop_dvmrp(); k_stop_dvmrp();
/*XXX /*XXX
* This function must change whenever the kernel version changes * This function must change whenever the kernel version changes
*/ */
if ((((vers >> 8) & 0xff) != 3) || ((vers & 0xff) != 5)) if ((((vers >> 8) & 0xff) != 3) || ((vers & 0xff) != 5))
logit(LOG_ERR, 0, "kernel (v%d.%d)/mrouted (v%d.%d) version mismatch", logit(LOG_ERR, 0, "kernel (v%d.%d)/mrouted (v%d.%d) version mismatch",
(vers >> 8) & 0xff, vers & 0xff, PROTOCOL_VERSION, MROUTED_VERSION) ; (vers >> 8) & 0xff, vers & 0xff, PROTOCOL_VERSION, MROUTED_VERSION) ;
init_vifs(); init_vifs();
ipc_init(sock_file, ident); ipc_init(sock_file, ident);
#ifdef RSRR
rsrr_init();
#endif
sa.sa_handler = handle_signals; sa.sa_handler = handle_signals;
sa.sa_flags = 0; /* Interrupt system calls */ sa.sa_flags = 0; /* Interrupt system calls */
sigemptyset(&sa.sa_mask); sigemptyset(&sa.sa_mask);
sigaction(SIGHUP, &sa, NULL); sigaction(SIGHUP, &sa, NULL);
sigaction(SIGTERM, &sa, NULL); sigaction(SIGTERM, &sa, NULL);
sigaction(SIGINT, &sa, NULL); sigaction(SIGINT, &sa, NULL);
sigaction(SIGUSR1, &sa, NULL); sigaction(SIGUSR1, &sa, NULL);
sigaction(SIGUSR2, &sa, NULL); sigaction(SIGUSR2, &sa, NULL);
skipping to change at line 684 skipping to change at line 681
return secs; return secs;
} }
static void cleanup(void) static void cleanup(void)
{ {
static int in_cleanup = 0; static int in_cleanup = 0;
if (!in_cleanup) { if (!in_cleanup) {
in_cleanup++; in_cleanup++;
#ifdef RSRR
rsrr_clean();
#endif
expire_all_routes(); expire_all_routes();
report_to_all_neighbors(ALL_ROUTES); report_to_all_neighbors(ALL_ROUTES);
free_all_prunes(); free_all_prunes();
free_all_routes(); free_all_routes();
stop_all_vifs(); stop_all_vifs();
if (did_final_init) if (did_final_init)
k_stop_dvmrp(); k_stop_dvmrp();
close(udp_socket); close(udp_socket);
 End of changes. 2 change blocks. 
6 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)