Lines Matching defs:id

126 	return a->conf.id - b->conf.id;
913 peer->conf.id, 0, -1, NULL, 0);
960 peer->conf.id, 0, -1, NULL, 0);
983 mrt->peer_id == peer->conf.id || (mrt->group_id != 0 &&
1425 mrt->peer_id == p->conf.id || (mrt->group_id != 0 &&
1433 if (imsg_rde(IMSG_XOFF, p->conf.id, NULL, 0) == -1)
1669 log_warnx("no such peer: id=%u", peerid);
1849 if (imsg_rde(IMSG_SESSION_STALE, p->conf.id,
1857 if (imsg_rde(IMSG_SESSION_NOGRACE, p->conf.id,
1882 if (imsg_rde(IMSG_SESSION_FLUSH, p->conf.id,
1951 if (imsg_rde(IMSG_XON, p->conf.id, NULL, 0) == -1)
2016 mrt->peer_id == p->conf.id || (mrt->group_id != 0 &&
2375 if (imsg_rde(IMSG_UPDATE, peer->conf.id, p, datalen) == -1)
2470 if (imsg_rde(IMSG_REFRESH, peer->conf.id, &rr, sizeof(rr)) == -1)
2762 if (imsg_rde(IMSG_SESSION_FLUSH, p->conf.id,
3227 log_warnx("no such peer: id=%u", peerid);
3270 log_warnx("no such peer: id=%u", peerid);
3285 log_warnx("no such peer: id=%u", peerid);
3375 uint32_t id;
3399 for (id = PEER_ID_DYN_MAX; id > PEER_ID_STATIC_MAX; id--) {
3400 if (getpeerbyid(c, id) == NULL) /* we found a free id */
3404 session_template_clone(newpeer, ip, id, 0);
3424 lookup.conf.id = peerid;
3448 session_template_clone(struct peer *p, struct sockaddr *ip, uint32_t id,
3460 p->conf.id = id;
3505 if (imsg_rde(IMSG_SESSION_DOWN, peer->conf.id, NULL, 0) == -1)
3521 if (imsg_rde(IMSG_SESSION_ADD, p->conf.id,
3539 if (imsg_rde(IMSG_SESSION_UP, p->conf.id, &sup, sizeof(sup)) == -1)
3591 if (imsg_compose(ibuf_main, IMSG_DEMOTE, p->conf.id, 0, -1,
3650 np = getpeerbyid(nc, p->conf.id);
3676 p->conf.id, 0, -1, NULL, 0);
3679 if (imsg_rde(IMSG_SESSION_ADD, p->conf.id,
3689 session_template_clone(xp, NULL, xp->conf.id,
3691 if (imsg_rde(IMSG_SESSION_ADD, xp->conf.id,