Deleted Added
full compact
ifconfig.c (235671) ifconfig.c (236170)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

33 The Regents of the University of California. All rights reserved.\n";
34#endif /* not lint */
35
36#ifndef lint
37#if 0
38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
39#endif
40static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

33 The Regents of the University of California. All rights reserved.\n";
34#endif /* not lint */
35
36#ifndef lint
37#if 0
38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
39#endif
40static const char rcsid[] =
41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 235671 2012-05-19 23:25:57Z bz $";
41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 236170 2012-05-28 09:30:13Z bz $";
42#endif /* not lint */
43
44#include <sys/param.h>
45#include <sys/ioctl.h>
46#include <sys/socket.h>
47#include <sys/time.h>
48#include <sys/module.h>
49#include <sys/linker.h>

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

911#define IFFBITS \
912"\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\6SMART\7RUNNING" \
913"\10NOARP\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX\15LINK0\16LINK1\17LINK2" \
914"\20MULTICAST\22PPROMISC\23MONITOR\24STATICARP"
915
916#define IFCAPBITS \
917"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
918"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
42#endif /* not lint */
43
44#include <sys/param.h>
45#include <sys/ioctl.h>
46#include <sys/socket.h>
47#include <sys/time.h>
48#include <sys/module.h>
49#include <sys/linker.h>

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

911#define IFFBITS \
912"\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\6SMART\7RUNNING" \
913"\10NOARP\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX\15LINK0\16LINK1\17LINK2" \
914"\20MULTICAST\22PPROMISC\23MONITOR\24STATICARP"
915
916#define IFCAPBITS \
917"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
918"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
919"\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP"
919"\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP" \
920"\26IFCAP_RXCSUM_IPV6\27IFCAP_TXCSUM_IPV6"
920
921/*
922 * Print the status of the interface. If an address family was
923 * specified, show only it; otherwise, show them all.
924 */
925static void
926status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
927 struct ifaddrs *ifa)

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

1188 DEF_CMD("link1", IFF_LINK1, setifflags),
1189 DEF_CMD("-link1", -IFF_LINK1, setifflags),
1190 DEF_CMD("link2", IFF_LINK2, setifflags),
1191 DEF_CMD("-link2", -IFF_LINK2, setifflags),
1192 DEF_CMD("monitor", IFF_MONITOR, setifflags),
1193 DEF_CMD("-monitor", -IFF_MONITOR, setifflags),
1194 DEF_CMD("staticarp", IFF_STATICARP, setifflags),
1195 DEF_CMD("-staticarp", -IFF_STATICARP, setifflags),
921
922/*
923 * Print the status of the interface. If an address family was
924 * specified, show only it; otherwise, show them all.
925 */
926static void
927status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
928 struct ifaddrs *ifa)

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

1189 DEF_CMD("link1", IFF_LINK1, setifflags),
1190 DEF_CMD("-link1", -IFF_LINK1, setifflags),
1191 DEF_CMD("link2", IFF_LINK2, setifflags),
1192 DEF_CMD("-link2", -IFF_LINK2, setifflags),
1193 DEF_CMD("monitor", IFF_MONITOR, setifflags),
1194 DEF_CMD("-monitor", -IFF_MONITOR, setifflags),
1195 DEF_CMD("staticarp", IFF_STATICARP, setifflags),
1196 DEF_CMD("-staticarp", -IFF_STATICARP, setifflags),
1197 DEF_CMD("rxcsum6", IFCAP_RXCSUM_IPV6, setifcap),
1198 DEF_CMD("-rxcsum6", -IFCAP_RXCSUM_IPV6, setifcap),
1199 DEF_CMD("txcsum6", IFCAP_TXCSUM_IPV6, setifcap),
1200 DEF_CMD("-txcsum6", -IFCAP_TXCSUM_IPV6, setifcap),
1196 DEF_CMD("rxcsum", IFCAP_RXCSUM, setifcap),
1197 DEF_CMD("-rxcsum", -IFCAP_RXCSUM, setifcap),
1198 DEF_CMD("txcsum", IFCAP_TXCSUM, setifcap),
1199 DEF_CMD("-txcsum", -IFCAP_TXCSUM, setifcap),
1200 DEF_CMD("netcons", IFCAP_NETCONS, setifcap),
1201 DEF_CMD("-netcons", -IFCAP_NETCONS, setifcap),
1202 DEF_CMD("polling", IFCAP_POLLING, setifcap),
1203 DEF_CMD("-polling", -IFCAP_POLLING, setifcap),

--- 33 unchanged lines hidden ---
1201 DEF_CMD("rxcsum", IFCAP_RXCSUM, setifcap),
1202 DEF_CMD("-rxcsum", -IFCAP_RXCSUM, setifcap),
1203 DEF_CMD("txcsum", IFCAP_TXCSUM, setifcap),
1204 DEF_CMD("-txcsum", -IFCAP_TXCSUM, setifcap),
1205 DEF_CMD("netcons", IFCAP_NETCONS, setifcap),
1206 DEF_CMD("-netcons", -IFCAP_NETCONS, setifcap),
1207 DEF_CMD("polling", IFCAP_POLLING, setifcap),
1208 DEF_CMD("-polling", -IFCAP_POLLING, setifcap),

--- 33 unchanged lines hidden ---