diff options
author | Thomas Bushnell <thomas@gnu.org> | 1996-10-26 00:15:21 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1996-10-26 00:15:21 +0000 |
commit | bb23a3b7ac9c2d0e74613de904e5e8a19e5038b5 (patch) | |
tree | 288bb216bcea86853106d0eecf4b7be2edea53d4 | |
parent | caa1038bc432d53e68e7f7c8b588af0191ab02c6 (diff) |
Fri Oct 25 20:02:17 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* loopback.c (loopback_type_trans): New function.
(setup_loopback_device): Bother to mark interface up
too. Set LOOPBACK_DEV.type_trans.
-rw-r--r-- | pfinet/ChangeLog | 5 | ||||
-rw-r--r-- | pfinet/loopback.c | 8 |
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; |