| | 1744 | | dm_htupd(hp, mp) | | | 1745 | | struct hostd *hp; | | | 1746 | | struct pmsg *mp; | | | 1747 | | { | | | 1748 | | int count; | | | 1749 | | int hh; | | | 1750 | | char buf[16]; | | | 1751 | | struct pmsg *mp2; | | | 1752 | | | | | 1753 | | | | | 1754 | | | | | 1755 | | newhosts = ht_new(1); | | | 1756 | | newhosts->ht_local = hosts->ht_local; | | | 1757 | | upkint(mp, &newhosts->ht_serial); | | | 1758 | | upkint(mp, &newhosts->ht_master); | | | 1759 | | upkint(mp, &newhosts->ht_cons); | | | 1760 | | | | | 1761 | | | | | 1762 | | | | | 1763 | | ht_merge(newhosts, hosts); | | | 1764 | | | | | 1765 | | | | | 1766 | | | | | 1767 | | | | | 1768 | | | | | 1769 | | | | | 1770 | | upkint(mp, &count); | | | 1771 | | while (count-- > 0) { | | | 1772 | | upkint(mp, &hh); | | | 1773 | | hp = hd_new(hh); | | | 1774 | | upkstralloc(mp, &hp->hd_name); | | | 1775 | | upkstralloc(mp, &hp->hd_arch); | | | 1776 | | upkstr(mp, buf, sizeof(buf)); | | | 1777 | | hex_inadport(buf, &hp->hd_sad); | | | 1778 | | upkint(mp, &hp->hd_mtu); | | | 1779 | | upkint(mp, &hp->hd_speed); | | | 1780 | | upkint(mp, &hp->hd_dsig); | | | 1781 | | ht_insert(newhosts, hp); | | | 1782 | | hd_unref(hp); | | | 1783 | | } | | | 1784 | | | | | 1785 | | if (pvmdebmask & PDMHOST) {
| | | 1786 | | pvmlogerror("dm_htupd() new host table:\n"); | | | 1787 | | ht_dump(newhosts); | | | 1788 | | } | | | 1789 | | runstate = PVMDHTUPD;
| | | 1790 | | | | | 1791 | | | | | 1792 | | |
|