search for: iface_struct

Displaying 1 result from an estimated 1 matches for "iface_struct".

2003 Feb 20
0
Netbios name service forwarding.
...cket.h> #include <netinet/in.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <string.h> #include <strings.h> #include <malloc.h> #include <net/if.h> #include <arpa/inet.h> #define NETBIOSPORT 137 typedef struct iface_struct { struct iface_struct *next; char *name; int fd; struct sockaddr_in me; struct sockaddr_in nmbd; struct sockaddr_in bcast; struct sockaddr_in addr_cache[0x10000]; } *iface; iface ifs; void open_if (char *name, int nb_port, int dm_port) { struct sockaddr_in me = { 0 }; iface i...