+void send_reboot() {
+ frame f;
+ struct sockaddr_ll addr;
+
+ memcpy(f.header, "\x00\xb0\xd0\x97\xbc\xac\x00\x03\x93\x87\x84\x8C\x13\x38", 14);
+ f.datalen = 0;
+ f.cmd = 0xFE;
+ addr.sll_family = AF_PACKET;
+ addr.sll_ifindex = 2;
+ addr.sll_halen = 0;
+
+ if (sendto(sendsock, &f, sizeof(frame), 0, (struct sockaddr *)&addr, sizeof(addr)) < sizeof(frame))
+ perror("sendto");
+}
+