コード例 #1
0
void save(Archive& ar, const address_type& ip, const unsigned int version)
{	
	unsigned long addr = ip.to_ulong();	
	ar & BOOST_SERIALIZATION_NVP(addr);
}
コード例 #2
0
ファイル: ipv6.cpp プロジェクト: CityOfSolitude/libtins
void IPv6::dst_addr(const address_type& new_dst_addr) {
    new_dst_addr.copy(header_.dst_addr);
}
コード例 #3
0
ファイル: dot11_data.cpp プロジェクト: jedahan/libtins
void Dot11Data::addr2(const address_type &new_addr2) {
    std::copy(new_addr2.begin(), new_addr2.end(), _ext_header.addr2);
}
コード例 #4
0
ファイル: ipv6.cpp プロジェクト: CityOfSolitude/libtins
void IPv6::src_addr(const address_type& new_src_addr) {
    new_src_addr.copy(header_.src_addr);
}
コード例 #5
0
ファイル: ethernetII.cpp プロジェクト: Temptationx/libtins
void EthernetII::src_addr(const address_type &new_src_addr) {
    new_src_addr.copy(_eth.src_mac);
}
コード例 #6
0
ファイル: ethernetII.cpp プロジェクト: Temptationx/libtins
void EthernetII::dst_addr(const address_type &new_dst_addr) {
    new_dst_addr.copy(_eth.dst_mac);
}
コード例 #7
0
ファイル: dot11_assoc.cpp プロジェクト: Iaroslav464/libtins
void Dot11ReAssocRequest::current_ap(const address_type &new_current_ap) {
    new_current_ap.copy(_body.current_ap);
}
コード例 #8
0
ファイル: dot11_base.cpp プロジェクト: MikeLing/libtins
void Dot11::addr1(const address_type &new_addr1) {
    std::copy(new_addr1.begin(), new_addr1.end(), _header.addr1);
}