diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-06 09:23:26 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-06 09:23:26 +0000 |
commit | 1b25afb8138fe6359c42307db1dd62544c8428a4 (patch) | |
tree | e2694d2af9fb1ccc7236e2fac41fbb1efb006b54 /sys/net | |
parent | 4c25c6344d18feb1afa41f65a8e3f69cbfc06677 (diff) |
u_int8_t variable can't be > 255; pointed out by Mr. GCC3.
ok millert@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 7b87936dcd5..a33baba64fb 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.42 2003/12/03 14:55:58 markus Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.43 2003/12/06 09:23:25 grange Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -665,8 +665,10 @@ vlan_ether_addmulti(struct ifvlan *ifv, struct ifreq *ifr) u_int8_t addrlo[ETHER_ADDR_LEN], addrhi[ETHER_ADDR_LEN]; int error; + /* XXX: sa_len is too small for such comparison if (ifr->ifr_addr.sa_len > sizeof(struct sockaddr_storage)) return (EINVAL); + */ error = ether_addmulti(ifr, (struct arpcom *)&ifv->ifv_ac); if (error != ENETRESET) |