summaryrefslogtreecommitdiff
path: root/exploits/7350855-netkit/netkit-telnet-0.16/telnet/netlink.h
blob: 9852b30444283bf18f78bb969a2a7015a9ff9a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

class netlink {
 protected:
    int net;
 public:
    netlink();
    ~netlink();

    int connect(int debug, struct hostent *host, 
		struct sockaddr_in *sin, 
		char *srcroute, int srlen,
		int tos);
    void close(int doshutdown);

    int setdebug(int debug);
    void oobinline();
    void nonblock(int onoff);

    int stilloob();

    int send(const char *buf, int len, int flags);

    int getfd();
};

extern netlink nlink;