patch-2.1.68 linux/include/net/ip.h
Next file: linux/include/net/ip_alias.h
Previous file: linux/include/net/inet_common.h
Back to the patch index
Back to the overall index
- Lines: 92
- Date:
Sun Nov 30 14:12:38 1997
- Orig file:
v2.1.67/linux/include/net/ip.h
- Orig date:
Mon Jul 7 16:04:03 1997
diff -u --recursive --new-file v2.1.67/linux/include/net/ip.h linux/include/net/ip.h
@@ -25,6 +25,8 @@
#include <linux/socket.h>
#include <linux/ip.h>
#include <linux/netdevice.h>
+#include <linux/inetdevice.h>
+#include <linux/in_route.h>
#include <net/route.h>
#ifndef _SNMP_H
@@ -38,21 +40,30 @@
struct ip_options opt; /* Compiled IP options */
u16 redirport; /* Redirect port */
unsigned char flags;
- char vif;
#define IPSKB_MASQUERADED 1
#define IPSKB_TRANSLATED 2
-#define IPSKB_TUNNELED 4
+#define IPSKB_FORWARDED 4
};
struct ipcm_cookie
{
u32 addr;
+ int oif;
struct ip_options *opt;
};
#define IPCB(skb) ((struct inet_skb_parm*)((skb)->cb))
+struct ip_ra_chain
+{
+ struct ip_ra_chain *next;
+ struct sock *sk;
+ void (*destructor)(struct sock *);
+};
+
+extern struct ip_ra_chain *ip_ra_chain;
+
/* IP flags. */
#define IP_CE 0x8000 /* Flag: "Congestion" */
#define IP_DF 0x4000 /* Flag: "Don't Fragment" */
@@ -134,20 +145,23 @@
int secure_redirects;
int rfc1620_redirects;
int rfc1812_filter;
- int addrmask_agent;
+ int send_redirects;
int log_martians;
int source_route;
int multicast_route;
- int bootp_agent;
+ int proxy_arp;
int bootp_relay;
- int fib_model;
+ int autoconfig;
int no_pmtu_disc;
};
extern struct ipv4_config ipv4_config;
+extern int sysctl_local_port_range[2];
#define IS_ROUTER (ip_statistics.IpForwarding == 1)
+extern int ip_call_ra_chain(struct sk_buff *skb);
+
/*
* Functions provided by ip_fragment.o
*/
@@ -165,7 +179,7 @@
* Functions provided by ip_options.c
*/
-extern void ip_options_build(struct sk_buff *skb, struct ip_options *opt, u32 daddr, u32 saddr, int is_frag);
+extern void ip_options_build(struct sk_buff *skb, struct ip_options *opt, u32 daddr, struct rtable *rt, int is_frag);
extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb);
extern void ip_options_fragment(struct sk_buff *skb);
extern int ip_options_compile(struct ip_options *opt, struct sk_buff *skb);
@@ -179,9 +193,12 @@
*/
extern void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb);
-extern int ip_cmsg_send(struct msghdr *msg, struct ipcm_cookie *ipc, struct device **devp);
+extern int ip_cmsg_send(struct msghdr *msg, struct ipcm_cookie *ipc);
extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
+extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(struct sock *));
extern int ipv4_backlog_rcv(struct sock *sk, struct sk_buff *skb);
+
+
#endif /* _IP_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov