Lines Matching refs:dbg
135 static void (*dbg)(char *format, ...);
297 dbg("IP %s\n", inet_ntoa(ip->sin_addr));
302 dbg("Adapter index %d\n", req.ifr_ifindex);
308 dbg("MAC %02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
399 dbg("-x option : %s ", option);
425 dbg(" value : %-20s \n ", valstr);
538 dbg("Failed to create environment variables.");
541 dbg("Executing %s %s\n", script, name);
549 dbg("Fork failed.\n");
562 dbg("script complete.\n");
582 dbg("Opening raw socket on ifindex %d\n", state->ifindex);
586 dbg("MODE RAW : socket fail ERROR : %d\n", state->sockfd);
589 dbg("Got raw socket fd %d\n", state->sockfd);
596 dbg("MODE RAW : bind fail.\n");
602 dbg("MODE RAW : filter attach fail.\n");
604 dbg("MODE RAW : success\n");
617 dbg("Opening listen socket on *:%d %s\n", DHCPC_CLIENT_PORT, state->iface);
620 dbg("MODE APP : socket fail ERROR: %d\n", state->sockfd);
625 dbg("MODE APP : brodcast failed.\n");
640 dbg("MODE APP : bind failed.\n");
644 dbg("MODE APP : success\n");
656 dbg("\tPacket read error, ignoring\n");
660 dbg("\tPacket is too short, ignoring\n");
664 dbg("\tOversized packet, ignoring\n");
674 dbg("\tUnrelated/bogus packet, ignoring\n");
681 dbg("\tBad IP header checksum, ignoring\n");
689 dbg("\tPacket with bad UDP checksum received, ignoring\n");
694 dbg("\tPacket with bad magic, ignoring\n");
706 dbg("Packet read error, ignoring\n");
710 dbg("Packet with bad magic, ignoring\n");
728 dbg("SEND RAW: socket failed\n");
739 dbg("SEND RAW: bind failed\n");
762 if (result < 0) dbg("SEND RAW: PACKET send error\n");
773 dbg("SEND APP: sock failed.\n");
783 dbg("SEND APP: bind failed.\n");
791 dbg("SEND APP: connect failed.\n");
796 dbg("SEND APP: write failed error %d\n", ret);
799 dbg("SEND APP: write success wrote %d\n", ret);
809 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n");
816 dbg("signal pipe failed\n");
1276 dbg = dummy;
1277 if (toys.optflags & FLAG_v) dbg = xprintf;
1321 dbg("select wait ....\n");
1380 dbg("Entering renew state\n");
1391 dbg("Entering rebinding state\n");
1418 dbg("signal read failed.\n");
1445 dbg("main sock read\n");
1499 dbg("NACK received.\n");