| /freebsd-12-stable/lib/libc/tests/nss/ |
| D | getserv_test.c | 94 if (src->s_proto != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT() 95 dest->s_proto = strdup(src->s_proto); in IMPLEMENT_TEST_FILE_SNAPSHOT() 96 ATF_REQUIRE(dest->s_proto != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT() 123 free(serv->s_proto); in free_servent() 142 (strcmp(serv1->s_proto, serv2->s_proto) != 0) || in compare_servent() 178 serv->s_name, ntohs(serv->s_port), serv->s_proto); in sdump_servent() 232 serv->s_proto = strdup(s); in servent_read_snapshot_func() 233 ATF_REQUIRE(serv->s_proto != NULL); in servent_read_snapshot_func() 261 free(serv->s_proto); in servent_read_snapshot_func() 314 if (serv->s_proto == NULL) in servent_test_correctness() [all …]
|
| /freebsd-12-stable/usr.sbin/nscd/agents/ |
| D | services.c | 62 if (serv->s_proto != NULL) in services_marshal_func() 63 desired_size += strlen(serv->s_proto) + 1; in services_marshal_func() 97 if (new_serv.s_proto != NULL) { in services_marshal_func() 98 size = strlen(new_serv.s_proto); in services_marshal_func() 99 memcpy(p, new_serv.s_proto, size); in services_marshal_func() 100 new_serv.s_proto = p; in services_marshal_func()
|
| /freebsd-12-stable/lib/libc/net/ |
| D | getservent.c | 199 serv->s_proto = cp; in servent_unpack() 410 if (proto == NULL || strcmp(serv->s_proto, proto) == 0) in files_servent() 417 if (proto == NULL || strcmp(serv->s_proto, proto) == 0) in files_servent() 987 if (serv->s_proto != NULL) in serv_marshal_func() 988 desired_size += strlen(serv->s_proto) + 1; in serv_marshal_func() 1022 if (new_serv.s_proto != NULL) { in serv_marshal_func() 1023 size = strlen(new_serv.s_proto); in serv_marshal_func() 1024 memcpy(p, new_serv.s_proto, size); in serv_marshal_func() 1025 new_serv.s_proto = p; in serv_marshal_func() 1099 NS_APPLY_OFFSET(serv->s_proto, orig_buf, p, char *); in serv_unmarshal_func()
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/net/ |
| D | h_servent.c | 43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto); in pserv()
|
| /freebsd-12-stable/contrib/less/ |
| D | prompt.c | 42 static constant char s_proto[] = variable 71 prproto[0] = save(s_proto); in init_prompt()
|
| /freebsd-12-stable/contrib/ntp/libntp/ |
| 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()
|
| D | machines.c | 73 serv1->s_proto = "udp"; /* protocol to use */ in getservbyname()
|
| /freebsd-12-stable/contrib/ntp/include/ |
| D | ntp_machine.h | 150 char *s_proto; /* protocol to use */ member
|
| /freebsd-12-stable/include/ |
| D | netdb.h | 126 char *s_proto; /* protocol to use */ member
|
| /freebsd-12-stable/crypto/openssl/crypto/bio/ |
| D | b_addr.c | 827 se_fallback.s_proto = NULL; in BIO_lookup_ex() 858 se_fallback.s_proto = proto; in BIO_lookup_ex()
|
| /freebsd-12-stable/contrib/tcpdump/ |
| D | addrtoname.c | 793 if (strcmp(sv->s_proto, "tcp") == 0) in init_servarray() 795 else if (strcmp(sv->s_proto, "udp") == 0) in init_servarray()
|
| /freebsd-12-stable/lib/libc/resolv/ |
| D | res_mkupdate.c | 993 slp->proto = strdup(sp->s_proto); in res_buildservicelist() 1141 serv.s_proto = lp->proto; in cgetservbyport()
|
| /freebsd-12-stable/sbin/ipf/ipmon/ |
| D | ipmon.c | 417 if (s->s_proto == NULL) in init_tabs() 419 else if (!strcmp(s->s_proto, "tcp")) { in init_tabs() 423 } else if (!strcmp(s->s_proto, "udp")) { in init_tabs()
|
| /freebsd-12-stable/usr.bin/getent/ |
| D | getent.c | 511 se->s_name, ntohs(se->s_port), se->s_proto) in services()
|
| /freebsd-12-stable/contrib/libpcap/ |
| D | gencode.c | 9285 struct slist *s, *s1, *s_proto; in gen_geneve_offsets() local 9373 s_proto = new_stmt(cstate, JMP(BPF_JEQ)); in gen_geneve_offsets() 9374 s_proto->s.k = ETHERTYPE_TEB; in gen_geneve_offsets() 9375 sappend(s, s_proto); in gen_geneve_offsets() 9379 s_proto->s.jt = s1; in gen_geneve_offsets() 9409 s_proto->s.jf = s1; in gen_geneve_offsets()
|