1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 04:54:28 +01:00

IPv6::send now works on linux. BSD does not support sending IPv6 as the lowest layer.

This commit is contained in:
Matias Fontanini
2012-12-10 20:31:32 -03:00
parent c933faaf5e
commit 7a86012292
3 changed files with 6 additions and 1 deletions

View File

@@ -168,6 +168,7 @@ void IPv6::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *pa
}
}
#ifndef BSD
void IPv6::send(PacketSender &sender) {
struct sockaddr_in6 link_addr;
PacketSender::SocketType type = PacketSender::IPV6_SOCKET;
@@ -179,6 +180,7 @@ void IPv6::send(PacketSender &sender) {
sender.send_l3(*this, (struct sockaddr*)&link_addr, sizeof(link_addr), type);
}
#endif
void IPv6::add_ext_header(const ipv6_ext_header &header) {
ext_headers.push_back(header);