Module Name: src
Committed By: plunky
Date: Sun Nov 22 18:53:44 UTC 2009
Modified Files:
src/usr.bin/sdpquery: print.c
Log Message:
add translation for "802.1Q" ethertype
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/sdpquery/print.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/sdpquery/print.c
diff -u src/usr.bin/sdpquery/print.c:1.4 src/usr.bin/sdpquery/print.c:1.5
--- src/usr.bin/sdpquery/print.c:1.4 Thu Aug 20 11:07:42 2009
+++ src/usr.bin/sdpquery/print.c Sun Nov 22 18:53:44 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.4 2009/08/20 11:07:42 plunky Exp $ */
+/* $NetBSD: print.c,v 1.5 2009/11/22 18:53:44 plunky Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: print.c,v 1.4 2009/08/20 11:07:42 plunky Exp $");
+__RCSID("$NetBSD: print.c,v 1.5 2009/11/22 18:53:44 plunky Exp $");
#include <ctype.h>
#include <iconv.h>
@@ -1374,6 +1374,7 @@
switch (v) {
case 0x0800: printf("IPv4"); break;
case 0x0806: printf("ARP"); break;
+ case 0x8100: printf("802.1Q"); break;
case 0x86dd: printf("IPv6"); break;
default: printf("0x%04x", v); break;
}