1
0
mirror of https://code.semirocket.science/wrapsix synced 2024-11-24 22:51:02 +02:00

Missing include in transmitter.c

This commit is contained in:
Michal Zima 2012-03-26 12:58:18 +02:00
parent 476377526f
commit b9d5b08b0f

View File

@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <net/if.h> /* struct ifreq */
#include <netinet/if_ether.h> /* {P,A}F_PACKET, ETH_P_*, socket, SOCK_RAW, #include <netinet/if_ether.h> /* {P,A}F_PACKET, ETH_P_*, socket, SOCK_RAW,
* setsockopt, SOL_SOCKET, SO_BINDTODEVICE, sendto */ * setsockopt, SOL_SOCKET, SO_BINDTODEVICE, sendto */
#include <netinet/in.h> /* htons */ #include <netinet/in.h> /* htons */
@ -38,8 +39,6 @@ int sock;
*/ */
int transmission_init(void) int transmission_init(void)
{ {
unsigned char on = 1;
/* prepare settings for RAW socket */ /* prepare settings for RAW socket */
socket_address.sll_family = PF_PACKET; /* RAW communication */ socket_address.sll_family = PF_PACKET; /* RAW communication */
socket_address.sll_protocol = htons(ETH_P_IP); /* protocol above the ethernet layer */ socket_address.sll_protocol = htons(ETH_P_IP); /* protocol above the ethernet layer */