Deleted Added
full compact
ifieee80211.c (147795) ifieee80211.c (148001)
1/*
2 * Copyright 2001 The Aerospace Corporation. 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.

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright 2001 The Aerospace Corporation. 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.

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 147795 2005-07-06 15:39:11Z sam $
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 148001 2005-07-14 18:33:21Z rwatson $
28 */
29
30/*-
31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
32 * All rights reserved.
33 *
34 * This code is derived from software contributed to The NetBSD Foundation
35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,

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

1219
1220static void
1221printkey(const struct ieee80211req_key *ik)
1222{
1223 static const uint8_t zerodata[IEEE80211_KEYBUF_SIZE];
1224 int keylen = ik->ik_keylen;
1225 int printcontents;
1226
28 */
29
30/*-
31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
32 * All rights reserved.
33 *
34 * This code is derived from software contributed to The NetBSD Foundation
35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,

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

1219
1220static void
1221printkey(const struct ieee80211req_key *ik)
1222{
1223 static const uint8_t zerodata[IEEE80211_KEYBUF_SIZE];
1224 int keylen = ik->ik_keylen;
1225 int printcontents;
1226
1227 printcontents =
1227 printcontents = printkeys &&
1228 (memcmp(ik->ik_keydata, zerodata, keylen) != 0 || verbose);
1229 if (printcontents)
1230 LINE_BREAK();
1231 switch (ik->ik_type) {
1232 case IEEE80211_CIPHER_WEP:
1233 /* compatibility */
1234 LINE_CHECK("%cwepkey %u:%s", spacer, ik->ik_keyix+1,
1235 keylen <= 5 ? "40-bit" :

--- 590 unchanged lines hidden ---
1228 (memcmp(ik->ik_keydata, zerodata, keylen) != 0 || verbose);
1229 if (printcontents)
1230 LINE_BREAK();
1231 switch (ik->ik_type) {
1232 case IEEE80211_CIPHER_WEP:
1233 /* compatibility */
1234 LINE_CHECK("%cwepkey %u:%s", spacer, ik->ik_keyix+1,
1235 keylen <= 5 ? "40-bit" :

--- 590 unchanged lines hidden ---