Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Set the right ethertype in LLC header for PVC interf...
details: https://anonhg.NetBSD.org/src/rev/0cca0cb8cd02
branches: trunk
changeset: 481409:0cca0cb8cd02
user: enami <enami%NetBSD.org@localhost>
date: Fri Jan 28 13:27:29 2000 +0000
description:
Set the right ethertype in LLC header for PVC interface.
Pointed by onoe%sm.sony.co.jp@localhost
diffstat:
sys/net/if_atmsubr.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 895707110338 -r 0cca0cb8cd02 sys/net/if_atmsubr.c
--- a/sys/net/if_atmsubr.c Fri Jan 28 13:06:02 2000 +0000
+++ b/sys/net/if_atmsubr.c Fri Jan 28 13:27:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atmsubr.c,v 1.20 1999/07/01 08:12:48 itojun Exp $ */
+/* $NetBSD: if_atmsubr.c,v 1.21 2000/01/28 13:27:29 enami Exp $ */
/*
*
@@ -147,6 +147,10 @@
case AF_INET6:
#endif
#if defined(INET) || defined(INET6)
+ if (dst->sa_family == AF_INET)
+ etype = ETHERTYPE_IP;
+ else
+ etype = ETHERTYPE_IPV6;
# ifdef ATM_PVCEXT
if (ifp->if_flags & IFF_POINTOPOINT) {
/* pvc subinterface */
@@ -162,10 +166,6 @@
/* XXX: put ATMARP stuff here */
/* XXX: watch who frees m on failure */
}
- if (dst->sa_family == AF_INET)
- etype = ETHERTYPE_IP;
- else
- etype = ETHERTYPE_IPV6;
break;
#endif
Home |
Main Index |
Thread Index |
Old Index