Skip to content

Instantly share code, notes, and snippets.

@valstu
Last active June 10, 2022 10:11
Show Gist options
  • Save valstu/1f7d2963d9e342ea092286115274f3e3 to your computer and use it in GitHub Desktop.
Save valstu/1f7d2963d9e342ea092286115274f3e3 to your computer and use it in GitHub Desktop.
This hook just accepts any transaction coming through it
/**
* This hook just accepts any transaction coming through it
*/
#include "hookapi.h"
int64_t cbak(uint32_t reserved) {
return 0;
}
int64_t hook(uint32_t reserved ) {
TRACESTR("Accept.c: Called.");
accept (0,0,0);
_g(1,1); // every hook needs to import guard function and use it at least once
// unreachable
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment