Home
last modified time | relevance | path

Searched refs:is_v6 (Results 1 – 4 of 4) sorted by relevance

/openbsd/src/usr.sbin/bgpd/
Dflowspec.c31 flowspec_next_component(const uint8_t *buf, int len, int is_v6, int *type) in flowspec_next_component() argument
47 if (!is_v6) { in flowspec_next_component()
69 if (!is_v6) in flowspec_next_component()
172 flowspec_valid(const uint8_t *buf, int len, int is_v6) in flowspec_valid() argument
181 l = flowspec_next_component(buf, len, is_v6, &type); in flowspec_valid()
202 flowspec_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6) in flowspec_cmp() argument
209 acomplen = flowspec_next_component(a, alen, is_v6, &atype); in flowspec_cmp()
210 bcomplen = flowspec_next_component(b, blen, is_v6, &btype); in flowspec_cmp()
226 if (!is_v6) { in flowspec_cmp()
296 flowspec_get_component(const uint8_t *flow, int flowlen, int type, int is_v6, in flowspec_get_component() argument
[all …]
Dprintconf.c515 print_flowspec_list(struct flowspec *f, int type, int is_v6) in print_flowspec_list() argument
521 if (flowspec_get_component(f->data, f->len, type, is_v6, in print_flowspec_list()
540 print_flowspec_flags(struct flowspec *f, int type, int is_v6) in print_flowspec_flags() argument
551 if (!is_v6) in print_flowspec_flags()
561 if (flowspec_get_component(f->data, f->len, type, is_v6, in print_flowspec_flags()
581 print_flowspec_addr(struct flowspec *f, int type, int is_v6) in print_flowspec_addr() argument
586 flowspec_get_addr(f->data, f->len, type, is_v6, &addr, &plen, NULL); in print_flowspec_addr()
598 int is_v6 = (f->aid == AID_FLOWSPECv6); in print_flowspec() local
602 print_flowspec_list(f, FLOWSPEC_TYPE_PROTO, is_v6); in print_flowspec()
604 print_flowspec_addr(f, FLOWSPEC_TYPE_SOURCE, is_v6); in print_flowspec()
[all …]
/openbsd/src/usr.sbin/bgpctl/
Doutput.c504 print_flowspec_list(struct flowspec *f, int type, int is_v6) in print_flowspec_list() argument
510 if (flowspec_get_component(f->data, f->len, type, is_v6, in print_flowspec_list()
529 print_flowspec_flags(struct flowspec *f, int type, int is_v6) in print_flowspec_flags() argument
540 if (!is_v6) in print_flowspec_flags()
550 if (flowspec_get_component(f->data, f->len, type, is_v6, in print_flowspec_flags()
570 print_flowspec_addr(struct flowspec *f, int type, int is_v6) in print_flowspec_addr() argument
575 flowspec_get_addr(f->data, f->len, type, is_v6, &addr, &plen, NULL); in print_flowspec_addr()
586 int is_v6 = (f->aid == AID_FLOWSPECv6); in show_flowspec() local
589 print_flowspec_list(f, FLOWSPEC_TYPE_PROTO, is_v6); in show_flowspec()
591 print_flowspec_addr(f, FLOWSPEC_TYPE_SOURCE, is_v6); in show_flowspec()
[all …]
/openbsd/src/regress/usr.sbin/bgpd/unittests/
Drde_flowspec_test.c120 do_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6) in do_cmp() argument
122 if (flowspec_cmp(a, alen, b, blen, is_v6) != -1 || in do_cmp()
123 flowspec_cmp(b, blen, a, alen, is_v6) != 1) in do_cmp()