patch-1.3.94 linux/include/net/ip_masq.h
Next file: linux/init/main.c
Previous file: linux/include/linux/ufs_fs_sb.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Apr 22 15:48:38 1996
- Orig file:
v1.3.93/linux/include/net/ip_masq.h
- Orig date:
Wed Apr 10 17:02:26 1996
diff -u --recursive --new-file v1.3.93/linux/include/net/ip_masq.h linux/include/net/ip_masq.h
@@ -27,6 +27,7 @@
#define IP_MASQ_F_NO_DADDR 0x08 /* no daddr yet */
#define IP_MASQ_F_HASHED 0x10 /* hashed entry */
#define IP_MASQ_F_SAW_FIN 0x20 /* tcp fin pkt seen */
+#define IP_MASQ_F_SAW_RST 0x40 /* tcp rst pkt seen */
#ifdef __KERNEL__
@@ -52,6 +53,7 @@
__u32 saddr, daddr, maddr; /* src, dst & masq addresses */
struct ip_masq_seq out_seq, in_seq;
struct ip_masq_app *app; /* bound ip_masq_app object */
+ void *app_data; /* Application private data */
unsigned flags; /* status flags */
};
@@ -101,6 +103,7 @@
struct ip_masq_app
{
struct ip_masq_app *next;
+ char *name; /* name of application proxy */
unsigned type; /* type = proto<<16 | port (host byte order)*/
int n_attach;
int (*masq_init_1) /* ip_masq initializer */
@@ -141,6 +144,11 @@
*/
extern int ip_masq_app_pkt_out(struct ip_masq *, struct sk_buff **skb_p, struct device *dev);
extern int ip_masq_app_pkt_in(struct ip_masq *, struct sk_buff **skb_p, struct device *dev);
+
+/*
+ * service routine(s).
+ */
+extern struct ip_masq * ip_masq_out_get_2(int protocol, __u32 s_addr, __u16 s_port, __u32 d_addr, __u16 d_port);
/*
* /proc/net entry
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this