Skip to content

Commit

Permalink
Need to set family to bind
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Sep 10, 2012
1 parent 0bdf103 commit e48acdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sender/packetsocket.cc
Expand Up @@ -47,7 +47,7 @@ PacketSocket::PacketSocket( const std::string & s_interface,

/* Bind packet socket to interface */
struct sockaddr_ll sll;
memset( &sll, 0, sizeof( sll ) );
sll.sll_family = AF_PACKET;
sll.sll_protocol = htons( ETH_P_ALL );
sll.sll_ifindex = index;

Expand Down

0 comments on commit e48acdd

Please sign in to comment.