diff options
Diffstat (limited to 'usr/src/uts/common/inet/udp/udp.c')
-rw-r--r-- | usr/src/uts/common/inet/udp/udp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/src/uts/common/inet/udp/udp.c b/usr/src/uts/common/inet/udp/udp.c index a88bac932c..e12ab3d45d 100644 --- a/usr/src/uts/common/inet/udp/udp.c +++ b/usr/src/uts/common/inet/udp/udp.c @@ -22,7 +22,7 @@ * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2013 Nexenta Systems, Inc. All rights reserved. * Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved. - * Copyright 2015, Joyent, Inc. + * Copyright 2018, Joyent, Inc. */ /* Copyright (c) 1990 Mentat Inc. */ @@ -373,8 +373,6 @@ udp_srcport_hash(mblk_t *mp, int type, uint16_t min, uint16_t max, uint16_t def) { size_t szused = 0; - struct ether_header *ether; - struct ether_vlan_header *vether; ip6_t *ip6h; ipha_t *ipha; uint16_t sap; @@ -401,12 +399,10 @@ udp_srcport_hash(mblk_t *mp, int type, uint16_t min, uint16_t max, if (mp->b_cont == NULL) return (def); mp = mp->b_cont; - ether = (struct ether_header *)mp->b_rptr; } else if (MBLKL(mp) < VXLAN_HDR_LEN) { return (def); } else { szused = VXLAN_HDR_LEN; - ether = (struct ether_header *)((uintptr_t)mp->b_rptr + szused); } /* Can we hold a MAC header? */ |