Lines Matching refs:handle

186 	struct nl_sock *handle;
222 handle = nl_socket_alloc();
223 if ((ret = nfnl_connect(handle))) {
224 NL_DBG(2, "Can't connect handle: %s line: %d\n",
229 if ((ret = nl_send_auto_complete(handle, msg)) < 0) {
235 nl_socket_modify_cb(handle, NL_CB_VALID, NL_CB_CUSTOM, valid_input, NULL);
236 ret = nl_recvmsgs_default(handle);
243 nl_close(handle);
244 nl_socket_free(handle);
253 struct nl_sock *handle;
283 handle = nl_socket_alloc();
284 if ((ret = nfnl_connect(handle))) {
285 NL_DBG(2, "Can't connect handle: %s line: %d\n",
290 if ((ret = nl_send_auto_complete(handle, msg)) < 0) {
296 ret = nl_recvmsgs_default(handle);
303 nl_close(handle);
304 nl_socket_free(handle);
328 struct nl_sock *handle;
364 handle = nl_socket_alloc();
365 if ((ret = nfnl_connect(handle))) {
366 NL_DBG(2, "Can't connect handle: %s line: %d\n",
371 if ((ret = nl_send_auto_complete(handle, msg)) < 0) {
377 ret = nl_recvmsgs_default(handle);
384 nl_close(handle);
385 nl_socket_free(handle);
396 struct nl_sock *handle;
444 handle = nl_socket_alloc();
446 if (handle) {
456 nl_socket_set_cb(handle,cb);
461 if ((ret = nfnl_connect(handle))) {
462 NL_DBG(2, "Can't connect handle: %s line: %d\n",
467 if ((ret = nl_send_auto_complete(handle, msg)) < 0) {
473 nl_socket_modify_cb(handle, NL_CB_VALID, NL_CB_CUSTOM, valid_input, NULL);
474 ret = nl_recvmsgs_default(handle);
481 nl_close(handle);
482 nl_socket_free(handle);
491 struct nl_sock *handle;
518 handle = nl_socket_alloc();
519 if ((ret = nfnl_connect(handle))) {
520 NL_DBG(2, "Can't connect handle: %s line: %d\n",
525 if ((ret = nl_send_auto_complete(handle, msg)) < 0) {
531 ret = nl_recvmsgs_default(handle);
538 nl_close(handle);
539 nl_socket_free(handle);