Searched refs:af (Results 1 - 25 of 279) sorted by last modified time

1234567891011>>

/openbsd-current/usr.bin/ssh/
H A Dmisc.c238 int af; local
240 switch ((af = get_sock_af(fd))) {
261 debug2_f("unsupported socket family %d", af);
H A Dchannels.h348 void channel_set_af(struct ssh *, int af);
H A Dchannels.c1561 u_int have, need, i, found, nmethods, addrlen, af; local
1611 af = AF_INET;
1615 af = -1;
1619 af = AF_INET6;
1653 if (inet_ntop(af, dest_addr, ntop, sizeof(ntop)) == NULL)
3671 channel_set_af(struct ssh *ssh, int af) argument
3673 ssh->chanctxt->IPv4or6 = af;
/openbsd-current/sys/net/
H A Dpf.c319 sa_family_t af)
321 switch (af) {
363 if ((diff = a->af - b->af) != 0)
365 if ((diff = pf_addr_compare(&a->addr, &b->addr, a->af)) != 0)
391 pf_addrcpy(struct pf_addr *dst, struct pf_addr *src, sa_family_t af) argument
393 switch (af) {
406 unhandled_af(af);
517 (*stp)->key[PF_SK_WIRE]->af);
521 p.pfra_af = (*stp)->key[PF_SK_WIRE]->af;
318 pf_addr_compare(const struct pf_addr *a, const struct pf_addr *b, sa_family_t af) argument
580 pf_insert_src_node(struct pf_src_node **sn, struct pf_rule *rule, enum pf_sn_types type, sa_family_t af, struct pf_addr *src, struct pf_addr *raddr, struct pfi_kif *kif) argument
887 pf_state_key_addr_setup(struct pf_pdesc *pd, void *arg, int sidx, struct pf_addr *saddr, int didx, struct pf_addr *daddr, int af, int multi) argument
2026 pf_print_host(struct pf_addr *addr, u_int16_t p, sa_family_t af) argument
2416 pf_cksum_fixup_a(u_int16_t *cksum, const struct pf_addr *a, const struct pf_addr *an, sa_family_t af, u_int8_t proto) argument
2916 pf_change_icmp_af(struct mbuf *m, int ipoff2, struct pf_pdesc *pd, struct pf_pdesc *pd2, struct pf_addr *src, struct pf_addr *dst, sa_family_t af, sa_family_t naf) argument
3021 pf_translate_icmp_af(struct pf_pdesc *pd, int af, void *arg) argument
3266 pf_build_tcp(const struct pf_rule *r, sa_family_t af, const struct pf_addr *saddr, const struct pf_addr *daddr, u_int16_t sport, u_int16_t dport, u_int32_t seq, u_int32_t ack, u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, u_int16_t rtag, u_int sack, u_int rdom) argument
3379 pf_send_tcp(const struct pf_rule *r, sa_family_t af, const struct pf_addr *saddr, const struct pf_addr *daddr, u_int16_t sport, u_int16_t dport, u_int32_t seq, u_int32_t ack, u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, u_int16_t rtag, u_int rdom) argument
3423 pf_send_icmp(struct mbuf *m, u_int8_t type, u_int8_t code, int param, sa_family_t af, struct pf_rule *r, u_int rdomain) argument
3455 pf_match_addr(u_int8_t n, struct pf_addr *a, struct pf_addr *m, struct pf_addr *b, sa_family_t af) argument
3486 pf_match_addr_range(struct pf_addr *b, struct pf_addr *e, struct pf_addr *a, sa_family_t af) argument
3726 pf_poolmask(struct pf_addr *naddr, struct pf_addr *raddr, struct pf_addr *rmask, struct pf_addr *saddr, sa_family_t af) argument
3752 pf_addr_inc(struct pf_addr *addr, sa_family_t af) argument
3950 pf_calc_mss(struct pf_addr *addr, sa_family_t af, int rtableid, u_int16_t offer) argument
3997 pf_set_rt_ifp(struct pf_state *st, struct pf_addr *saddr, sa_family_t af, struct pf_src_node **sns) argument
6402 pf_pull_hdr(struct mbuf *m, int off, void *p, int len, u_short *reasonp, sa_family_t af) argument
6437 pf_routable(struct pf_addr *addr, sa_family_t af, struct pfi_kif *kif, int rtableid) argument
6521 pf_rtlabel_match(struct pf_addr *addr, sa_family_t af, struct pf_addr_wrap *aw, int rtableid) argument
6804 pf_check_tcp_cksum(struct mbuf *m, int off, int len, sa_family_t af) argument
7249 pf_pkt_hash(sa_family_t af, uint8_t proto, const struct pf_addr *src, const struct pf_addr *dst, uint16_t sport, uint16_t dport) argument
7275 pf_setup_pdesc(struct pf_pdesc *pd, sa_family_t af, int dir, struct pfi_kif *kif, struct mbuf *m, u_short *reason) argument
7530 pf_test(sa_family_t af, int fwdir, struct ifnet *ifp, struct mbuf **m0) argument
[all...]
H A Dpfvar.h116 * For each connection (combination of proto,src,dst,af) the number
220 sa_family_t pfid_af; /* rule af */
282 #define PF_MISMATCHAW(aw, x, af, neg, ifp, rtid) \
285 pf_routable((x), (af), NULL, (rtid))) || \
287 pf_routable((x), (af), (ifp), (rtid))) || \
289 !pf_rtlabel_match((x), (af), (aw), (rtid))) || \
291 !pfr_match_addr((aw)->p.tbl, (x), (af))) || \
293 !pfi_match_addr((aw)->p.dyn, (x), (af))) || \
296 &(aw)->v.a.mask, (x), (af))) || \
298 !PF_AZERO(&(aw)->v.a.mask, (af))
573 sa_family_t af; member in struct:pf_rule
651 sa_family_t af; member in struct:pf_src_node
708 sa_family_t af; member in struct:pf_state_key_cmp
763 sa_family_t af; member in struct:pfsync_state_key
784 sa_family_t af; member in struct:pfsync_state
1378 sa_family_t af; member in struct:pfioc_natlook
[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 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...]
/openbsd-current/gnu/usr.bin/perl/win32/include/sys/
H A Dsocket.h82 SOCKET win32_socket (int af, int type, int protocol);
/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)
H A Dperlhost.h1451 PerlSockSocket(struct IPerlSock* piPerl, int af, int type, int protocol) argument
1453 return win32_socket(af, type, protocol);
/openbsd-current/gnu/usr.bin/perl/t/
H A Dloc_tools.pl730 Afrikaans:af:za:1 15
/openbsd-current/gnu/usr.bin/perl/dist/I18N-LangTags/lib/I18N/LangTags/
H A DList.pm256 =item {af} : Afrikaans
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/
H A DUtil.pm198 my $af = $|;
200 $| = $af;
/openbsd-current/gnu/usr.bin/perl/cpan/Socket/
H A DSocket.xs109 static int inet_pton(int af, const char *src, void *dst)
113 ss.ss_family = af; /* per MSDN */
115 if (WSAStringToAddress((char*)src, af, NULL, (struct sockaddr *)&ss, &size) != 0)
118 switch(af) {
131 static const char *inet_ntop(int af, const void *src, char *dst, socklen_t size)
137 ss.ss_family = af;
139 switch(af) {
1166 inet_ntop(af, ip_address_sv)
1167 int af
1186 switch(af) {
[all...]
H A DSocket.pm851 my($af, $port, @quad) = @_;
/openbsd-current/distrib/miniroot/
H A Dinstall.sub3072 /$AI_MODE -af /tmp/ai/ai.$AI_MODE.conf 2>&1 </dev/null |
3551 while getopts "af:m:x" opt; do
3580 umount -af >/dev/null 2>&1
/openbsd-current/sbin/unwind/
H A Dresolver.c2001 int i, rdns_count, af, changed = 0; local
2005 af = rdns_proposal->rtdns.sr_family;
2008 switch (af) {
2016 log_warnx("%s: unsupported address family: %d", __func__, af);
2034 ss.ss_family = af;
2035 switch (af) {
/openbsd-current/sys/netinet6/
H A Dip6_input.c175 ip6_ours(struct mbuf **mp, int *offp, int nxt, int af) argument
185 if (af != AF_UNSPEC)
357 ip6_input_if(struct mbuf **mp, int *offp, int nxt, int af, struct ifnet *ifp) argument
448 nxt = ip6_ours(mp, offp, nxt, af);
498 if (af == AF_UNSPEC)
499 nxt = ip6_ours(mp, offp, nxt, af);
511 nxt = ip6_ours(mp, offp, nxt, af);
570 nxt = ip6_ours(mp, offp, nxt, af);
595 if (af == AF_UNSPEC)
596 nxt = ip6_ours(mp, offp, nxt, af);
[all...]
/openbsd-current/sys/netinet/
H A Dip_input.c238 ip_ours(struct mbuf **mp, int *offp, int nxt, int af) argument
245 if (af != AF_UNSPEC)
425 ip_input_if(struct mbuf **mp, int *offp, int nxt, int af, struct ifnet *ifp) argument
482 nxt = ip_ours(mp, offp, nxt, af);
490 nxt = ip_ours(mp, offp, nxt, af);
539 nxt = ip_ours(mp, offp, nxt, af);
555 nxt = ip_ours(mp, offp, nxt, af);
712 #define IPSTAT_INC(name) (af == AF_INET ? \
717 ip_deliver(struct mbuf **mp, int *offp, int nxt, int af, int shared) argument
732 switch (af) {
[all...]
/openbsd-current/sbin/route/
H A Droute.c157 int af = AF_UNSPEC; local
219 af = AF_INET;
222 af = AF_INET6;
225 af = AF_MPLS;
245 s = socket(AF_ROUTE, SOCK_RAW, af);
321 int mib[7], mcnt, rlen, seqno, af = AF_UNSPEC; local
335 af = AF_INET;
338 af = AF_INET6;
341 af = AF_LINK;
344 af
486 int af = AF_UNSPEC, ret = 0, key; local
558 pushsrc(int cmd, char *src, int af) argument
576 int fmask = 0, af = AF_UNSPEC; local
840 int af = AF_UNSPEC; local
909 getaddr(int which, int af, char *s, struct hostent **hpp) argument
1089 prefixlen(int af, char *s) argument
[all...]
/openbsd-current/sbin/pfctl/
H A Dpfctl_table.c617 int i, af, dir, act; local
638 af = (i>>2) & 1;
642 istats_text[af][dir][act],
643 (unsigned long long)p->pfik_packets[af][dir][act],
644 (unsigned long long)p->pfik_bytes[af][dir][act]);
/openbsd-current/libexec/spamd/
H A Dspamd.c54 int af; member in struct:con
214 sa_family_t af; local
273 af = AF_INET;
277 af = AF_INET6;
314 if (af == AF_INET) {
344 printf("bogus config line - need 'tag;message;af;count;a/m;a/m;a/m...'\n");
471 append_error_string(struct con *cp, size_t off, char *fmt, int af, void *ia) argument
539 inet_ntop(af, ia, c + i, (len - i));
598 cp->af, cp->ia);
724 cp->af
[all...]
/openbsd-current/libexec/ftpd/
H A Dftpd.c1802 int af; local
1826 af = 4;
1832 af = 6;
1835 af = 0;
1838 if (af) {
1843 printf("(%u,%llu", af, (unsigned long long)alen);
1852 af = 1;
1855 af = 2;
1858 af = 0;
1861 if (af) {
2280 af2epsvproto(int af) argument
[all...]
/openbsd-current/libexec/snmpd/snmpd_metrics/
H A Dmib.c2929 int af; local
2936 af = agentx_varbind_get_index_integer(vb, inetCidrRouteDestTypeIdx);
2949 if (af < INETADDRESSTYPE_IPV4 ||
2950 (af == INETADDRESSTYPE_IPV4 && alen < 4)) {
2956 } else if (af > INETADDRESSTYPE_IPV4 ||
2957 (af == INETADDRESSTYPE_IPV4 && alen > 4)) {
/openbsd-current/usr.sbin/bgpd/
H A Dparse.y274 %type <v.number> espah af safi restart origincode nettype
672 | as4number_any af {
1106 | NETWORK af RTLABEL STRING filter_set {
1125 | NETWORK af PRIORITY NUMBER filter_set {
1148 | NETWORK af nettype filter_set {
1168 flowspec : FLOWSPEC af {
1893 | ANNOUNCE af safi enforce {
2330 af : IPV4 { $$ = AFI_IPv4; } label

Completed in 518 milliseconds

1234567891011>>