Lines Matching refs:tun
1170 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun;
1186 tun = &tunnel[0];
1188 tun = &tunnel[data[0]];
1194 tun->tag_used++;
1195 tun->type = (data[1] << 16) | (data[2] << 8) | data[3];
1200 tun->tag_used++;
1201 tun->medium_type =
1213 tun->tag_used++;
1214 tun->vlanid = atoi(buf);
1220 tun = &tunnel[i];
1221 if (tun->tag_used &&
1222 tun->type == RADIUS_TUNNEL_TYPE_VLAN &&
1223 tun->medium_type == RADIUS_TUNNEL_MEDIUM_TYPE_802 &&
1224 tun->vlanid > 0)
1225 return tun->vlanid;