Home | History | Annotate | Download | only in libpcap

Lines Matching full:setsockopt

1447 		if (setsockopt(handle->fd, SOL_SOCKET, SO_RCVBUF,
3407 if (setsockopt(sock_fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP,
3410 "setsockopt: %s", pcap_strerror(errno));
3420 if (setsockopt(sock_fd, SOL_PACKET, PACKET_AUXDATA, &val,
3423 "setsockopt: %s", pcap_strerror(errno));
3472 if (setsockopt(sock_fd, SOL_SOCKET, SO_TIMESTAMPNS, &nsec_tstamps, sizeof(nsec_tstamps)) < 0) {
3473 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "setsockopt: unable to set SO_TIMESTAMPNS");
3650 if (setsockopt(handle->fd, SOL_PACKET, PACKET_VERSION, &val,
3662 if (setsockopt(handle->fd, SOL_PACKET, PACKET_RESERVE, &val,
4098 if (setsockopt(handle->fd, SOL_PACKET, PACKET_TIMESTAMP,
4126 if (setsockopt(handle->fd, SOL_PACKET, PACKET_RX_RING,
4208 /* do not test for setsockopt failure, as we can't recover from any error */
4209 (void)setsockopt(handle->fd, SOL_PACKET, PACKET_RX_RING,
6501 if (setsockopt(handle->fd, SOL_SOCKET, SO_ATTACH_FILTER,
6557 ret = setsockopt(handle->fd, SOL_SOCKET, SO_ATTACH_FILTER,
6593 * setsockopt() barfs unless it get a dummy parameter.
6595 * as it has no idea that setsockopt() ignores its
6600 return setsockopt(handle->fd, SOL_SOCKET, SO_DETACH_FILTER,