Searched refs:af (Results 126 - 150 of 279) sorted by relevance

1234567891011>>

/openbsd-current/usr.sbin/npppd/npppd/
H A Dradius_req.c122 int af; local
130 af = setting->server[setting->curr_server].peer.sin6.sin6_family;
131 RADIUS_REQ_ASSERT(af == AF_INET6 || af == AF_INET);
136 switch (af) {
/openbsd-current/usr.sbin/tcpdump/
H A Dprint-ike.c304 u_int8_t af = buf[0] >> 7; local
317 if ((af == 1 && maxlen < 4) || (af == 0 && maxlen < (len + 4))) {
322 if (af == 0) {
727 u_int8_t af = buf[0] >> 7; local
729 u_int16_t len = af ? 2 : buf[2] << 8 | buf[3], p;
730 u_int8_t *val = af ? buf + 2 : buf + 4;
736 if ((af == 1 && maxlen < 4) ||
737 (af == 0 && maxlen < (len + 4))) {
743 if (len == 0 || (af
[all...]
H A Dprint-gre.c197 u_int16_t af; local
203 af = EXTRACT_16BITS(p);
210 if (af == 0 && srelen == 0)
213 gre_sre_print(af, sreoff, srelen, p, l);
596 gre_sre_print(u_int16_t af, u_int8_t sreoff, u_int8_t srelen, argument
599 switch (af) {
611 printf(" (rtaf=0x%x)", af);
/openbsd-current/sbin/iked/
H A Dvroute.c280 int af, add; local
290 af = addr->sa_family;
300 if (mask->sa_family != af)
527 uint8_t af; local
531 af = dst->sa_family;
543 switch(af) {
547 in->sin_family = af;
557 in6->sin6_family = af;
924 int af; local
926 af
[all...]
/openbsd-current/usr.sbin/ldpd/
H A Dlabelmapping.c364 switch (me->map.fec.prefix.af) {
384 fatalx("recv_labelmessage: unknown af");
588 switch (map->fec.prefix.af) {
596 fatalx("gen_fec_tlv: unknown af");
668 fatalx("gen_fec_tlv: unknown af");
719 memcpy(&map->fec.prefix.af, buf + off,
720 sizeof(map->fec.prefix.af));
721 off += sizeof(map->fec.prefix.af);
722 map->fec.prefix.af = ntohs(map->fec.prefix.af);
[all...]
/openbsd-current/sys/dev/pv/
H A Dhypervic.c838 int i, j, lo, hi, s, af; local
850 af = AF_UNSPEC;
853 af = AF_INET;
856 af = AF_INET6;
883 if ((af == AF_INET || af == AF_UNSPEC) &&
885 af = AF_INET;
888 if ((af == AF_INET6 || af == AF_UNSPEC) &&
893 if (af
[all...]
/openbsd-current/sbin/isakmpd/
H A Dvirtual.c141 virtual_get_default(sa_family_t af) argument
143 switch (af) {
292 virtual_bind_ADDR_ANY(sa_family_t af) argument
301 switch (af) {
303 d4->sin_family = af;
309 d6->sin6_family = af;
320 af == AF_INET ? "4" : "6");
/openbsd-current/sbin/ipsecctl/
H A Dparse.y616 if ($3->af != $1->af) {
1713 ipa->af = res->ai_family;
1766 ipa->af = AF_INET;
1823 ipa->af = res->ai_family;
1839 if (ipa->af == AF_INET)
1870 ipa->af = AF_UNSPEC;
1898 n->af = ifa->ifa_addr->sa_family;
1901 if (n->af == AF_INET) {
1902 n->af
[all...]
H A Dike.c638 ike_section_p2ids_net(struct ipsec_addr *iamask, sa_family_t af, char *name, argument
647 sa->sa_family = af;
648 switch (af) {
672 p2xid, ((af == AF_INET) ? 4 : 6));
687 ike_section_p2ids_net(&src->mask, src->af, src->name,
691 r->p2lid, ((src->af == AF_INET) ? 4 : 6));
699 ike_section_p2ids_net(&src->srcnat->mask, src->af, src->srcnat->name,
703 r->p2nid, ((src->af == AF_INET) ? 4 : 6));
711 ike_section_p2ids_net(&dst->mask, dst->af, dst->name,
715 r->p2rid, ((dst->af
[all...]
/openbsd-current/gnu/usr.bin/perl/win32/
H A Dwin32sck.c564 open_ifs_socket(int af, int type, int protocol) argument
573 return WSASocket(af, type, protocol, NULL, 0, 0);
592 if ((af != AF_UNSPEC && af != proto_buffers[i].iAddressFamily)
604 out = WSASocket(af, type, protocol, &proto_info, 0, 0);
619 win32_socket(int af, int type, int protocol) argument
623 if((s = open_ifs_socket(af, type, protocol)) == INVALID_SOCKET)
/openbsd-current/usr.sbin/eigrpd/
H A Drde_dual.c177 addrcmp = eigrp_addrcmp(a->eigrp->af, &a->prefix, &b->prefix);
267 if (eigrp_addrisset(eigrp->af, &ri->nexthop))
275 if (eigrp_addrcmp(eigrp->af, &tmp->nexthop,
284 log_prefix(rn), log_route_origin(eigrp->af, route->nbr),
296 log_route_origin(eigrp->af, route->nbr));
493 log_addr(nbr->eigrp->af, &nbr->addr));
526 log_debug("%s: nbr %s prefix %s", __func__, log_addr(nbr->eigrp->af,
531 log_addr(nbr->eigrp->af, &nbr->addr));
592 ri->af = rn->eigrp->af;
[all...]
H A Dhello.c122 __func__, log_addr(ei->eigrp->af, src));
/openbsd-current/sbin/pfctl/
H A Dpfctl_optimize.c152 PF_RULE_FIELD(af, NOMERGE),
251 { "af", PF_SKIP_AF, skip_cmp_af }, \
367 * have to keep af in the table container, make af 'COMBINE' and
368 * twiddle the af on the merged rule
375 * XXX should i treat proto=0, af=0 or dir=0 special in skepstep
499 p1->por_rule.af, &p1->por_rule.dst, NULL))
502 p1->por_rule.af, &p2->por_rule.dst, NULL))
522 p1->por_rule.af, &p1->por_rule.src, NULL))
525 p1->por_rule.af,
1189 add_opt_table(struct pfctl *pf, struct pf_opt_tbl **tbl, sa_family_t af, struct pf_rule_addr *addr, char *ifname) argument
[all...]
/openbsd-current/sys/net/
H A Dif_gif.c718 in_gif_input(struct mbuf **mp, int *offp, int proto, int af) argument
731 rv = gif_input(&key, mp, offp, proto, af, ip->ip_tos);
733 rv = ipip_input(mp, offp, proto, af);
740 in6_gif_input(struct mbuf **mp, int *offp, int proto, int af) argument
756 rv = gif_input(&key, mp, offp, proto, af, flow >> 20);
758 rv = ipip_input(mp, offp, proto, af);
786 int af, uint8_t otos)
901 gif_ip_cmp(int af, const union gif_addr *a, const union gif_addr *b) argument
903 switch (af) {
911 panic("%s: unsupported af
785 gif_input(struct gif_tunnel *key, struct mbuf **mp, int *offp, int proto, int af, uint8_t otos) argument
[all...]
H A Dpf_ioctl.c800 /* XXX ignore af? */
839 PF_MD5_UPD(rule, af);
920 sa_family_t af)
922 if (pfi_dynaddr_setup(addr, af, PR_WAITOK) ||
1444 if (pf_addr_setup(ruleset, &rule->src.addr, rule->af))
1446 if (pf_addr_setup(ruleset, &rule->dst.addr, rule->af))
1448 if (pf_addr_setup(ruleset, &rule->rdr.addr, rule->af))
1450 if (pf_addr_setup(ruleset, &rule->nat.addr, rule->af))
1452 if (pf_addr_setup(ruleset, &rule->route.addr, rule->af))
1687 newrule->af))
919 pf_addr_setup(struct pf_ruleset *ruleset, struct pf_addr_wrap *addr, sa_family_t af) argument
[all...]
H A Dpf_syncookies.c207 pf_send_tcp(NULL, pd->af, pd->dst, pd->src, *pd->dport, *pd->sport,
309 switch (pd->af) {
388 return (pf_build_tcp(NULL, pd->af, pd->src, pd->dst, *pd->sport,
H A Dif_tun.c632 u_int32_t *af; local
639 M_PREPEND(m0, sizeof(*af), M_DONTWAIT);
642 af = mtod(m0, u_int32_t *);
643 *af = htonl(dst->sa_family);
929 uint32_t af; local
931 KASSERT(m0->m_len >= sizeof(af));
933 af = *mtod(m0, uint32_t *);
935 m_adj(m0, sizeof(af));
937 switch (ntohl(af)) {
/openbsd-current/usr.bin/netstat/
H A Dinet.c197 if ((af == AF_LOCAL || af == AF_UNSPEC) && !proto)
201 if (af == AF_INET || af == AF_UNSPEC)
205 if (af == AF_INET6 || af == AF_UNSPEC)
219 static int af = 0, type = 0; local
310 if (af != kf->so_family || type != kf->so_type) {
311 af = kf->so_family;
1448 inpcb_dump(u_long off, short protocol, int af) argument
[all...]
H A Droute.c110 if (af != AF_UNSPEC && af != i)
157 plentosa(sa_family_t af, int plen, struct sockaddr *sa_mask) argument
169 switch (af) {
/openbsd-current/games/sail/
H A Ddr_3.c56 char af; local
62 ta = maxturns(sp, &af);
70 ta, ma, af);
/openbsd-current/usr.sbin/sasyncd/
H A Dconf.y72 %type <val> af port mode flushmode ctlmode
81 af : /* empty */ { $$ = AF_UNSPEC; } label
199 | LISTEN ON STRING af port
/openbsd-current/gnu/usr.bin/texinfo/makeinfo/
H A Dlang.h31 aa, ab, af, am, ar, as, ay, az, enumerator in enum:__anon7400
/openbsd-current/libexec/spamd/
H A Dsdl.c419 sdl_lookup(struct sdlist *head, int af, void *src) argument
424 switch (af) {
463 sdl_check(struct sdlist *head, int af, void *src) argument
468 switch (af) {
/openbsd-current/usr.sbin/rpki-client/
H A Drsc.c181 const ConstrainedIPAddressFamily *af; local
197 af = sk_ConstrainedIPAddressFamily_value(ipAddrBlocks, i);
198 aors = af->addressesOrRanges;
212 if (!ip_addr_afi_parse(fn, af->addressFamily, &afi)) {
/openbsd-current/sbin/unwind/libunbound/
H A Dconfig.h1231 int inet_pton(int af, const char* src, void* dst);
1237 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1339 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1343 int inet_pton(int af, const char* src, void* dst);

Completed in 433 milliseconds

1234567891011>>