Home
last modified time | relevance | path

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

/bionic/libc/dns/net/
Dgetservent.c77 rs->servent.s_proto = p2; in getservent_r()
89 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp"; in getservent_r()
129 if (strcmp(s->s_name, name) == 0 && (proto == NULL || strcmp(s->s_proto, proto) == 0)) { in getservbyname()
145 if (s->s_port == port && (proto == NULL || strcmp(s->s_proto, proto) == 0)) { in getservbyport()
/bionic/tests/
Dnetdb_test.cpp342 ASSERT_STREQ("tcp", s->s_proto); in TEST()
349 ASSERT_STREQ("tcp", s->s_proto); in TEST()
360 ASSERT_STREQ("udp", s->s_proto); in TEST()
369 ASSERT_STREQ("tcp", s->s_proto); in TEST()
376 ASSERT_STREQ("tcp", s->s_proto); in TEST()
387 ASSERT_STREQ("udp", s->s_proto); in TEST()
/bionic/libc/include/
Dnetdb.h101 char *s_proto; /* protocol to use */ member
/bionic/tests/headers/posix/
Dnetdb_h.c59 STRUCT_MEMBER(struct servent, char*, s_proto); in netdb_h()