Deleted Added
full compact
ifmedia.c (194799) ifmedia.c (195618)
1/* $NetBSD: ifconfig.c,v 1.34 1997/04/21 01:17:58 lukem Exp $ */
1/* $NetBSD: ifconfig.c,v 1.34 1997/04/21 01:17:58 lukem Exp $ */
2/* $FreeBSD: head/sbin/ifconfig/ifmedia.c 194799 2009-06-23 23:49:52Z delphij $ */
2/* $FreeBSD: head/sbin/ifconfig/ifmedia.c 195618 2009-07-11 15:02:45Z rpaulo $ */
3
4/*
5 * Copyright (c) 1997 Jason R. Thorpe.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

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

99
100static struct ifmedia_description *get_toptype_desc(int);
101static struct ifmedia_type_to_subtype *get_toptype_ttos(int);
102static struct ifmedia_description *get_subtype_desc(int,
103 struct ifmedia_type_to_subtype *ttos);
104
105#define IFM_OPMODE(x) \
106 ((x) & (IFM_IEEE80211_ADHOC | IFM_IEEE80211_HOSTAP | \
3
4/*
5 * Copyright (c) 1997 Jason R. Thorpe.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

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

99
100static struct ifmedia_description *get_toptype_desc(int);
101static struct ifmedia_type_to_subtype *get_toptype_ttos(int);
102static struct ifmedia_description *get_subtype_desc(int,
103 struct ifmedia_type_to_subtype *ttos);
104
105#define IFM_OPMODE(x) \
106 ((x) & (IFM_IEEE80211_ADHOC | IFM_IEEE80211_HOSTAP | \
107 IFM_IEEE80211_IBSS | IFM_IEEE80211_WDS | IFM_IEEE80211_MONITOR))
107 IFM_IEEE80211_IBSS | IFM_IEEE80211_WDS | IFM_IEEE80211_MONITOR | \
108 IFM_IEEE80211_MBSS))
108#define IFM_IEEE80211_STA 0
109
110static void
111media_status(int s)
112{
113 struct ifmediareq ifmr;
114 int *media_list, i;
115

--- 716 unchanged lines hidden ---
109#define IFM_IEEE80211_STA 0
110
111static void
112media_status(int s)
113{
114 struct ifmediareq ifmr;
115 int *media_list, i;
116

--- 716 unchanged lines hidden ---