search for: siocgifaddr

Displaying 8 results from an estimated 8 matches for "siocgifaddr".

2006 Jan 26
0
smbclient failure
...306368 (0x285ee000) close(4) = 0 (0x0) open("/usr/local/lib/samba/valid.dat",0x0,00) = 4 (0x4) mmap(0x0,65536,(0x1)PROT_READ,(0x1)MAP_SHARED,4,0x0) = 677437440 (0x2860e000) close(4) = 0 (0x0) socket(0x2,0x2,0x0) = 4 (0x4) ioctl(4,SIOCGIFCONF,0xbfbfb090) = 0 (0x0) ioctl(4,SIOCGIFADDR,0xbfbfb0a0) = 0 (0x0) ioctl(4,SIOCGIFFLAGS,0xbfbfb0a0) = 0 (0x0) ioctl(4,SIOCGIFNETMASK,0xbfbfb0a0) = 0 (0x0) ioctl(4,SIOCGIFADDR,0xbfbfb0e8) = 0 (0x0) ioctl(4,SIOCGIFFLAGS,0xbfbfb0e8) = 0 (0x0) ioctl(4,SIOCGIFNETMASK,0xbfbfb0e8) = 0 (0x0) ioctl(4,SIOCGIFADDR,0xbfbfb114) = 0 (0x0)...
2003 Mar 04
0
smaba 3.0 - domain groups : OS info
...Re: [Samba] smaba 3.0 - domain groups > > > i use 'truss' to trace the system calls (nmbd proccess) after 'wbinfo -g' > request. it returns > > ioctl(14,SIOCGIFFLAGS,0xbfbfcdc0) = 0 (0x0) > ioctl(14,SIOCGIFNETMASK,0xbfbfcdc0) = 0 (0x0) > ioctl(14,SIOCGIFADDR,0xbfbfcde0) ERR#49 'Can't assign requested address' > ioctl(14,SIOCGIFADDR,0xbfbfce28) ERR#49 'Can't assign requested address' > ioctl(14,SIOCGIFADDR,0xbfbfce70) ERR#49 'Can't assign requested address' > close(14) = 0 (0x0) > gettimeofd...
2003 Apr 28
1
[PATCH] Get ipconfig compiling
Sort of a brown paper headgear issue. <b diff -Nru a/ipconfig/netdev.c b/ipconfig/netdev.c --- a/ipconfig/netdev.c Mon Apr 28 15:26:12 2003 +++ b/ipconfig/netdev.c Mon Apr 28 15:26:12 2003 @@ -205,7 +205,7 @@ if (netdev_gif_addr(&ifr, SIOCGIFADDR, &dev->ip_addr) == -1) { perror("SIOCGIFADDR"); dev->ip_addr = 0; - dev->ip_broadcase = 0; + dev->ip_broadcast = 0; dev->ip_netmask = 0; return 0; }
1998 Mar 29
1
Anyone using SCO 3.2v4.2 with Samba 1.9.18p3??
...OCGIFCONF, &ifc) < 0) { DEBUG(0,("SIOCGIFCONF: %s\n", strerror(errno))); } else { ifr = ifc.ifc_req; /* Loop through interfaces, looking for given IP address */ for (i = ifc.ifc_len / sizeof(struct ifreq); --i >= 0; ifr++) { #ifdef BSDI if (ioctl(sock, SIOCGIFADDR, ifr) < 0) break; #endif if (if_ipaddr->s_addr == (*(struct sockaddr_in *) &ifr->ifr_addr).sin_addr.s_addr) { found = True; break; } } My guess is that it isn't being passed the correct information... There is an SCO5 section in the source file too, b...
2003 Feb 20
0
Netbios name service forwarding.
...me[0], name); if (setsockopt (i->fd, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof (ifr))) { syslog (LOG_ERR, "Can't bind to interface %s: %m", name); exit (1); } bzero (&ifr, sizeof (ifr)); strcpy (&ifr.ifr_name[0], name); if (ioctl (i->fd, SIOCGIFADDR, &ifr)) { syslog (LOG_ERR, "Can't get ip address for interface %s: %m", name); exit (1); } bcopy (&ifr.ifr_addr, &i->me, sizeof (struct sockaddr_in)); i->me.sin_port = htons (nb_port); bzero (&ifr, sizeof (ifr)); strcpy (&ifr.ifr_...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...tting rest of data - sock = socket(AF_INET, SOCK_DGRAM, 0); - if (sock >= 0) { - // Get the IP Address - ifr.ifr_addr.sa_family = AF_INET; - strncpy(ifr.ifr_name, interface_c, IFNAMSIZ - 1); - cout << interface_c << endl; - - ret = ioctl(sock, SIOCGIFADDR, &ifr); - if(ret == 0) { - struct sockaddr_in *addr = (struct sockaddr_in *) &ifr.ifr_addr; - cout << "ip_address = " << inet_ntoa(addr->sin_addr) << endl; - ipaddr = inet_ntoa(addr->sin_addr); - } - els...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were removed with this patch. So, I'm pushing an updated patch that contains none of the HAL code in it.
1999 Aug 26
0
smbsh always segfaults
...AP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4006e000 read(6, "127.0.0.1\t\tlocalhost localhost"..., 4096) = 332 close(6) = 0 munmap(0x4006e000, 4096) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6 ioctl(6, SIOCGIFCONF, 0xbfffe7d0) = 0 ioctl(6, SIOCGIFADDR, 0xbfffe7f8) = 0 ioctl(6, SIOCGIFNETMASK, 0xbfffe7f8) = 0 close(6) = 0 stat("/etc/smb.conf", {st_mode=S_IFIFO|S_ISUID|0231, st_size=0, ...}) = 0 open("/etc/smb.conf", O_RDONLY|0x8000) = 6 fstat(6, {st_mode=S_IFIFO|S_ISUID|0231, st_size=0,...