summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-05-29 12:40:45 +0000
committeryar <yar@FreeBSD.org>2007-05-29 12:40:45 +0000
commit80a596eeced750d312f2c869efeafd2f8f2ac397 (patch)
treea6fa590eb2b0de38e6e26c77c03e780b7b564556 /sys/net/if_ethersubr.c
parent7db245bca4254bf1dbab159c7a26bb1a884ac845 (diff)
downloadFreeBSD-src-80a596eeced750d312f2c869efeafd2f8f2ac397.zip
FreeBSD-src-80a596eeced750d312f2c869efeafd2f8f2ac397.tar.gz
Sync ether_ioctl() with ioctl(2) and ifnet.if_ioctl
as to the type of the command argument: int -> u_long. These types have different widths in the 64-bit world. Add a note to UPDATING because the change breaks KBI on 64-bit platforms. Discussed on: -net, -current Reviewed by: bms, ru
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index acf0846..1fabaca 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1018,7 +1018,7 @@ ether_crc32_be(const uint8_t *buf, size_t len)
}
int
-ether_ioctl(struct ifnet *ifp, int command, caddr_t data)
+ether_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
OpenPOWER on IntegriCloud