Skip to content

Commit

Permalink
Fixes compilation with boost 1.67 on GNU/Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Sep 16, 2018
1 parent 2c5ccc7 commit aaa92c8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
9 changes: 6 additions & 3 deletions samples/asiotap/routes/routes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ int main()
tap_adapter.open();

asiotap::tap_adapter_configuration configuration {};
configuration.ipv4.network_address = { boost::asio::ip::address_v4::from_string("9.0.0.1"), 24 };
configuration.ipv4.remote_address = boost::asio::ip::address_v4::from_string("9.0.0.0");
configuration.ipv6.network_address = { boost::asio::ip::address_v6::from_string("fe80::c887:eb51:aaaa:bbbb"), 64 };
asiotap::ipv4_network_address ipv4 = { boost::asio::ip::address_v4::from_string("9.0.0.1"), 24 };
boost::asio::ip::address_v4 ipv4_remote = boost::asio::ip::address_v4::from_string("9.0.0.0");
asiotap::ipv6_network_address ipv6 = { boost::asio::ip::address_v6::from_string("fe80::c887:eb51:aaaa:bbbb"), 64 };
configuration.ipv4.network_address = ipv4;
configuration.ipv4.remote_address = ipv4_remote;
configuration.ipv6.network_address = ipv6;

tap_adapter.configure(configuration);

Expand Down
6 changes: 4 additions & 2 deletions samples/asiotap/tap/tap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,10 @@ int main()
tap_adapter.open();

asiotap::tap_adapter_configuration configuration {};
configuration.ipv4.network_address = { boost::asio::ip::address_v4::from_string("9.0.0.1"), 24 };
configuration.ipv6.network_address = { boost::asio::ip::address_v6::from_string("fe80::c887:eb51:aaaa:bbbb"), 64 };
asiotap::ipv4_network_address ipv4 = { boost::asio::ip::address_v4::from_string("9.0.0.1"), 24 };
asiotap::ipv6_network_address ipv6 = { boost::asio::ip::address_v6::from_string("fe80::c887:eb51:aaaa:bbbb"), 64 };
configuration.ipv4.network_address = ipv4;
configuration.ipv6.network_address = ipv6;

tap_adapter.configure(configuration);

Expand Down
9 changes: 6 additions & 3 deletions samples/asiotap/tun/tun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,12 @@ int main()
tap_adapter.open();

asiotap::tap_adapter_configuration configuration {};
configuration.ipv4.network_address = { boost::asio::ip::address_v4::from_string("9.0.0.1"), 24 };
configuration.ipv4.remote_address = boost::asio::ip::address_v4::from_string("9.0.0.0");
configuration.ipv6.network_address = { boost::asio::ip::address_v6::from_string("fe80::c887:eb51:aaaa:bbbb"), 64 };
asiotap::ipv4_network_address ipv4 = { boost::asio::ip::address_v4::from_string("9.0.0.1"), 24 };
boost::asio::ip::address_v4 ipv4_remote = boost::asio::ip::address_v4::from_string("9.0.0.0");
asiotap::ipv6_network_address ipv6 = { boost::asio::ip::address_v6::from_string("fe80::c887:eb51:aaaa:bbbb"), 64 };
configuration.ipv4.network_address = ipv4;
configuration.ipv4.remote_address = ipv4_remote;
configuration.ipv6.network_address = ipv6;

tap_adapter.configure(configuration);

Expand Down
1 change: 1 addition & 0 deletions samples/netlinkplus/routing/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ libraries = [
'netlinkplus',
'boost_system',
'boost_iostreams',
'pthread'
]

Import('env dirs name')
Expand Down

0 comments on commit aaa92c8

Please sign in to comment.