Changeset View
Changeset View
Standalone View
Standalone View
contrib/tcp_wrappers/fix_options.c
Show All 29 Lines | |||||
#include "tcpd.h" | #include "tcpd.h" | ||||
#define BUFFER_SIZE 512 /* Was: BUFSIZ */ | #define BUFFER_SIZE 512 /* Was: BUFSIZ */ | ||||
/* fix_options - get rid of IP-level socket options */ | /* fix_options - get rid of IP-level socket options */ | ||||
void | void | ||||
fix_options(request) | fix_options(struct request_info *request) | ||||
struct request_info *request; | |||||
{ | { | ||||
#ifdef IP_OPTIONS | #ifdef IP_OPTIONS | ||||
unsigned char optbuf[BUFFER_SIZE / 3], *cp; | unsigned char optbuf[BUFFER_SIZE / 3], *cp; | ||||
char lbuf[BUFFER_SIZE], *lp; | char lbuf[BUFFER_SIZE], *lp; | ||||
int optsize = sizeof(optbuf), ipproto; | int optsize = sizeof(optbuf), ipproto; | ||||
struct protoent *ip; | struct protoent *ip; | ||||
int fd = request->fd; | int fd = request->fd; | ||||
unsigned int opt; | unsigned int opt; | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |