• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/libpcap-48/libpcap/

Lines Matching refs:ioctl

134 #include <sys/ioctl.h>
375 * Wrap some ioctl calls
875 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) {
885 if (ioctl(sock_fd, SIOCSIFFLAGS, &ifr) == -1) {
957 * Bleah. There doesn't appear to be an ioctl to use to ask
979 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) != -1) {
1102 if (ioctl(handle->fd, SIOCGIFFLAGS, &ifr) == -1) {
1115 if (ioctl(handle->fd, SIOCSIFFLAGS,
1166 if (ioctl(handle->fd, SIOCGIFFLAGS, &ifr) != -1) {
1170 if (ioctl(handle->fd, SIOCSIFFLAGS, &ifr) == -1)
1183 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {
1199 if (ioctl(handle->fd, SIOCSIFFLAGS, &ifr) == -1) {
1721 if (ioctl(handle->fd, SIOCGSTAMPNS, &pcap_header.ts) == -1) {
1729 if (ioctl(handle->fd, SIOCGSTAMP, &pcap_header.ts) == -1) {
2128 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
2275 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
2707 * while there's a socket ioctl to *set* the encapsulation
2708 * type, there's no ioctl to *get* the encapsulation type.
3685 * like for instance with an ifreq ioctl();
3774 if (ioctl(handle->fd, SIOCSHWTSTAMP, &ifr) < 0) {
4655 if (ioctl(fd, SIOCGIFINDEX, &ifr) == -1) {
4738 if (ioctl(sock_fd, SIOCGIWNAME, &ireq) >= 0)
4879 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) != -1) {
4909 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) == -1) {
5079 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) == -1) {
5122 * on whether we have a special private ioctl or not.
5126 * We have the "monitor" private ioctl, but none of
5139 if (ioctl(sock_fd, cmd, &ireq) != -1) {
5167 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) {
5176 if (ioctl(sock_fd, SIOCSIFFLAGS, &ifr) == -1) {
5190 if (ioctl(sock_fd, SIOCSIWMODE, &ireq) == -1) {
5196 if (ioctl(sock_fd, SIOCSIFFLAGS, &ifr) == -1) {
5217 * We don't have any private ioctl to set the header.
5231 if (ioctl(sock_fd, cmd, &ireq) != -1)
5243 if (ioctl(sock_fd, cmd, &ireq) != -1)
5255 ioctl(sock_fd, cmd, &ireq);
5260 * The private ioctl failed.
5274 ioctl(sock_fd, cmd, &ireq);
5285 if (ioctl(sock_fd, SIOCGIWFREQ, &ireq) == -1) {
5304 ioctl(sock_fd, cmd, &ireq);
5318 ioctl(sock_fd, cmd, &ireq);
5331 ioctl(sock_fd, cmd, &ireq);
5345 ioctl(sock_fd, cmd, &ireq);
5358 ioctl(sock_fd, cmd, &ireq);
5367 if (ioctl(sock_fd, SIOCSIFFLAGS, &ifr) == -1) {
5375 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {
5457 if (ioctl(handle->fd, SIOCETHTOOL, &ifr) == -1) {
5468 "%s: SIOETHTOOL(%s) ioctl failed: %s", handle->opt.source,
5621 if (ioctl(handle->fd, SIOCGIFFLAGS, &ifr) == -1) {
5649 if (ioctl(handle->fd, SIOCSIFFLAGS, &ifr) == -1) {
5799 if (ioctl(fd, SIOCGIFMTU, &ifr) == -1) {
5819 if (ioctl(fd, SIOCGIFHWADDR, &ifr) == -1) {