18 #ifndef HH_SENF_Socket_Protocols_Raw_LLAddressing_ 19 #define HH_SENF_Socket_Protocols_Raw_LLAddressing_ 1 22 #include <sys/socket.h> 23 #include <linux/if_packet.h> 112 void interface(std::string
const & iface);
121 struct ::sockaddr_ll addr_;
MACAddress public header.
Addressing policy supporting link-local addressing.
BSDSocketAddress public header.
std::string interface() const
Return interface name.
std::ostream & operator<<(std::ostream &os, LLSocketAddress const &llAddr)
Write link layer address.
static short const addressFamily
socklen_t const * socklen_p() const
MACAddress address() const
Return address.
LLSocketAddress & operator=(LLSocketAddress const &other)
Socket addressing, BSD style.
struct sockaddr const * sockaddr_p() const
PktType
Valid pkttype() values.
PktType pkttype() const
Return type of packet.
BSDAddressingPolicyMixin public header.
Template for generic AddressingPolicy implementation based on the BSD socket API. ...
unsigned protocol() const
Return address protocol (ethertype)
LLSocketAddress()
Create empty address.
unsigned arptype() const
Return the arptype field (ARP hardware type)