Deleted Added
full compact
printcis.c (188633) printcis.c (250460)
1/*
2 * Copyright (c) 1995 Andrew McRae. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef lint
28static const char rcsid[] =
1/*
2 * Copyright (c) 1995 Andrew McRae. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef lint
28static const char rcsid[] =
29 "$FreeBSD: head/usr.sbin/dumpcis/printcis.c 188633 2009-02-15 03:21:37Z imp $";
29 "$FreeBSD: head/usr.sbin/dumpcis/printcis.c 250460 2013-05-10 16:41:26Z eadler $";
30#endif /* not lint */
31
32/*
33 * Code cleanup, bug-fix and extension
34 * by Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp>
35 */
36
37#include <err.h>

--- 926 unchanged lines hidden (view full) ---

964 case 4: /* Node ID */
965 if (len <= 2 || len < p[1] + 2)
966 goto err;
967 printf("\tNetwork node ID:");
968 for (i = 0; i < p[1]; i++)
969 printf(" %02x", p[i + 2]);
970 putchar('\n');
971 break;
30#endif /* not lint */
31
32/*
33 * Code cleanup, bug-fix and extension
34 * by Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp>
35 */
36
37#include <err.h>

--- 926 unchanged lines hidden (view full) ---

964 case 4: /* Node ID */
965 if (len <= 2 || len < p[1] + 2)
966 goto err;
967 printf("\tNetwork node ID:");
968 for (i = 0; i < p[1]; i++)
969 printf(" %02x", p[i + 2]);
970 putchar('\n');
971 break;
972 case 5: /* Connecter type */
972 case 5: /* Connector type */
973 if (len < 2)
974 goto err;
975 printf("\tNetwork connector: %s connector standard\n",
976 (p[1] == 0) ? "open" : "closed");
977 break;
978 err: /* warning */
979 printf("\tWrong length for network extension tuple\n");
980 return;

--- 125 unchanged lines hidden ---
973 if (len < 2)
974 goto err;
975 printf("\tNetwork connector: %s connector standard\n",
976 (p[1] == 0) ? "open" : "closed");
977 break;
978 err: /* warning */
979 printf("\tWrong length for network extension tuple\n");
980 return;

--- 125 unchanged lines hidden ---