Lines Matching +full:0 +full:x8ff
48 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
52 if (ioctl(fd, SIOCRPHYSADDR, &phys) < 0) {
55 bcopy(&phys.current_pa[0], eap, EALEN);
56 rc = 0;
83 strlcpy(&ifrnit.ifr_name[0], ifname, IFNAMSIZ);
85 nit = open("/dev/nit", 0);
86 if (nit < 0) {
92 if (ioctl(nit, NIOCBIND, &ifrnit) < 0) {
96 if (ioctl(nit, SIOCGIFADDR, &ifrnit) < 0) {
100 bcopy(&ifrnit.ifr_addr.sa_data[0], eap, EALEN);
101 rc = 0;
102 } while (0);
129 fd = socket(AF_INET, SOCK_DGRAM, 0); in getether()
130 if (fd < 0) { in getether()
136 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 || in getether()
146 if (strcmp(ifname, ifrp->ifr_name) == 0 && in getether()
150 rc = 0; in getether()
180 #define NULL 0
199 if (fd < 0) {
205 unit = *p - '0';
206 *p = '\0';
209 if (fd < 0) {
222 if (unit >= 0) {
223 memset(tmpbuf, 0, sizeof(tmpbuf));
229 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
236 flags = 0;
237 if (getmsg(fd, &cbuf, NULL, &flags) < 0) {
254 } /* unit >= 0 */
265 memset(tmpbuf, 0, sizeof(tmpbuf));
268 dlp->bind_req.dl_sap = 0x8FF; /* XXX - Unused SAP */
271 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
278 flags = 0;
279 if (getmsg(fd, &cbuf, NULL, &flags) < 0) {
296 if (dlp->bind_ack.dl_addr_offset == 0) {
309 rc = 0;
344 memset(&phys, 0, sizeof(phys));
346 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
350 if (ioctl(fd, SIOCGIFHWADDR, &phys) < 0) {
354 rc = 0;
383 * c-brace-offset: 0