Searched refs:proto (Results 51 - 75 of 462) sorted by relevance

1234567891011>>

/freebsd-10.0-release/contrib/traceroute/
H A Drip_output.c12 short proto = rp->rcb_proto.sp_protocol; local
14 short proto = so->so_proto->pr_protocol; local
21 if (proto != IPPROTO_RAW) {
45 ip->ip_p = proto;
/freebsd-10.0-release/sbin/hastd/
H A Dhast_proto.h38 #include <proto.h>
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dgetport.c14 int getport(fr, name, port, proto)
16 char *name, *proto;
24 s = getservbyname(name, proto);
/freebsd-10.0-release/contrib/libpcap/
H A Dnametoaddr.c86 #include "os-proto.h"
171 pcap_nametoport(const char *name, int *port, int *proto) argument
180 * same port number, change the proto to PROTO_UNDEF
189 *proto = IPPROTO_TCP;
192 *proto = PROTO_UNDEF;
205 *proto = IPPROTO_UDP;
212 *proto = PROTO_UNDEF;
225 pcap_nametoportrange(const char *name, int *port1, int *port2, int *proto) argument
242 if (pcap_nametoport(cpy, port1, proto) == 0) {
246 save_proto = *proto;
[all...]
H A Dgencode.c129 #include "os-proto.h"
1348 off_macpl = -1; /* L3 proto location dep. on cookie type */
1349 off_nl = -1; /* L3 proto location dep. on cookie type */
1729 * "proto" is an Ethernet type value, if > ETHERMTU, or an LLC SAP
1736 gen_ether_linktype(proto)
1737 register int proto;
1741 switch (proto) {
1761 ((proto << 8) | proto));
1860 if (proto
6021 int proto = q.proto; local
6391 int proto = q.proto; local
[all...]
/freebsd-10.0-release/lib/libc/rpc/
H A Dgetrpcport.c57 getrpcport(host, prognum, versnum, proto)
59 int prognum, versnum, proto;
77 (u_int)proto));
/freebsd-10.0-release/sys/netinet/
H A Dip_encap.c122 int proto; local
129 proto = ip->ip_p;
146 if (ep->proto >= 0 && ep->proto != proto)
149 prio = (*ep->func)(m, off, proto, ep->arg);
204 encap6_input(struct mbuf **mp, int *offp, int proto) argument
230 if (ep->proto >= 0 && ep->proto != proto)
285 encap_attach(int af, int proto, const struct sockaddr *sp, const struct sockaddr *sm, const struct sockaddr *dp, const struct sockaddr *dm, const struct protosw *psw, void *arg) argument
341 encap_attach_func(int af, int proto, int (*func)(const struct mbuf *, int, int, void *), const struct protosw *psw, void *arg) argument
[all...]
H A Dip_gre.c97 * routine is called whenever IP gets a packet with proto type
104 int proto; local
106 proto = (mtod(m, struct ip *))->ip_p;
108 m = gre_input2(m, off, proto);
121 * and NULL if it needs no further processing. proto is the protocol
125 gre_input2(struct mbuf *m ,int hlen, u_char proto) argument
133 if ((sc = gre_lookup(m, proto)) == NULL) {
148 switch (proto) {
253 if (ntohs(mip->mh.proto) & MOB_H_SBIT) {
268 mip->mi.ip_p = (ntohs(mip->mh.proto) >>
316 gre_lookup(struct mbuf *m, u_int8_t proto) argument
[all...]
H A Dip_encap.h41 int proto; /* -1: don't care, I'll check myself */ member in struct:encaptab
/freebsd-10.0-release/lib/libc/net/
H A Dgetproto.c100 getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, argument
122 defaultsrc, proto, pptr, buffer, buflen, &ret_errno);
132 getprotobynumber(int proto) argument
139 if (getprotobynumber_r(proto, &pd->proto, pd->data, sizeof(pd->data),
H A Dgetprotoent.c93 int proto; local
117 proto = va_arg(ap, int);
126 memcpy(buffer + sizeof(enum nss_lookup_type), &proto,
148 struct protoent *proto; local
171 proto = va_arg(ap, struct protoent *);
176 if (proto->p_name != NULL)
177 desired_size += strlen(proto->p_name) + 1;
179 if (proto->p_aliases != NULL) {
181 for (alias = proto->p_aliases; *alias; ++alias) {
196 memcpy(&new_proto, proto, sizeo
235 struct protoent *proto; local
[all...]
H A Dgetservent.c144 const char *proto; member in struct:key
296 char *proto; local
309 proto = NULL;
314 proto = va_arg(ap, char *);
318 proto = va_arg(ap, char *);
368 compat_src, name, proto, serv, buffer,
374 compat_src, port, proto, serv, buffer,
409 if (proto == 0 || strcmp(serv->s_proto, proto) == 0)
416 if (proto
501 char *proto; local
673 char *proto; local
867 char *proto; local
943 char *proto; local
1044 char *proto; local
1109 getservbyname_r(const char *name, const char *proto, struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument
1146 getservbyport_r(int port, const char *proto, struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument
1343 getservbyname(const char *name, const char *proto) argument
1354 getservbyport(int port, const char *proto) argument
[all...]
/freebsd-10.0-release/sys/netipsec/
H A Dkey.h54 u_int8_t proto, u_int dir, const char*, int);
66 #define KEY_ALLOCSP2(spi, dst, proto, dir) \
67 key_allocsp2(spi, dst, proto, dir, __FILE__, __LINE__)
82 #define KEY_ALLOCSA(dst, proto, spi) \
83 key_allocsa(dst, proto, spi, __FILE__, __LINE__)
/freebsd-10.0-release/usr.sbin/ppp/
H A Dncp.h98 #define isncp(proto) ((proto) == PROTO_IPCP || (proto) == PROTO_IPV6CP)
100 #define isncp(proto) ((proto) == PROTO_IPCP)
H A Dvjcomp.c47 #include "proto.h"
74 int pri __unused, u_short *proto)
82 if (*proto == PROTO_IP && pip->ip_p == IPPROTO_TCP &&
93 *proto = PROTO_VJUNCOMP;
99 *proto = PROTO_VJCOMP;
166 u_short *proto)
170 switch (*proto) {
183 *proto = PROTO_IP;
73 vj_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, int pri __unused, u_short *proto) argument
165 vj_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, u_short *proto) argument
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-chdlc.c68 u_int proto; local
70 proto = EXTRACT_16BITS(&p[2]);
74 tok2str(ethertype_values, "Unknown", proto),
75 proto,
82 switch (proto) {
114 printf("unknown CHDLC protocol (0x%04x)", proto);
H A Dprint-vjc.c80 * We therefore leave "proto" - which is the PPP protocol type - in place,
85 vjc_print(register const char *bp, u_short proto _U_)
/freebsd-10.0-release/sys/netgraph/
H A Dng_ppp.c72 * ipx -> proto -> ipx
291 static int ng_ppp_proto_recv(node_p node, item_p item, uint16_t proto,
293 static int ng_ppp_hcomp_xmit(node_p node, item_p item, uint16_t proto);
294 static int ng_ppp_hcomp_recv(node_p node, item_p item, uint16_t proto,
296 static int ng_ppp_comp_xmit(node_p node, item_p item, uint16_t proto);
297 static int ng_ppp_comp_recv(node_p node, item_p item, uint16_t proto,
299 static int ng_ppp_crypt_xmit(node_p node, item_p item, uint16_t proto);
300 static int ng_ppp_crypt_recv(node_p node, item_p item, uint16_t proto,
302 static int ng_ppp_mp_xmit(node_p node, item_p item, uint16_t proto);
303 static int ng_ppp_mp_recv(node_p node, item_p item, uint16_t proto,
850 uint16_t proto; local
875 ng_ppp_bypass(node_p node, item_p item, uint16_t proto, uint16_t linkNum) argument
904 ng_ppp_proto_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum) argument
956 ng_ppp_hcomp_xmit(node_p node, item_p item, uint16_t proto) argument
1022 ng_ppp_hcomp_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum) argument
1071 ng_ppp_comp_xmit(node_p node, item_p item, uint16_t proto) argument
1106 uint16_t proto; local
1136 ng_ppp_comp_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum) argument
1177 uint16_t proto; local
1203 ng_ppp_crypt_xmit(node_p node, item_p item, uint16_t proto) argument
1246 ng_ppp_crypt_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum) argument
1277 uint16_t proto; local
1303 ng_ppp_link_xmit(node_p node, item_p item, uint16_t proto, uint16_t linkNum, int plen) argument
1396 uint16_t proto; local
1506 ng_ppp_mp_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum) argument
1813 uint16_t proto; local
1880 uint16_t proto; local
1974 ng_ppp_mp_xmit(node_p node, item_p item, uint16_t proto) argument
2404 ng_ppp_addproto(struct mbuf *m, uint16_t proto, int compOK) argument
2421 ng_ppp_cutproto(struct mbuf *m, uint16_t *proto) argument
[all...]
/freebsd-10.0-release/usr.sbin/rpc.ypupdated/
H A Dypupdated_main.c191 int proto = 0; local
225 proto = 0;
245 proto = IPPROTO_UDP;
246 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) {
259 proto = IPPROTO_TCP;
260 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) {
/freebsd-10.0-release/contrib/wpa/wpa_supplicant/
H A Dwpa_supplicant.conf95 # key_mgmt, pairwise, group, proto variables
467 # proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not
505 # proto: list of accepted protocols
867 proto=WPA
878 proto=WPA
890 proto=RSN
966 proto=WPA RSN
1097 proto=WPA
1128 proto=RSN
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dgetnameinfo.c73 const char *proto = "tcp"; local
77 proto = "udp";
79 se = getservbyport (port, proto);
/freebsd-10.0-release/contrib/llvm/tools/clang/utils/TableGen/
H A DNeonEmitter.cpp877 // If NormedProto.size() == 4 and the first two proto characters are the
941 // We first normalize our proto, since we only need to emit 4
942 // different types of checks, yet have more than 4 proto types
1136 static bool UseMacro(const std::string &proto) { argument
1140 if (proto.find('i') != std::string::npos)
1145 if (proto.find('p') != std::string::npos ||
1146 proto.find('c') != std::string::npos)
1155 static bool MacroArgUsedDirectly(const std::string &proto, unsigned i) { argument
1157 return (proto[i] == 'i' || proto[
1161 GenArgs(const std::string &proto, StringRef typestr) argument
1189 GenMacroLocals(const std::string &proto, StringRef typestr) argument
1265 GenOpString(OpKind op, const std::string &proto, StringRef typestr) argument
1494 GetNeonEnum(const std::string &proto, StringRef typestr) argument
1541 GenBuiltin(const std::string &name, const std::string &proto, StringRef typestr, ClassKind ck) argument
1657 GenBuiltinDef(const std::string &name, const std::string &proto, StringRef typestr, ClassKind ck) argument
1682 GenIntrinsic(const std::string &name, const std::string &proto, StringRef outTypeStr, StringRef inTypeStr, OpKind kind, ClassKind classKind) argument
2148 GenTest(const std::string &name, const std::string &proto, StringRef outTypeStr, StringRef inTypeStr, bool isShift, bool isHiddenLOp, ClassKind ck, const std::string &InstName) argument
[all...]
/freebsd-10.0-release/contrib/sendmail/contrib/
H A Dsmcontrol.pl75 my $proto = getprotobyname('ip');
79 socket(SOCK, PF_UNIX, SOCK_STREAM, $proto) or return undef;
116 my $proto = getprotobyname("tcp");
120 socket(SOCK, PF_INET, SOCK_STREAM, $proto) or return undef;
/freebsd-10.0-release/sys/net/
H A Dnetisr.h49 * a value 0 < proto < 32; we currently further limit at compile-time to 16
86 * net.isr.proto.
221 int netisr_dispatch(u_int proto, struct mbuf *m);
222 int netisr_dispatch_src(u_int proto, uintptr_t source, struct mbuf *m);
223 int netisr_queue(u_int proto, struct mbuf *m);
224 int netisr_queue_src(u_int proto, uintptr_t source, struct mbuf *m);
/freebsd-10.0-release/usr.sbin/nscd/agents/
H A Dservices.c129 char *proto = NULL; local
156 proto = name + size2;
158 proto = NULL;
172 proto = calloc(1, size + 1);
173 assert(proto != NULL);
174 memcpy(proto, key + sizeof(enum nss_lookup_type) +
185 result = getservbyname(name, proto);
189 result = getservbyport(port, proto);
190 free(proto);

Completed in 247 milliseconds

1234567891011>>