• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/lib/

Lines Matching refs:sock

80   zclient->sock = -1;
123 if (zclient->sock >= 0)
125 close (zclient->sock);
126 zclient->sock = -1;
142 int sock;
147 sock = socket (AF_INET, SOCK_STREAM, 0);
148 if (sock < 0)
161 ret = connect (sock, (struct sockaddr *) &serv, sizeof (serv));
164 close (sock);
167 return sock;
177 int sock, len;
180 sock = socket (AF_UNIX, SOCK_STREAM, 0);
181 if (sock < 0)
194 ret = connect (sock, (struct sockaddr *) &addr, len);
197 close (sock);
200 return sock;
217 return writen (zclient->sock, s->data, 3);
235 if (zclient->sock >= 0)
244 zclient->sock = zclient_socket ();
246 zclient->sock = zclient_socket_un (ZEBRA_SERV_PATH);
248 if (zclient->sock < 0)
263 zlog_info ("zclient connect success with socket [%d]", zclient->sock);
276 zebra_redistribute_send (ZEBRA_REDISTRIBUTE_ADD, zclient->sock, i);
353 return writen (zclient->sock, s->data, stream_get_endp (s));
407 return writen (zclient->sock, s->data, stream_get_endp (s));
462 return writen (zclient->sock, s->data, stream_get_endp (s));
516 return writen (zclient->sock, s->data, stream_get_endp (s));
522 zebra_redistribute_send (int command, int sock, int type)
535 ret = writen (sock, s->data, 4);
715 int sock;
721 sock = THREAD_FD (thread);
729 nbytes = stream_read (zclient->ibuf, sock, ZEBRA_HEADER_SIZE);
736 zlog_info ("zclient connection closed socket [%d].", sock);
770 nbytes = stream_read (zclient->ibuf, sock, length);
775 zlog_info ("zclient connection closed socket [%d].", sock);
845 if (zclient->sock > 0)
846 zebra_redistribute_send (ZEBRA_REDISTRIBUTE_ADD, zclient->sock, type);
857 if (zclient->sock > 0)
858 zebra_redistribute_send (ZEBRA_REDISTRIBUTE_DELETE, zclient->sock, type);
869 if (zclient->sock > 0)
881 if (zclient->sock > 0)
913 thread_add_read (master, zclient_read, zclient, zclient->sock);