/freebsd/lib/libc/tests/nss/ |
H A D | getserv_test.c | 91 if (src->s_proto != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT() 92 dest->s_proto = strdup(src->s_proto); in IMPLEMENT_TEST_FILE_SNAPSHOT() 93 ATF_REQUIRE(dest->s_proto != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT() 120 free(serv->s_proto); in free_servent() 139 (strcmp(serv1->s_proto, serv2->s_proto) != 0) || in compare_servent() 175 serv->s_name, ntohs(serv->s_port), serv->s_proto); in sdump_servent() 229 serv->s_proto = strdup(s); in servent_read_snapshot_func() 230 ATF_REQUIRE(serv->s_proto != NULL); in servent_read_snapshot_func() 258 free(serv->s_proto); in servent_read_snapshot_func() 315 if (serv->s_proto == NULL) in servent_test_correctness() [all …]
|
/freebsd/usr.sbin/nscd/agents/ |
H A D | services.c | 59 if (serv->s_proto != NULL) in services_marshal_func() 60 desired_size += strlen(serv->s_proto) + 1; in services_marshal_func() 94 if (new_serv.s_proto != NULL) { in services_marshal_func() 95 size = strlen(new_serv.s_proto); in services_marshal_func() 96 memcpy(p, new_serv.s_proto, size); in services_marshal_func() 97 new_serv.s_proto = p; in services_marshal_func()
|
/freebsd/lib/libc/net/ |
H A D | getservent.c | 193 serv->s_proto = cp; in servent_unpack() 404 if (proto == NULL || strcmp(serv->s_proto, proto) == 0) in files_servent() 411 if (proto == NULL || strcmp(serv->s_proto, proto) == 0) in files_servent() 981 if (serv->s_proto != NULL) in serv_marshal_func() 982 desired_size += strlen(serv->s_proto) + 1; in serv_marshal_func() 1016 if (new_serv.s_proto != NULL) { in serv_marshal_func() 1017 size = strlen(new_serv.s_proto); in serv_marshal_func() 1018 memcpy(p, new_serv.s_proto, size); in serv_marshal_func() 1019 new_serv.s_proto = p; in serv_marshal_func() 1093 NS_APPLY_OFFSET(serv->s_proto, orig_buf, p, char *); in serv_unmarshal_func()
|
/freebsd/contrib/netbsd-tests/lib/libc/net/ |
H A D | h_servent.c | 43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto); in pserv()
|
/freebsd/contrib/less/ |
H A D | prompt.c | 45 static constant char s_proto[] = 73 prproto[0] = save(s_proto); in init_prompt() 43 static constant char s_proto[] = global() variable
|
/freebsd/contrib/tcpdump/missing/ |
H A D | getservent.c | 123 serv.s_proto = cp; in getservent()
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_rfc2553.c | 395 if (strcmp(sp->s_proto, "tcp") == 0) in getaddrinfo() 397 else if (strcmp(sp->s_proto, "udp") == 0) in getaddrinfo()
|
H A D | machines.c | 72 serv1->s_proto = "udp"; /* protocol to use */ in getservbyname()
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_machine.h | 150 char *s_proto; /* protocol to use */ member
|
/freebsd/include/ |
H A D | netdb.h | 124 char *s_proto; /* protocol to use */ member
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bio_addr.c | 839 se_fallback.s_proto = NULL; in BIO_lookup_ex() 870 se_fallback.s_proto = proto; in BIO_lookup_ex()
|
/freebsd/contrib/tcpdump/ |
H A D | addrtoname.c | 816 if (strcmp(sv->s_proto, "tcp") == 0) in init_servarray() 818 else if (strcmp(sv->s_proto, "udp") == 0) in init_servarray()
|
/freebsd/lib/libc/resolv/ |
H A D | res_mkupdate.c | 987 slp->proto = strdup(sp->s_proto); in res_buildservicelist() 1135 serv.s_proto = lp->proto; in cgetservbyport()
|
/freebsd/sbin/ipf/ipmon/ |
H A D | ipmon.c | 409 if (s->s_proto == NULL) in init_tabs() 411 else if (!strcmp(s->s_proto, "tcp")) { in init_tabs() 415 } else if (!strcmp(s->s_proto, "udp")) { in init_tabs()
|
/freebsd/usr.bin/getent/ |
H A D | getent.c | 509 se->s_name, ntohs(se->s_port), se->s_proto) in services()
|
/freebsd/contrib/libpcap/ |
H A D | gencode.c | 9540 struct slist *s, *s1, *s_proto; in gen_geneve_offsets() local 9628 s_proto = new_stmt(cstate, JMP(BPF_JEQ)); in gen_geneve_offsets() 9629 s_proto->s.k = ETHERTYPE_TEB; in gen_geneve_offsets() 9630 sappend(s, s_proto); in gen_geneve_offsets() 9634 s_proto->s.jt = s1; in gen_geneve_offsets() 9664 s_proto->s.jf = s1; in gen_geneve_offsets()
|