ifconfig.c (7648bc9fee8dec6cb3c4941e0165a930fbe8dcb0) ifconfig.c (82334850ea451f7f6903be20e4836118e6a77460)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1983, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

1252"\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\7RUNNING" \
1253"\10NOARP\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX\15LINK0\16LINK1\17LINK2" \
1254"\20MULTICAST\22PPROMISC\23MONITOR\24STATICARP"
1255
1256#define IFCAPBITS \
1257"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
1258"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
1259"\17TOE4\20TOE6\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP" \
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1983, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

1252"\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\7RUNNING" \
1253"\10NOARP\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX\15LINK0\16LINK1\17LINK2" \
1254"\20MULTICAST\22PPROMISC\23MONITOR\24STATICARP"
1255
1256#define IFCAPBITS \
1257"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
1258"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
1259"\17TOE4\20TOE6\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP" \
1260"\26RXCSUM_IPV6\27TXCSUM_IPV6\31TXRTLMT\32HWRXTSTMP"
1260"\26RXCSUM_IPV6\27TXCSUM_IPV6\31TXRTLMT\32HWRXTSTMP\33NOMAP"
1261
1262/*
1263 * Print the status of the interface. If an address family was
1264 * specified, show only it; otherwise, show them all.
1265 */
1266static void
1267status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
1268 struct ifaddrs *ifa)

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

1552 DEF_CMD("link0", IFF_LINK0, setifflags),
1553 DEF_CMD("-link0", -IFF_LINK0, setifflags),
1554 DEF_CMD("link1", IFF_LINK1, setifflags),
1555 DEF_CMD("-link1", -IFF_LINK1, setifflags),
1556 DEF_CMD("link2", IFF_LINK2, setifflags),
1557 DEF_CMD("-link2", -IFF_LINK2, setifflags),
1558 DEF_CMD("monitor", IFF_MONITOR, setifflags),
1559 DEF_CMD("-monitor", -IFF_MONITOR, setifflags),
1261
1262/*
1263 * Print the status of the interface. If an address family was
1264 * specified, show only it; otherwise, show them all.
1265 */
1266static void
1267status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
1268 struct ifaddrs *ifa)

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

1552 DEF_CMD("link0", IFF_LINK0, setifflags),
1553 DEF_CMD("-link0", -IFF_LINK0, setifflags),
1554 DEF_CMD("link1", IFF_LINK1, setifflags),
1555 DEF_CMD("-link1", -IFF_LINK1, setifflags),
1556 DEF_CMD("link2", IFF_LINK2, setifflags),
1557 DEF_CMD("-link2", -IFF_LINK2, setifflags),
1558 DEF_CMD("monitor", IFF_MONITOR, setifflags),
1559 DEF_CMD("-monitor", -IFF_MONITOR, setifflags),
1560 DEF_CMD("nomap", IFCAP_NOMAP, setifcap),
1561 DEF_CMD("-nomap", -IFCAP_NOMAP, setifcap),
1560 DEF_CMD("staticarp", IFF_STATICARP, setifflags),
1561 DEF_CMD("-staticarp", -IFF_STATICARP, setifflags),
1562 DEF_CMD("rxcsum6", IFCAP_RXCSUM_IPV6, setifcap),
1563 DEF_CMD("-rxcsum6", -IFCAP_RXCSUM_IPV6, setifcap),
1564 DEF_CMD("txcsum6", IFCAP_TXCSUM_IPV6, setifcap),
1565 DEF_CMD("-txcsum6", -IFCAP_TXCSUM_IPV6, setifcap),
1566 DEF_CMD("rxcsum", IFCAP_RXCSUM, setifcap),
1567 DEF_CMD("-rxcsum", -IFCAP_RXCSUM, setifcap),

--- 45 unchanged lines hidden ---
1562 DEF_CMD("staticarp", IFF_STATICARP, setifflags),
1563 DEF_CMD("-staticarp", -IFF_STATICARP, setifflags),
1564 DEF_CMD("rxcsum6", IFCAP_RXCSUM_IPV6, setifcap),
1565 DEF_CMD("-rxcsum6", -IFCAP_RXCSUM_IPV6, setifcap),
1566 DEF_CMD("txcsum6", IFCAP_TXCSUM_IPV6, setifcap),
1567 DEF_CMD("-txcsum6", -IFCAP_TXCSUM_IPV6, setifcap),
1568 DEF_CMD("rxcsum", IFCAP_RXCSUM, setifcap),
1569 DEF_CMD("-rxcsum", -IFCAP_RXCSUM, setifcap),

--- 45 unchanged lines hidden ---