| 175 | } |
| 176 | |
| 177 | static void reportNapi(struct ctx *ctx) |
| 178 | { |
| 179 | unsigned int napi_id = 0; |
| 180 | socklen_t len = sizeof(napi_id); |
| 181 | |
| 182 | getsockopt(ctx->sockfd, SOL_SOCKET, SO_INCOMING_NAPI_ID, &napi_id, &len); |
| 183 | if (napi_id) |
| 184 | printf(" napi id: %d\n", napi_id); |
| 185 | else |
| 186 | printf(" unassigned napi id\n"); |
| 187 | |
| 188 | ctx->napi_check = true; |
| 189 | } |
| 190 | |
| 191 | static void sendPing(struct ctx *ctx) |
| 192 | { |