Lines Matching defs:type
41 * type (STREAM, DGRAM and RAW) as supported.
45 * 5. Repeat for next domain family and type from (2) on.
74 int type;
77 { .type = SOCK_STREAM, .name = "SOCK_STREAM" },
78 { .type = SOCK_DGRAM, .name = "SOCK_DGRAM" },
79 { .type = SOCK_RAW, .name = "SOCK_RAW" },
97 so_setfib(int s, int i, u_int dom, u_int type)
105 t_type[type].name, i);
109 t_dom[dom].name, t_type[type].name, i, s, i);
112 t_type[type].name, i);
116 t_dom[dom].name, t_type[type].name, i, s, i,
120 t_type[type].name, i);
127 * Main test. Open socket given domain family and type. For each FIB, out of
131 t(u_int dom, u_int type)
136 if (t_dom[dom].domain == PF_ROUTE && t_type[type].type != SOCK_RAW)
138 if (t_dom[dom].domain == PF_LOCAL && t_type[type].type == SOCK_RAW)
142 s = socket(t_dom[dom].domain, t_type[type].type, 0);
145 t_dom[dom].name, t_type[type].name, strerror(errno));
151 so_setfib(s, i, dom, type);
155 so_setfib(s, (int)random(), dom, type);