Lines Matching defs:php
1268 struct peer_hash *php;
1287 for (php = ph_pp[0]; php != NULL; php = php->ph_next) {
1288 if (php->ph_addr == from)
1289 return (php);
1304 for (php = ph2_pp[i]; php != NULL; php = pnhp) {
1305 pnhp = php->ph_next;
1306 ph3_pp = ph_pp + (php->ph_addr %
1308 php->ph_next = ph3_pp[0];
1309 ph3_pp[0] = php;
1317 php = calloc(sizeof (*php), 1);
1318 if (php == NULL) {
1322 php->ph_addr = from;
1323 php->ph_heard = now.tv_sec;
1324 php->ph_next = ph_pp[0];
1325 ph_pp[0] = php;
1328 return (php);
1338 struct peer_hash *php;
1353 for (php = ph_pp[i]; php != NULL; php = next_ph) {
1354 next_ph = php->ph_next;
1355 if (php->ph_heard <= now_expire) {
1360 free(php);
1364 prev_ph = php;
1383 struct peer_hash *php;
1419 (php = get_peer_info(from)) != NULL) {
1427 if (php->ph_heard > now_expire && php->ph_seqno != 0 &&
1428 (seqno == 0 || ((seqno - php->ph_seqno) & 0x80000000ul))) {
1431 (unsigned)seqno, (unsigned)php->ph_seqno);
1434 php->ph_heard = now.tv_sec;
1435 php->ph_seqno = seqno;