summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pfinet/ChangeLog5
-rw-r--r--pfinet/loopback.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/pfinet/ChangeLog b/pfinet/ChangeLog
index 77f18ebb..667fe545 100644
--- a/pfinet/ChangeLog
+++ b/pfinet/ChangeLog
@@ -1,7 +1,8 @@
Fri Oct 25 20:02:17 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
- * loopback.c (setup_loopback_device): Bother to mark interface up
- too.
+ * loopback.c (loopback_type_trans): New function.
+ (setup_loopback_device): Bother to mark interface up
+ too. Set LOOPBACK_DEV.type_trans.
Thu Oct 24 22:38:55 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
diff --git a/pfinet/loopback.c b/pfinet/loopback.c
index 02bf6eeb..8800fe1d 100644
--- a/pfinet/loopback.c
+++ b/pfinet/loopback.c
@@ -49,6 +49,12 @@ loopback_xmit (struct sk_buff *skb, struct device *dev)
return 0;
}
+int
+loopback_type_trans (struct sk_buff *skb, struct device *dev)
+{
+ return htons (ETH_P_IP);
+}
+
void
setup_loopback_device (char *name)
@@ -64,7 +70,7 @@ setup_loopback_device (char *name)
loopback_dev.hard_start_xmit = loopback_xmit;
loopback_dev.hard_header = 0;
loopback_dev.rebuild_header = 0;
- loopback_dev.type_trans = 0;
+ loopback_dev.type_trans = loopback_type_trans;
loopback_dev.get_stats = 0;
loopback_dev.set_multicast_list = 0;