Searched refs:s_proto (Results 1 – 4 of 4) sorted by relevance
/bionic/libc/dns/net/ |
D | getservent.c | 77 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/ |
D | netdb_test.cpp | 342 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/ |
D | netdb.h | 101 char *s_proto; /* protocol to use */ member
|
/bionic/tests/headers/posix/ |
D | netdb_h.c | 59 STRUCT_MEMBER(struct servent, char*, s_proto); in netdb_h()
|