patch-2.1.120 linux/net/ipv6/ip6_fw.c
Next file: linux/net/ipv6/ip6_input.c
Previous file: linux/net/ipv6/ip6_fib.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Thu Aug 27 19:33:09 1998
- Orig file:
v2.1.119/linux/net/ipv6/ip6_fw.c
- Orig date:
Tue Mar 17 22:18:16 1998
diff -u --recursive --new-file v2.1.119/linux/net/ipv6/ip6_fw.c linux/net/ipv6/ip6_fw.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: ip6_fw.c,v 1.9 1998/02/12 07:43:42 davem Exp $
+ * $Id: ip6_fw.c,v 1.10 1998/08/26 12:04:57 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -300,14 +300,19 @@
rl->info.uli_u.data = msg->u.data;
rtmsg.rtmsg_flags = RTF_NONEXTHOP|RTF_POLICY;
- rt = ip6_route_add(&rtmsg, &err);
+ err = ip6_route_add(&rtmsg);
- /* BUGGGG! rt can point to nowhere. */
- if (rt == NULL) {
+ if (err) {
ip6_fwrule_free(rl);
- return -ENOMEM;
+ return err;
}
+ /* The rest will not work for now. --ABK (989725) */
+
+#ifndef notdef
+ ip6_fwrule_free(rl);
+ return -EPERM;
+#else
rt->u.dst.error = -EPERM;
if (msg->policy == IP6_FW_ACCEPT) {
@@ -327,6 +332,7 @@
rt->rt6i_flowr = flow_clone((struct flow_rule *)rl);
return 0;
+#endif
}
static int ip6_fw_msgrcv(int unit, struct sk_buff *skb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov