/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
public:
Eui48() { clear(); }
Eui48(const Eui48 &t) { memcpy(this, &t, sizeof(Eui48)); }
+ bool operator== (const Eui48 &t) const { return memcmp(eui, t.eui, SZ_EUI48_BUF) == 0; }
+ bool operator< (const Eui48 &t) const { return memcmp(eui, t.eui, SZ_EUI48_BUF) < 0; }
~Eui48() {}
const unsigned char *get(void);
* \retval false Conversion to ASCII failed.
* \retval true Conversion completed successfully.
*/
- bool encode(char *buf, const int len);
+ bool encode(char *buf, const int len) const;
// lookup an EUI-48 / MAC address via ARP
bool lookup(const Ip::Address &c);