| 35 | #include "ff_hook.h" |
| 36 | |
| 37 | int ff_hook_socket(int domain, int type, int protocol) |
| 38 | { |
| 39 | if ((AF_INET != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) { |
| 40 | return mt_real_func(socket)(domain, type, protocol); |
| 41 | } |
| 42 | return ff_socket(domain, type, protocol); |
| 43 | } |
| 44 | |
| 45 | int ff_hook_close(int fd) |
| 46 | { |