Lines Matching refs:proto
59 PRProtoEnt proto;
64 rv = PR_GetProtoByName("tcp", buf, sizeof(buf), &proto);
69 else if (6 != proto.p_num) {
72 proto.p_num);
74 else PR_fprintf(prstderr, "tcp is protocol number %d\n", proto.p_num);
76 rv = PR_GetProtoByName("udp", buf, sizeof(buf), &proto);
81 else if (17 != proto.p_num) {
84 proto.p_num);
86 else PR_fprintf(prstderr, "udp is protocol number %d\n", proto.p_num);
88 rv = PR_GetProtoByNumber(6, buf, sizeof(buf), &proto);
93 else if (PL_strcmp("tcp", proto.p_name)) {
96 " on this platform\n", proto.p_name);
98 else PR_fprintf(prstderr, "Protocol number 6 is %s\n", proto.p_name);
100 rv = PR_GetProtoByNumber(17, buf, sizeof(buf), &proto);
105 else if (PL_strcmp("udp", proto.p_name)) {
108 " on this platform\n", proto.p_name);
110 else PR_fprintf(prstderr, "Protocol number 17 is %s\n", proto.p_name);