Home
last modified time | relevance | path

Searched refs:protoent (Results 1 – 25 of 62) sorted by relevance

123

/freebsd-14-stable/lib/libc/tests/nss/
HDgetproto_test.c50 DECLARE_TEST_DATA(protoent)
51 DECLARE_TEST_FILE_SNAPSHOT(protoent)
52 DECLARE_1PASS_TEST(protoent)
53 DECLARE_2PASS_TEST(protoent)
55 static void clone_protoent(struct protoent *, struct protoent const *);
56 static int compare_protoent(struct protoent *, struct protoent *, void *);
57 static void dump_protoent(struct protoent *);
58 static void free_protoent(struct protoent *);
60 static void sdump_protoent(struct protoent *, char *, size_t);
61 static int protoent_read_snapshot_func(struct protoent *, char *);
[all …]
/freebsd-14-stable/lib/libc/net/
HDgetprotoent.c146 struct protoent *proto; in __proto_marshal_func()
150 struct protoent new_proto; in __proto_marshal_func()
169 proto = va_arg(ap, struct protoent *); in __proto_marshal_func()
173 desired_size = _ALIGNBYTES + sizeof(struct protoent) + sizeof(char *); in __proto_marshal_func()
194 memcpy(&new_proto, proto, sizeof(struct protoent)); in __proto_marshal_func()
198 p = buffer + sizeof(struct protoent) + sizeof(char *); in __proto_marshal_func()
199 memcpy(buffer + sizeof(struct protoent), &p, sizeof(char *)); in __proto_marshal_func()
223 memcpy(buffer, &new_proto, sizeof(struct protoent)); in __proto_marshal_func()
233 struct protoent *proto; in __proto_unmarshal_func()
255 proto = va_arg(ap, struct protoent *); in __proto_unmarshal_func()
[all …]
HDgetproto.c52 struct protoent pe; in files_getprotobynumber()
57 struct protoent *pptr; in files_getprotobynumber()
63 pptr = va_arg(ap, struct protoent *); in files_getprotobynumber()
88 *((struct protoent **)retval) = pptr; in files_getprotobynumber()
93 getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, in getprotobynumber_r()
94 size_t buflen, struct protoent **result) in getprotobynumber_r()
124 struct protoent *
128 struct protoent *rval; in getprotobynumber()
HDgetprotoname.c59 struct protoent pe; in files_getprotobyname()
65 struct protoent *pptr; in files_getprotobyname()
71 pptr = va_arg(ap, struct protoent *); in files_getprotobyname()
102 *((struct protoent **)retval) = pptr; in files_getprotobyname()
108 getprotobyname_r(const char *name, struct protoent *pptr, char *buffer, in getprotobyname_r()
109 size_t buflen, struct protoent **result) in getprotobyname_r()
138 struct protoent *
142 struct protoent *rval; in getprotobyname()
HDnetdb_private.h114 struct protoent proto;
127 int __copy_protoent(struct protoent *, struct protoent *, char *, size_t);
130 int __getprotoent_p(struct protoent *, struct protoent_data *);
/freebsd-14-stable/include/
HDnetdb.h128 struct protoent { struct
241 struct protoent *getprotobyname(const char *);
242 struct protoent *getprotobynumber(int);
243 struct protoent *getprotoent(void);
281 int getprotobyname_r(const char *, struct protoent *, char *,
282 size_t, struct protoent **);
283 int getprotobynumber_r(int, struct protoent *, char *, size_t,
284 struct protoent **);
285 int getprotoent_r(struct protoent *, char *, size_t,
286 struct protoent **);
/freebsd-14-stable/usr.bin/getaddrinfo/
HDgetaddrinfo.c189 struct protoent *protoent; in parse_protocol() local
206 protoent = getprotobyname(string); in parse_protocol()
207 if (protoent == NULL) in parse_protocol()
210 *protop = protoent->p_proto; in parse_protocol()
266 struct protoent *protoent; in printaddrinfo() local
290 protoent = getprotobynumber(ai->ai_protocol); in printaddrinfo()
291 if (protoent == NULL) in printaddrinfo()
294 n = printf(" %s", protoent->p_name); in printaddrinfo()
/freebsd-14-stable/lib/libcasper/services/cap_netdb/
HDcap_netdb.c45 static struct protoent *
48 struct protoent *pp; in protoent_unpack()
79 struct protoent *
98 protoent_pack(const struct protoent *pp, nvlist_t *nvl) in protoent_pack()
117 struct protoent *pp; in netdb_getprotobyname()
HDcap_netdb.h40 struct protoent *cap_getprotobyname(cap_channel_t *chan, const char *name);
/freebsd-14-stable/contrib/netbsd-tests/lib/libc/net/
HDt_getprotoent.c57 struct protoent *p; in ATF_TC_BODY()
86 struct protoent *p; in ATF_TC_BODY()
129 struct protoent *p; in ATF_TC_BODY()
172 struct protoent *p; in ATF_TC_BODY()
194 struct protoent *p; in ATF_TC_BODY()
HDt_protoent.sh28 atf_test_case protoent
90 atf_add_test_case protoent
HDh_protoent.c38 pserv(const struct protoent *prp) in pserv()
62 struct protoent *prp; in main()
/freebsd-14-stable/lib/libbluetooth/
HDbluetooth.c53 static struct protoent proto;
174 struct protoent *
177 struct protoent *p; in bt_getprotobyname()
194 struct protoent *
197 struct protoent *p; in bt_getprotobynumber()
208 struct protoent *
HDbluetooth.h81 struct protoent * bt_getprotobyname (char const *name);
82 struct protoent * bt_getprotobynumber (int proto);
83 struct protoent * bt_getprotoent (void);
/freebsd-14-stable/sys/netgraph/
HDng_cisco.c89 struct protoent { struct
101 struct protoent downstream; argument
102 struct protoent inet; /* IP information */
105 struct protoent inet6; /* IPv6 information */
106 struct protoent atalk; /* AppleTalk information */
107 struct protoent ipx; /* IPX information */
341 struct protoent *pep; in cisco_rcvdata()
416 struct protoent *pep; in cisco_disconnect()
441 struct protoent *pep; in cisco_input()
/freebsd-14-stable/crypto/heimdal/lib/roken/
HDgetaddrinfo.c55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype() local
57 if (protoent == NULL) in get_port_protocol_socktype()
60 proto_str = protoent->p_name; in get_port_protocol_socktype()
61 *protocol = protoent->p_proto; in get_port_protocol_socktype()
/freebsd-14-stable/contrib/libpcap/
HDnametoaddr.c511 struct protoent *p; in pcap_nametoproto()
516 struct protoent result_buf; in pcap_nametoproto()
532 struct protoent result_buf; in pcap_nametoproto()
540 struct protoent result_buf; in pcap_nametoproto()
/freebsd-14-stable/sbin/ipf/libipf/
HDgetproto.c18 struct protoent *p; in getproto()
HDgetportproto.c17 struct protoent *p; in getportproto()
HDprintproto.c16 printproto(struct protoent *pr, int p, ipnat_t *np) in printproto()
HDportname.c16 struct protoent *p = NULL; in portname()
HDgetport.c16 struct protoent *p; in getport()
/freebsd-14-stable/sbin/ipfw/
HDnat.c571 struct protoent *protoent; in setup_redir_proto() local
583 protoent = getprotobyname(**av); in setup_redir_proto()
584 if (protoent == NULL) in setup_redir_proto()
587 r->proto = protoent->p_proto; in setup_redir_proto()
640 struct protoent *p; in nat_show_cfg()
/freebsd-14-stable/lib/libcasper/services/cap_netdb/tests/
HDnetdb_test.c69 struct protoent *pp; in ATF_TC_BODY()
/freebsd-14-stable/contrib/tcp_wrappers/
HDfix_options.c44 struct protoent *ip; in fix_options()

123