This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#cgo LDFLAGS: -lwrap | |
#include <stdlib.h> | |
#include <tcpd.h> | |
// Wrapper for request_init to avoid variadic arguments | |
// Initializes the request_info struct with daemon name and client address. | |
void my_request_init(struct request_info *req, const char *daemon, const char *client_addr) { |