Lines Matching defs:fc
60 fc2c(struct community *fc, struct rde_peer *peer, struct community *c,
70 c->flags = (uint8_t)fc->flags;
74 if (apply_flag(fc->data1, fc->flags >> 8, peer,
77 if (apply_flag(fc->data2, fc->flags >> 16, peer,
86 if (apply_flag(fc->data1, fc->flags >> 8, peer,
89 if (apply_flag(fc->data2, fc->flags >> 16, peer,
92 if (apply_flag(fc->data3, fc->flags >> 24, peer,
97 type = (int32_t)fc->data3 >> 8;
98 subtype = fc->data3 & 0xff;
100 if ((fc->flags >> 24 & 0xff) == COMMUNITY_ANY) {
112 if ((fc->flags >> 8 & 0xff) != COMMUNITY_ANY ||
126 if ((fc->flags >> 8 & 0xff) == COMMUNITY_ANY)
129 if (apply_flag(fc->data1, fc->flags >> 8, peer,
132 if (apply_flag(fc->data2, fc->flags >> 16, peer,
139 if ((fc->flags >> 8 & 0xff) == COMMUNITY_ANY)
142 if (apply_flag(fc->data1, fc->flags >> 8, peer,
145 if (apply_flag(fc->data2, fc->flags >> 16, peer,
154 if ((fc->flags >> 8 & 0xff) == COMMUNITY_ANY)
157 c->data1 = fc->data1;
158 c->data2 = fc->data2;
270 community_match(struct rde_community *comm, struct community *fc,
276 if (fc->flags >> 8 == 0) {
278 return (bsearch(fc, comm->communities, comm->nentries,
279 sizeof(*fc), fast_match) != NULL);
282 if (fc2c(fc, peer, &test, &mask) == -1)
337 community_set(struct rde_community *comm, struct community *fc,
342 if (fc->flags >> 8 == 0) {
344 insert_community(comm, fc);
346 if (fc2c(fc, peer, &set, NULL) == -1)
376 community_delete(struct rde_community *comm, struct community *fc,
383 if (fc->flags >> 8 == 0) {
385 match = bsearch(fc, comm->communities, comm->nentries,
386 sizeof(*fc), fast_match);
396 if (fc2c(fc, peer, &test, &mask) == -1)
747 community_to_rd(struct community *fc, uint64_t *community)
752 if (fc2c(fc, NULL, &c, NULL) == -1)