Skip to content

Commit

Permalink
Sigh, more vendors linking against hidden APIs.
Browse files Browse the repository at this point in the history
Bug: 19762346
Change-Id: I6c0823bf69e3f7e854ffea7b5483d09bb7359ff6
  • Loading branch information
jsharkey committed Mar 16, 2015
1 parent 778b9c8 commit 3183729
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/sysutils/NetlinkEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ class NetlinkEvent {
char *mParams[NL_PARAMS_MAX];

public:
// STOPSHIP: remove these deprecated constants once we have updated prebuilts
const static int NlActionUnknown;
const static int NlActionAdd;
const static int NlActionRemove;
const static int NlActionChange;
const static int NlActionLinkDown;
const static int NlActionLinkUp;
const static int NlActionAddressUpdated;
const static int NlActionAddressRemoved;
const static int NlActionRdnss;
const static int NlActionRouteUpdated;
const static int NlActionRouteRemoved;

NetlinkEvent();
virtual ~NetlinkEvent();

Expand Down
13 changes: 13 additions & 0 deletions libsysutils/src/NetlinkEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ const int LOCAL_NFLOG_PACKET = NFNL_SUBSYS_ULOG << 8 | NFULNL_MSG_PACKET;
#include <netlink/handlers.h>
#include <netlink/msg.h>

// STOPSHIP: remove these deprecated constants once we have updated prebuilts
const int NetlinkEvent::NlActionUnknown = static_cast<int>(Action::kUnknown);
const int NetlinkEvent::NlActionAdd = static_cast<int>(Action::kAdd);
const int NetlinkEvent::NlActionRemove = static_cast<int>(Action::kRemove);
const int NetlinkEvent::NlActionChange = static_cast<int>(Action::kChange);
const int NetlinkEvent::NlActionLinkDown = static_cast<int>(Action::kLinkDown);
const int NetlinkEvent::NlActionLinkUp = static_cast<int>(Action::kLinkUp);
const int NetlinkEvent::NlActionAddressUpdated = static_cast<int>(Action::kAddressUpdated);
const int NetlinkEvent::NlActionAddressRemoved = static_cast<int>(Action::kAddressRemoved);
const int NetlinkEvent::NlActionRdnss = static_cast<int>(Action::kRdnss);
const int NetlinkEvent::NlActionRouteUpdated = static_cast<int>(Action::kRouteUpdated);
const int NetlinkEvent::NlActionRouteRemoved = static_cast<int>(Action::kRouteRemoved);

NetlinkEvent::NetlinkEvent() {
mAction = Action::kUnknown;
memset(mParams, 0, sizeof(mParams));
Expand Down

0 comments on commit 3183729

Please sign in to comment.