Home
last modified time | relevance | path

Searched refs:s_proto (Results 1 – 16 of 16) sorted by relevance

/freebsd/lib/libc/tests/nss/
H A Dgetserv_test.c91 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()
311 if (serv->s_proto == NULL) in servent_test_correctness()
[all …]
/freebsd/usr.sbin/nscd/agents/
H A Dservices.c59 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 Dgetservent.c193 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 Dh_servent.c43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto); in pserv()
/freebsd/contrib/less/
H A Dprompt.c43 static constant char s_proto[] = variable
71 prproto[0] = save(s_proto); in init_prompt()
/freebsd/contrib/tcpdump/missing/
H A Dgetservent.c125 serv.s_proto = cp; in getservent()
/freebsd/contrib/ntp/libntp/
H A Dntp_rfc2553.c395 if (strcmp(sp->s_proto, "tcp") == 0) in getaddrinfo()
397 else if (strcmp(sp->s_proto, "udp") == 0) in getaddrinfo()
H A Dmachines.c72 serv1->s_proto = "udp"; /* protocol to use */ in getservbyname()
/freebsd/contrib/ntp/include/
H A Dntp_machine.h150 char *s_proto; /* protocol to use */ member
/freebsd/include/
H A Dnetdb.h124 char *s_proto; /* protocol to use */ member
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_addr.c841 se_fallback.s_proto = NULL; in BIO_lookup_ex()
872 se_fallback.s_proto = proto; in BIO_lookup_ex()
/freebsd/contrib/tcpdump/
H A Daddrtoname.c819 if (strcmp(sv->s_proto, "tcp") == 0) in init_servarray()
821 else if (strcmp(sv->s_proto, "udp") == 0) in init_servarray()
/freebsd/lib/libc/resolv/
H A Dres_mkupdate.c987 slp->proto = strdup(sp->s_proto); in res_buildservicelist()
1135 serv.s_proto = lp->proto; in cgetservbyport()
/freebsd/sbin/ipf/ipmon/
H A Dipmon.c408 if (s->s_proto == NULL) in init_tabs()
410 else if (!strcmp(s->s_proto, "tcp")) { in init_tabs()
414 } else if (!strcmp(s->s_proto, "udp")) { in init_tabs()
/freebsd/usr.bin/getent/
H A Dgetent.c509 se->s_name, ntohs(se->s_port), se->s_proto) in services()
/freebsd/contrib/libpcap/
H A Dgencode.c9272 struct slist *s, *s1, *s_proto; in gen_geneve_offsets() local
9360 s_proto = new_stmt(cstate, JMP(BPF_JEQ)); in gen_geneve_offsets()
9361 s_proto->s.k = ETHERTYPE_TEB; in gen_geneve_offsets()
9362 sappend(s, s_proto); in gen_geneve_offsets()
9366 s_proto->s.jt = s1; in gen_geneve_offsets()
9396 s_proto->s.jf = s1; in gen_geneve_offsets()